Skip to content

Commit 14367cd

Browse files
committed
fix(layout): adjust position, use flex column, semantics-ish
1 parent 0b294df commit 14367cd

File tree

1 file changed

+21
-42
lines changed

1 file changed

+21
-42
lines changed

src/components/PokeFooter.astro

Lines changed: 21 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -3,53 +3,32 @@ import type { Props } from '@astrojs/starlight/props'
33
import Pagination from '@astrojs/starlight/components/Pagination.astro'
44
---
55

6-
<nav class="pb-12">
6+
<nav class="py-12">
77
<Pagination {...Astro.props}></Pagination>
88
</nav>
99
<footer
1010
class="
11-
fixed bottom-0 left-0
12-
w-full px-12 py-4 mt-12
13-
flex items-center gap-8 place-content-between
11+
px-2 py-4
12+
flex-col items-center
13+
gap-8
1414
bg-(--sl-color-black) border-t border-t-(--sl-color-accent)
1515
"
1616
>
17-
<small>
18-
Created by <a href="https://github.com/phalt"><strong>Paul Hallett</strong></a> and other <a
19-
href="https://github.com/PokeAPI/pokeapi/graphs/contributors"
20-
>PokéAPI contributors</a> around the world. Pokémon and Pokémon character names are trademarks of Nintendo.
21-
</small>
22-
<a href="https://pokeapi.statuspage.io/"><img
23-
alt="Status"
24-
src="https://img.shields.io/badge/dynamic/json?color=blue&label=status&query=%24.status.description&url=https%3A%2F%2Fzlfyqp3hlvly.statuspage.io%2Fapi%2Fv2%2Fsummary.json"
25-
/></a>
26-
</footer>
27-
28-
<style>
29-
.meta {
30-
gap: 0.75rem 3rem;
31-
justify-content: space-between;
32-
flex-wrap: wrap;
33-
margin-top: 3rem;
34-
font-size: var(--sl-text-sm);
35-
color: var(--sl-color-gray-3);
36-
}
37-
.meta > :global(p:only-child) {
38-
margin-inline-start: auto;
39-
}
17+
<div>
18+
<small class="mt-4">
19+
Created by <a href="https://github.com/phalt"><strong>Paul Hallett</strong></a> and other <a
20+
href="https://github.com/PokeAPI/pokeapi/graphs/contributors"
21+
>PokéAPI contributors</a> around the world. Pokémon and Pokémon character names are trademarks of Nintendo.
22+
</small>
23+
</div>
4024

41-
.kudos {
42-
align-items: center;
43-
gap: 0.5em;
44-
margin: 1.5rem auto;
45-
font-size: var(--sl-text-xs);
46-
text-decoration: none;
47-
color: var(--sl-color-gray-3);
48-
}
49-
.kudos :global(svg) {
50-
color: var(--sl-color-orange);
51-
}
52-
.kudos:hover {
53-
color: var(--sl-color-white);
54-
}
55-
</style>
25+
<a href="https://pokeapi.statuspage.io/">
26+
<figure>
27+
<img
28+
alt="Status"
29+
class="pt-4 grow h-auto min-w-[186px]"
30+
src="https://img.shields.io/badge/dynamic/json?color=blue&label=status&query=%24.status.description&url=https%3A%2F%2Fzlfyqp3hlvly.statuspage.io%2Fapi%2Fv2%2Fsummary.json"
31+
/>
32+
</figure>
33+
</a>
34+
</footer>

0 commit comments

Comments
 (0)