Skip to content

Commit 0fc728f

Browse files
committed
Center footer on small screens
1 parent 85b6c24 commit 0fc728f

File tree

1 file changed

+37
-36
lines changed

1 file changed

+37
-36
lines changed

src/components/footer.astro

Lines changed: 37 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const gitVersion = import.meta.env.GIT_VERSION;
1010

1111
<Fullbleed className="bg-primary text-white">
1212
<footer
13-
class="max-w-4xl lg:max-w-6xl mx-auto py-6 px-4 text-sm lg:grid grid-cols-2 gap-12"
13+
class="max-w-4xl lg:max-w-6xl mx-auto py-6 px-4 text-sm grid grid-cols-1 lg:grid-cols-2 gap-12 text-center lg:text-left"
1414
>
1515
<div>
1616
<nav class="mb-8">
@@ -34,42 +34,43 @@ const gitVersion = import.meta.env.GIT_VERSION;
3434
</nav>
3535
</div>
3636

37-
<article
38-
class="flex flex-col lg:flex-row self-center gap-6 justify-end"
39-
>
40-
<div>
41-
<EPSLogo className="max-w-[160px] h-auto w-full" />
42-
</div>
43-
<div>
44-
<address class="not-italic mb-2 leading-relaxed text-xs">
45-
EuroPython Society (EPS)
46-
<br />Ramnebacken 45
47-
<br />
48-
424 38 Agnesberg
49-
<br />
50-
Sweden
51-
</address>
37+
<article
38+
class="flex flex-col items-center text-center lg:flex-row lg:items-start lg:text-left gap-6 justify-end"
39+
>
40+
<div>
41+
<EPSLogo className="max-w-[160px] h-auto w-full mx-auto lg:mx-0" />
42+
</div>
43+
<div>
44+
<address class="not-italic mb-2 leading-relaxed text-xs">
45+
EuroPython Society (EPS)
46+
<br />Ramnebacken 45
47+
<br />
48+
424 38 Agnesberg
49+
<br />
50+
Sweden
51+
</address>
52+
53+
<p class="mb-2 text-xs">
54+
<a
55+
class="underline whitespace-nowrap"
56+
href="https://europython-society.org"
57+
>
58+
europython-society.org <span> ↗</span>
59+
</a>
60+
<br />
61+
<a
62+
class="underline whitespace-nowrap"
63+
href="https://github.com/europython"
64+
>
65+
github.com/europython <span> ↗</span>
66+
</a>
67+
</p>
5268

53-
<p class="mb-2 text-xs">
54-
<a
55-
class="underline whitespace-nowrap"
56-
href="https://europython-society.org"
57-
>
58-
europython-society.org <span> ↗</span>
59-
</a>
60-
<br />
61-
<a
62-
class="underline whitespace-nowrap"
63-
href="https://github.com/europython"
64-
>
65-
github.com/europython <span> ↗</span>
66-
</a>
67-
</p>
69+
<p class="mb-2 text-[10px] text-white/40">
70+
version: {gitVersion} @ {buildTimestamp}
71+
</p>
72+
</div>
73+
</article>
6874

69-
<p class="mb-2 text-[10px] text-white/40">
70-
version: {gitVersion} @ {buildTimestamp}
71-
</p>
72-
</div>
73-
</article>
7475
</footer>
7576
</Fullbleed>

0 commit comments

Comments
 (0)