From 2eb9d5c7a55b601c11577ff8f7edc6f41b60119a Mon Sep 17 00:00:00 2001 From: Herwin Bozet Date: Sat, 13 Sep 2025 16:19:20 +0200 Subject: [PATCH] Updated file input, Updated heading spacing globally, Fixed lscom downloads, Updated contact info Update .gitignore, home.yml, and 13 more files... --- .gitignore | 1 + data/strings/en/home.yml | 27 ++-- static/resources/NibblePoker/css/extra.css | 38 ++++- .../applets/excel-password-remover.jinja | 59 ++++---- templates/elements/file-input.jinja | 108 ++++++------- templates/elements/heading.jinja | 4 +- templates/pages/contact.jinja | 33 ++-- templates/pages/links.jinja | 82 +++++----- templates/pages/privacy.jinja | 16 +- templates/pages/root.jinja | 4 +- templates/projects/_project.jinja | 2 +- .../projects/circuitpython-ebyte-e32.jinja | 18 +-- templates/projects/docker-mini-cctv-nvr.jinja | 22 +-- templates/projects/lscom-cli-dotnet.jinja | 142 +++++++++++++++--- website/renderers/file_input.py | 4 +- 15 files changed, 343 insertions(+), 217 deletions(-) diff --git a/.gitignore b/.gitignore index a2e3c7b..b756e26 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,7 @@ __pycache__/ # NodeJS' BS node_modules/ +scripts/package-lock.json # Internal stuff *.pdn diff --git a/data/strings/en/home.yml b/data/strings/en/home.yml index 7c9e738..ea2eb39 100644 --- a/data/strings/en/home.yml +++ b/data/strings/en/home.yml @@ -10,22 +10,25 @@ og: description: Collection of free and open-source handmade utilities and libraries ranging from a simple COM port lister to password remover and autonomous video archivers. -header.title: Homepage +header: + title: Homepage -intro.title: Welcome to %0 -intro.text.1: This website contains a collection of my personal work through - blog posts, software releases and other forms of media, all of which is accessible - for free and under open-source friendly licenses. -intro.text.2: If you wish to contact me, you can do so through the contact form - linked in the sidebar or via the email address present on that page. +intro: + title: Welcome to %0 + text: + 1: This website contains a collection of my personal work through + blog posts, software releases and other forms of media, all of which is accessible + for free and under open-source friendly licenses. + 2: If you wish to contact me, you can do so through the contact form + linked in the sidebar or via the email address present on that page. -showcase.title: Showcase - -updates.title: Updates - -updates.text.privacy: Updated our privacy policy. +showcase: + title: Showcase updates: + title: Updates + text: + privacy: Updated our privacy policy. 5: date: March 30 2025 text: diff --git a/static/resources/NibblePoker/css/extra.css b/static/resources/NibblePoker/css/extra.css index 03668e9..f9f69fb 100644 --- a/static/resources/NibblePoker/css/extra.css +++ b/static/resources/NibblePoker/css/extra.css @@ -1,23 +1,43 @@ /* File inputs with drop thingy */ + .np-file-input-drop-container { position: relative; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + + overflow: hidden; } -.np-file-drop-text { +input.np-file-input-drop { position: absolute; - top: 50%; - left: 50%; - transform: translate(-50%, -50%); -} - -input[type=file].np-file-input-drop { + width: 100%; + height: 100%; + top: 0; + left: 0; opacity: 0; cursor: pointer; } +.np-file-drop-text { + text-align: center; + pointer-events: none; +} + +.np-file-drop-buttons { + display: flex; + gap: 10px; + z-index: 10; +} + /* Top margin trimmer for heading renderer */ +.t-v-center { + vertical-align: middle; +} + /* Copy of the m*-xs classes */ /* Accommodates the paragraph renderer that has a hard-coded .mt-xs */ .content-spacer { @@ -37,3 +57,7 @@ input[type=file].np-file-input-drop { .hide-if-first:first-child { display: none; } + +.mt-0-if-first:first-child { + margin-top: 0; +} diff --git a/templates/applets/excel-password-remover.jinja b/templates/applets/excel-password-remover.jinja index 5cc35aa..76024b7 100644 --- a/templates/applets/excel-password-remover.jinja +++ b/templates/applets/excel-password-remover.jinja @@ -1,41 +1,48 @@ -
+
{{ render_h2(l10n("disclaimer.warning", "commons", user_lang)) }} - {{ render_paragraph(l10n("eula.1", applet_data.id, user_lang)) }} - {{ render_paragraph(l10n("eula.2", applet_data.id, user_lang)) }} - {{ render_paragraph(l10n("eula.3", applet_data.id, user_lang)) }} + +
+ {{ render_paragraph(l10n("eula.1", applet_data.id, user_lang)) }} + {{ render_paragraph(l10n("eula.2", applet_data.id, user_lang)) }} + {{ render_paragraph(l10n("eula.3", applet_data.id, user_lang)) }} +
-
+
{{ render_h2(l10n("file.selection.title", applet_data.id, user_lang)) }} - {{ render_paragraph(l10n("file.selection.1", applet_data.id, user_lang)) }} - - {{ render_file_input(applet_data.id + "-input-file", true, ".xlsx, .xlsm", true, true, user_lang) }} +
+ {{ render_file_input( + applet_data.id + "-input-file", true, ".xlsx, .xlsm", true, false, user_lang, + l10n("file.selection.1", applet_data.id, user_lang)) }} +
-
+
{{ render_h2(l10n("details.title", applet_data.id, user_lang)) }} -
- {{ render_paragraph(l10n("details.empty.1", applet_data.id, user_lang)) }} -
+
+
+ {{ render_paragraph(l10n("details.empty.1", applet_data.id, user_lang)) }} +
- + -
+
+