Skip to content

Commit a0f4ccb

Browse files
authored
docs: add Rafiki website footer (#3612)
1 parent 8e3cf96 commit a0f4ccb

File tree

3 files changed

+51
-1
lines changed

3 files changed

+51
-1
lines changed

packages/documentation/astro.config.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ export default defineConfig({
4343
},
4444
components: {
4545
Header: './src/components/Header.astro',
46-
PageSidebar: './src/components/PageSidebar.astro'
46+
PageSidebar: './src/components/PageSidebar.astro',
47+
Footer: './src/components/Footer.astro'
4748
},
4849
defaultLocale: 'root',
4950
locales: {
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
import Pagination from '@astrojs/starlight/components/Pagination.astro';
3+
---
4+
5+
<footer class="footer sl-flex">
6+
<Pagination />
7+
<div class="footer-legal">
8+
<p>
9+
Rafiki is stewarded by the <a href="https://interledger.org" rel="noopener noreferrer" target="_blank" data-umami-event="Rafiki docs footer - Interledger foundation">Interledger Foundation</a> and Rafiki contributors.
10+
</p>
11+
<p>
12+
Rafiki is made available by the Interledger Foundation under the <a href="https://github.com/interledger/rafiki/blob/main/LICENSE" rel="noopener noreferrer" target="_blank" data-umami-event="Rafiki docs footer - Apache Licence">Apache License, Version 2.0.</a>
13+
</p>
14+
</div>
15+
</footer>
16+
17+
<style>
18+
.footer {
19+
flex-grow: 1;
20+
flex-direction: column;
21+
gap: 1.5rem;
22+
margin-top: 6rem;
23+
}
24+
25+
.footer-legal {
26+
margin-top: auto;
27+
padding: 1rem;
28+
color: #676767;
29+
text-align: center;
30+
font-size: var(--sl-text-sm);
31+
}
32+
33+
.footer-legal a:hover {
34+
color: var(--sl-color-white);
35+
}
36+
</style>

packages/documentation/src/styles/rafiki.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,3 +147,16 @@
147147
.overflow-table tbody tr:not(:last-of-type) td {
148148
border-block-end: 1px solid var(--sl-color-gray-6);
149149
}
150+
151+
.main-frame .lg\:sl-flex .main-pane main {
152+
display: flex;
153+
flex-direction: column;
154+
min-height: calc(100vh - var(--sl-nav-height));
155+
}
156+
157+
.main-frame .lg\:sl-flex .main-pane main .content-panel:last-of-type,
158+
.main-frame .lg\:sl-flex .main-pane main .content-panel:last-of-type .sl-container {
159+
flex-grow: 1;
160+
display: flex;
161+
flex-direction: column;
162+
}

0 commit comments

Comments
 (0)