Skip to content

Commit 850c8bc

Browse files
authored
Merge pull request #13 from ThinkR-open/winner-posit-contest
Winner posit contest
2 parents b6118f8 + 8f0dfd3 commit 850c8bc

File tree

5 files changed

+74
-37
lines changed

5 files changed

+74
-37
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ Additionally, the application allows you to copy the HTML code with a single but
1818

1919
Lastly, updating the banner (the image at the bottom of the signature) and the associated link for redirection is straightforward. You no longer need to request everyone to update their signature individually for these changes.
2020

21+
## Winner of the 2024 Shiny Contest
22+
23+
🏆 This project won the 2024 Shiny Contest for the best Shiny application with Python.
24+
25+
More details on the contest can be found [here](https://posit.co/blog/winners-of-the-2024-shiny-contest/).
26+
2127
## Demo
2228

2329
🕹️ Try the app at:

poetry.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

signature/app.py

Lines changed: 43 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,40 +4,59 @@
44

55
current_dir = Path(__file__).parent
66

7-
app_ui = ui.page_fixed(
8-
ui.head_content(
9-
ui.tags.title("signature.py"),
10-
ui.tags.script(
11-
src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.5.10/clipboard.min.js",
12-
),
13-
ui.tags.script(
14-
src="https://www.googletagmanager.com/gtag/js?id=G-SPE51YQFS7",
15-
async_=True,
16-
),
17-
ui.tags.link(
18-
rel="icon",
19-
href="favicon.svg",
7+
app_ui = ui.div(
8+
ui.div(
9+
ui.div(
10+
ui.span("🏆 ", class_="fs-5"),
11+
ui.span(
12+
"This project won the 2024 Shiny Contest for the best Shiny application with Python. ",
13+
class_="fs-6",
14+
),
15+
ui.a(
16+
"Click here for more information 🔗 ",
17+
href="https://posit.co/blog/winners-of-the-2024-shiny-contest/",
18+
target="_blank",
19+
class_="text-white",
20+
),
21+
class_="container",
2022
),
21-
ui.tags.script(
22-
"""
23+
class_="sticky-top bg-success text-white p-3",
24+
),
25+
ui.page_fixed(
26+
ui.head_content(
27+
ui.tags.title("signature.py"),
28+
ui.tags.script(
29+
src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.5.10/clipboard.min.js",
30+
),
31+
ui.tags.script(
32+
src="https://www.googletagmanager.com/gtag/js?id=G-SPE51YQFS7",
33+
async_=True,
34+
),
35+
ui.tags.link(
36+
rel="icon",
37+
href="favicon.svg",
38+
),
39+
ui.tags.script(
40+
"""
2341
window.dataLayer = window.dataLayer || [];
2442
function gtag(){dataLayer.push(arguments);}
2543
gtag('js', new Date());
2644
2745
gtag('config', 'G-SPE51YQFS7');
2846
""",
47+
),
2948
),
30-
),
31-
ui.include_css(current_dir / "css" / "signature.css"),
32-
ui.include_js(current_dir / "js" / "signature.js"),
33-
mod_navbar.navbar_ui("nav_signature"),
34-
ui.div(
49+
ui.include_css(current_dir / "css" / "signature.css"),
50+
ui.include_js(current_dir / "js" / "signature.js"),
51+
mod_navbar.navbar_ui("nav_signature"),
3552
ui.div(
36-
mod_form.form_ui("form_signature"),
37-
mod_preview.preview_ui("preview_signature"),
38-
class_="row",
53+
ui.div(
54+
mod_form.form_ui("form_signature"),
55+
mod_preview.preview_ui("preview_signature"),
56+
class_="row",
57+
),
58+
class_="container",
3959
),
40-
class_="container",
4160
),
4261
)
4362

signature/manifest.json

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@
1818
"checksum": "fb3384dc54debf9ac2f861655b17ef61"
1919
},
2020
".DS_Store": {
21-
"checksum": "9beba8e7665a8fd7d081a2db0119a10d"
21+
"checksum": "e4eda894fe53e8a8548674f0734de828"
2222
},
2323
"__init__.py": {
2424
"checksum": "d41d8cd98f00b204e9800998ecf8427e"
2525
},
2626
"app.py": {
27-
"checksum": "6495f870021d95acbbbd557ef0c55ffc"
27+
"checksum": "af9a4bbe465ae57d9a61175460aeb915"
2828
},
2929
"assets/.DS_Store": {
30-
"checksum": "e7b257cc2c2fc363dd11963b1a0b369f"
30+
"checksum": "120b68f0078387073a2add16a82227ee"
3131
},
3232
"assets/current_banner.png": {
3333
"checksum": "3636b04621cc9c8b814fdef693f124c6"
@@ -56,6 +56,9 @@
5656
"assets/tests_with_vscode.png": {
5757
"checksum": "cf4f49c7aeec75575e116f6aa8a8ec09"
5858
},
59+
"css/.DS_Store": {
60+
"checksum": "2ee69fe1e83952d259f01faa2b737270"
61+
},
5962
"css/signature.css": {
6063
"checksum": "07504198248c681e2c61586dbf7b293d"
6164
},
@@ -69,25 +72,25 @@
6972
"checksum": "d41d8cd98f00b204e9800998ecf8427e"
7073
},
7174
"modules/__pycache__/__init__.cpython-312.pyc": {
72-
"checksum": "c5536234a41a619cddadb3c5f700f276"
75+
"checksum": "4728ab600e646be03054a054973b2268"
7376
},
7477
"modules/__pycache__/mod_form.cpython-312.pyc": {
75-
"checksum": "e6ddda00ce13889794c848adbeb96e95"
78+
"checksum": "5586aaf5eb933db36018931c649d70e4"
7679
},
7780
"modules/__pycache__/mod_navbar.cpython-312.pyc": {
7881
"checksum": "a437431c6ec31e684076b9d7962e6751"
7982
},
8083
"modules/__pycache__/mod_preview.cpython-312.pyc": {
81-
"checksum": "63ea9a355f2bbfefbb17d613c5be12a3"
84+
"checksum": "df04461f1be4f6bd1ac435eef826aab6"
8285
},
8386
"modules/mod_form.py": {
84-
"checksum": "c9f972619f3b9211268e0c111182551a"
87+
"checksum": "857b332d666549ff448b2ade235ec556"
8588
},
8689
"modules/mod_navbar.py": {
8790
"checksum": "726fbe893cd586f7d82fcf79d065e7ff"
8891
},
8992
"modules/mod_preview.py": {
90-
"checksum": "0d54be281f3ee33a787bbf10b8eb543e"
93+
"checksum": "ab341eb024e2e6b41c6e3527f11d8074"
9194
},
9295
"node_modules/.package-lock.json": {
9396
"checksum": "f472a1d452e19e4da09b1630101a5802"
@@ -1622,15 +1625,24 @@
16221625
"tests/pytest-playwright/__pycache__/test_e2e.cpython-312-pytest-8.2.2.pyc": {
16231626
"checksum": "2138189787b8968d3560be38f2df61af"
16241627
},
1628+
"tests/pytest-playwright/__pycache__/test_e2e.cpython-312-pytest-8.3.3.pyc": {
1629+
"checksum": "20e7ba4f4caa64ab90b8ade2cc98f76f"
1630+
},
16251631
"tests/pytest-playwright/test_e2e.py": {
16261632
"checksum": "8f503e816ae683437283f5f58b50cc43"
16271633
},
16281634
"tests/pytest-unit/__pycache__/test_accordion_panels.cpython-312-pytest-8.2.2.pyc": {
16291635
"checksum": "db33695ee08ded6335cb6e8c72627e97"
16301636
},
1637+
"tests/pytest-unit/__pycache__/test_accordion_panels.cpython-312-pytest-8.3.3.pyc": {
1638+
"checksum": "0bc8d84b8084834a3350c5227151cb15"
1639+
},
16311640
"tests/pytest-unit/__pycache__/test_one_plus_one.cpython-312-pytest-8.2.2.pyc": {
16321641
"checksum": "30f9d60610dd9529dd854e890bd5d937"
16331642
},
1643+
"tests/pytest-unit/__pycache__/test_one_plus_one.cpython-312-pytest-8.3.3.pyc": {
1644+
"checksum": "c18c725f9d512b827e9025cd47a38511"
1645+
},
16341646
"tests/pytest-unit/test_accordion_panels.py": {
16351647
"checksum": "ca85c9fb39cbbdbe047d1d1459c80bd0"
16361648
},

signature/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ pytablewriter==1.2.0 ; python_version >= "3.12" and python_version < "4.0"
4343
pytest-base-url==2.1.0 ; python_version >= "3.12" and python_version < "4.0"
4444
pytest-github-report==0.0.1 ; python_version >= "3.12" and python_version < "4.0"
4545
pytest-playwright==0.5.1 ; python_version >= "3.12" and python_version < "4.0"
46-
pytest==8.2.2 ; python_version >= "3.12" and python_version < "4.0"
46+
pytest==8.3.3 ; python_version >= "3.12" and python_version < "4.0"
4747
python-dateutil==2.9.0.post0 ; python_version >= "3.12" and python_version < "4.0"
4848
python-multipart==0.0.9 ; python_version >= "3.12" and python_version < "4.0"
4949
python-slugify==8.0.4 ; python_version >= "3.12" and python_version < "4.0"

0 commit comments

Comments
 (0)