Skip to content

Commit 662a2ca

Browse files
feat: add footer component with styling for site links
1 parent 3f31924 commit 662a2ca

3 files changed

Lines changed: 39 additions & 0 deletions

File tree

.github/workflows/deploy-pages.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ jobs:
3939

4040
- name: Setup Pages
4141
uses: actions/configure-pages@v5
42+
with:
43+
enablement: true
4244

4345
- name: Upload artifact
4446
uses: actions/upload-pages-artifact@v3

src/App.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1803,6 +1803,13 @@ function App() {
18031803
onClose={() => setReplaceSlotId(null)}
18041804
onSelectAlternative={handleSwapAlternative}
18051805
/>
1806+
1807+
<footer className="site-footer panel">
1808+
<span className="site-footer-label">More projects and writing</span>
1809+
<a className="site-footer-link" href="https://maxwellmetzner.github.io/">
1810+
maxwellmetzner.github.io
1811+
</a>
1812+
</footer>
18061813
</div>
18071814
);
18081815
}

src/styles.css

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,32 @@ button {
7979
gap: 24px;
8080
}
8181

82+
.site-footer {
83+
display: flex;
84+
align-items: center;
85+
justify-content: center;
86+
gap: 12px;
87+
padding: 18px 24px;
88+
text-align: center;
89+
}
90+
91+
.site-footer-label {
92+
color: var(--muted);
93+
font-size: 0.92rem;
94+
}
95+
96+
.site-footer-link {
97+
color: var(--accent-strong);
98+
font-weight: 700;
99+
text-decoration: none;
100+
}
101+
102+
.site-footer-link:hover,
103+
.site-footer-link:focus-visible {
104+
text-decoration: underline;
105+
text-underline-offset: 0.18em;
106+
}
107+
82108
.panel,
83109
.map-panel {
84110
position: relative;
@@ -1333,6 +1359,10 @@ button {
13331359
align-items: stretch;
13341360
}
13351361

1362+
.site-footer {
1363+
flex-direction: column;
1364+
}
1365+
13361366
.wizard-footer {
13371367
padding-top: 20px;
13381368
}

0 commit comments

Comments
 (0)