From b47df91a9415fbc2aeaca0d076ba500c875669f3 Mon Sep 17 00:00:00 2001 From: taruma sakti Date: Mon, 13 Jun 2022 15:46:02 +0700 Subject: [PATCH] =?UTF-8?q?=E2=A4=B4=EF=B8=8F=20update=20to=201.2.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit remove unnecessary text --- app.py | 3 --- app_config.yml | 6 +++--- pyfigure.py | 2 +- pylayout.py | 33 ++++++++++++++++++++------------- pytemplate.py | 2 +- 5 files changed, 25 insertions(+), 21 deletions(-) diff --git a/app.py b/app.py index c50c62e..3ebe009 100644 --- a/app.py +++ b/app.py @@ -39,7 +39,6 @@ pylayout.HTML_TITLE, pylayout.HTML_SUBTITLE, pylayout.HTML_ALERT_README, - pylayout.HTML_ALERT_SPONSOR, pylayout.HTML_ROW_BUTTON_UPLOAD, pylayout.HTML_ROW_TABLE, pylayout.HTML_ROW_BUTTON_VIZ, @@ -51,9 +50,7 @@ pylayout.HTML_ROW_GRAPH_ANALYSIS, pylayout.HTML_ROW_GRAPH_CUMSUM, pylayout.HTML_ROW_GRAPH_CONSISTENCY, - pylayout.HTML_ALERT_CONTRIBUTION, pylayout.HTML_MADEBY, - pylayout.HTML_OTHER_PROJECTS, pylayout.HTML_FOOTER, ], fluid=True, diff --git a/app_config.yml b/app_config.yml index f426f65..d56bfdf 100644 --- a/app_config.yml +++ b/app_config.yml @@ -12,6 +12,6 @@ TEMPLATE: SHOW_LEGEND_INSIDE: False SHOW_RANGESELECTOR: False -VERSION: v1.2.0 -GITHUB_LINK: https://github.com/taruma/dash-hidrokit-rainfall -GITHUB_REPO: taruma/dash-hidrokit-rainfall \ No newline at end of file +VERSION: v1.2.1 +GITHUB_LINK: https://github.com/fiakoenjiniring/rainfall +GITHUB_REPO: fiakoenjiniring/rainfall diff --git a/pyfigure.py b/pyfigure.py index b38ecc8..f27f961 100644 --- a/pyfigure.py +++ b/pyfigure.py @@ -29,7 +29,7 @@ def _generate_dict_watermark(n: int = 1, source=appConfig.TEMPLATE.WATERMARK_SOU yanchor="middle", name="watermark-hidrokit", layer="below", - opacity=0.2, + opacity=0.1, ) diff --git a/pylayout.py b/pylayout.py index 4bdfb8b..afe31d5 100644 --- a/pylayout.py +++ b/pylayout.py @@ -22,7 +22,7 @@ className="text-center", ) -HTML_SUBTITLE = html.P( +HTML_SUBTITLE = html.Div( [ "created by ", html.A("taruma", href="https://github.com/taruma"), @@ -32,6 +32,14 @@ className="text-center fs-5", ) +HTML_SPONSORED = html.Div( + [ + "sponsored by ", + html.A("FIAKO Engineering", href="https://fiako.engineering"), + ], + className="text-center fs-5 mb-3", +) + ALERT_CONTRIBUTION = dbc.Alert( [ "Tertarik untuk berkontribusi? Ingin terlibat proyek hidrokit seperti ini? hubungi saya di ", @@ -54,6 +62,7 @@ ".", ], color="warning", + className="m-4", ) HTML_ALERT_README = pylayoutfunc.create_HTML_alert(ALERT_README, className=None) @@ -414,21 +423,19 @@ "Taruma Sakti Megariansyah", href="https://github.com/taruma", ), - ". MIT License. Visit on 👉 ", - dbc.Badge( + ". Sponsored by ", + html.A( + "FIAKO Engineering", + href="https://fiako.engineering", + target="_blank" + ), + ". MIT License. Visit on ", + html.A( "Github", href=appConfig.GITHUB_LINK, - color="secondary", - class_name="text-uppercase fs-6", - id="tooltip-github", - target="_blank", - style={"letter-spacing": "3px", "text-decoration": "none"}, - ), - dbc.Tooltip( - "👇 click me 👇", target="tooltip-github", placement="top", autohide=False ), - " 👈.", + ".", ], - className="text-center", + className="text-center my-2", ), ) diff --git a/pytemplate.py b/pytemplate.py index aa158da..541902b 100644 --- a/pytemplate.py +++ b/pytemplate.py @@ -29,7 +29,7 @@ yanchor="middle", name="watermark-hidrokit", layer="below", - opacity=0.2, + opacity=0.1, ), ]