Update home page

This commit is contained in:
Flare Starfall 2026-03-10 10:48:07 +01:00
parent 026f6ab02e
commit ec7a433864
7 changed files with 90 additions and 31 deletions

View File

@ -1,24 +1,24 @@
#!/bin/fish
function display_help
set_color green
echo -n "1) "
set_color brgreen
echo -n "1) t) "
set_color normal
echo " Extract translations into messages.pot file"
echo " and merge into existing languages"
set_color green
echo -n "2) "
set_color brgreen
echo -n "2) l) "
set_color normal
echo " Create translation folders for new language"
set_color green
echo -n "3) "
set_color brgreen
echo -n "3) c) "
set_color normal
echo " Compile *.po files for display"
set_color red
echo -n "4) "
echo -n "4) e) q) "
set_color normal
echo "Exit program"
@ -118,13 +118,13 @@ while true
or return 1
switch $confirm
case 1
case 1 t
compile_pot
case 2
case 2 l
new_lang
case 3
case 3 c
compile_po
case 4
case 4 e q
return 0
case '' '*'
echo "Invalid input"

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Starfall 0.1.0-alpha.3\n"
"Report-Msgid-Bugs-To: flare@theflare.at\n"
"POT-Creation-Date: 2026-03-09 09:57+0100\n"
"POT-Creation-Date: 2026-03-10 10:46+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -57,10 +57,30 @@ msgstr ""
msgid "base.label.theme.auto"
msgstr ""
#: web/templates/base.jinja:84
#: web/templates/base.jinja:76
msgid "page.empty.title"
msgstr ""
#: web/templates/base.jinja:77
msgid "page.empty.body"
msgstr ""
#: web/templates/base.jinja:89
msgid "base.label.copy"
msgstr ""
#: web/templates/home.jinja:3
msgid "page.home.title"
msgstr ""
#: web/templates/home.jinja:8
msgid "page.home.card.title"
msgstr ""
#: web/templates/home.jinja:9
msgid "page.home.card.body"
msgstr ""
#: web/templates/imprint.jinja:3 web/templates/imprint.jinja:8
msgid "page.imprint.title"
msgstr ""

View File

@ -5,10 +5,10 @@
#
msgid ""
msgstr ""
"Project-Id-Version: Starfall 0.1.0-alpha.2\n"
"Project-Id-Version: Starfall 0.1.0-alpha.3\n"
"Report-Msgid-Bugs-To: flare@theflare.at\n"
"POT-Creation-Date: 2026-03-09 09:57+0100\n"
"PO-Revision-Date: 2026-03-09 01:34+0100\n"
"POT-Creation-Date: 2026-03-10 10:46+0100\n"
"PO-Revision-Date: 2026-03-10 01:17+0100\n"
"Last-Translator: Flare Starfall <flare@theflare.at>\n"
"Language: en\n"
"Language-Team: en <LL@li.org>\n"
@ -58,10 +58,39 @@ msgstr "Dark"
msgid "base.label.theme.auto"
msgstr "Auto"
#: web/templates/base.jinja:84
#: web/templates/base.jinja:76
msgid "page.empty.title"
msgstr "This page has no content"
#: web/templates/base.jinja:77
msgid "page.empty.body"
msgstr ""
"<p>This page has not been assigned any content.</p><p>This is unlikely to"
" be intentional - <span class=\"text-warning\">please notify the site "
"administrator</span> about this problem.</p>"
#: web/templates/base.jinja:89
msgid "base.label.copy"
msgstr "&copy; Team Starfall"
#: web/templates/home.jinja:3
msgid "page.home.title"
msgstr "Home of Team Starfall"
#: web/templates/home.jinja:8
msgid "page.home.card.title"
msgstr "Shoot for the stars."
#: web/templates/home.jinja:9
msgid "page.home.card.body"
msgstr ""
"<p>Home of Team Starfall, a small group of friends dedicated to messing "
"with video games in ways the developers are unlikely to expect.</p><p>And"
" hey - occasionally we get fun(ny) results out of it.</p><p>On the side, "
"some of us get involved in all kinds of shenanigans, ranging from "
"character creation in various kinds of games and software, over creating "
"music, to web design and programming.</p>"
#: web/templates/imprint.jinja:3 web/templates/imprint.jinja:8
msgid "page.imprint.title"
msgstr "Imprint &amp; Privacy"

View File

@ -31,7 +31,8 @@
aria-expanded="false" aria-label="{{_('base.label.toggle_nav')}}">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse d-md-flex flex-row justify-content-between" id="navbarSupportedContent">
<div class="collapse navbar-collapse d-md-flex flex-row justify-content-between"
id="navbarSupportedContent">
<ul class="navbar-nav">
{# %block title: Page title. #}
{%block navLinks%}
@ -70,7 +71,12 @@
{%block beforeMainContainer%}{%endblock%}
{%block body%}
{%include 'components/page_empty.jinja'%}
<div class="container" id="content">
<div class="card">
<h1 class="card-header">{{_('page.empty.title')}}</h1>
<div class="card-body">{{_('page.empty.body')|safe}}</div>
</div>
</div>
{%endblock%}
{%block afterMainContainer%}{%endblock%}

View File

@ -1,7 +0,0 @@
<div class="container" id="content">
<div class="d-flex flex-column justify-content-center align-items-center">
<h1 class="text-warning-emphasis bg-warning-emphasis mb-4">Empty Page</h1>
<p>No content has been defined for this page.</p>
<p>This is likely by accident, please report this to the site owner.</p>
</div>
</div>

View File

@ -1 +1,12 @@
{%extends 'base.jinja'%}
{%block title%}{{_('page.home.title')}}{%endblock%}
{%block body%}
<div class="container" id="content">
<div class="card">
<h1 class="card-header text-center text-primary-emphasis">{{_('page.home.card.title')}}</h1>
<div class="card-body">{{_('page.home.card.body')|safe}}</div>
</div>
</div>
{%endblock%}