Skip to content

Commit 912921f

Browse files
committed
chore(web): move version back to footer and only add link if version is known
1 parent 30f846f commit 912921f

File tree

2 files changed

+18
-13
lines changed

2 files changed

+18
-13
lines changed

src/server/templates/components/footer.jinja

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% from 'components/_macros.jinja' import footer_icon_link %}
22
<footer class="w-full border-t-[3px] border-gray-900 mt-auto">
33
<div class="max-w-4xl mx-auto px-4 py-4">
4-
<div class="grid grid-cols-2 items-center text-gray-900 text-sm">
4+
<div class="grid grid-cols-3 items-center text-gray-900 text-sm">
55
{# Left column — Chrome + PyPI #}
66
<div class="flex items-center space-x-4">
77
{{ footer_icon_link('https://chromewebstore.google.com/detail/adfjahbijlkjfoicpjkhjicpjpjfaood',
@@ -11,6 +11,18 @@
1111
'icons/python.svg',
1212
'Python Package') }}
1313
</div>
14+
{# Middle column - Version information #}
15+
<div class="flex justify-center">
16+
<span>Version:&nbsp;</span>
17+
{% if version != "unknown" %}
18+
<a href="{{ version_link }}"
19+
target="_blank"
20+
rel="noopener noreferrer"
21+
class="text-blue-600 hover:text-blue-800 underline">{{ version }}</a>
22+
{% else %}
23+
<span>{{ version }}</span>
24+
{% endif %}
25+
</div>
1426
{# Right column - Discord #}
1527
<div class="flex justify-end">
1628
{{ footer_icon_link('https://discord.gg/zerRaGK9EC',

src/server/templates/components/navbar.jinja

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,11 @@
33
<div class="flex justify-between items-center h-16">
44
{# Logo #}
55
<div class="flex items-center gap-4">
6-
<div class="flex flex-col">
7-
<h1 class="text-3xl font-bold tracking-tight mb-0 leading-none">
8-
<a href="/" class="hover:opacity-80 transition-opacity">
9-
<span class="text-gray-900">Git</span><span class="text-[#FE4A60]">ingest</span>
10-
</a>
11-
</h1>
12-
<a href="{{ version_link }}"
13-
target="_blank"
14-
rel="noopener noreferrer"
15-
class="relative self-end text-sm text-blue-600 hover:text-blue-800 no-underline ml-4 -mt-1">
16-
{{ version }}
6+
<h1 class="text-2xl font-bold tracking-tight">
7+
<a href="/" class="hover:opacity-80 transition-opacity">
8+
<span class="text-gray-900">Git</span><span class="text-[#FE4A60]">ingest</span>
179
</a>
18-
</div>
10+
</h1>
1911
</div>
2012
{# Navigation with updated styling #}
2113
<nav class="flex items-center space-x-6">
@@ -44,4 +36,5 @@
4436
</div>
4537
</div>
4638
</header>
39+
{# Load GitHub stars script #}
4740
<script defer src="/static/js/navbar.js"></script>

0 commit comments

Comments
 (0)