File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,6 +30,9 @@ export default defineConfig({
3030 "./src/styles/home.css" ,
3131 "./src/styles/4-to-5.css" ,
3232 ] ,
33+ components : {
34+ Footer : "./src/components/Footer.astro" ,
35+ } ,
3336 title : "Tinyauth" ,
3437 credits : true ,
3538 logo : {
Original file line number Diff line number Diff line change 1+ ---
2+
3+ ---
4+
5+ <a
6+ href =" https://app.dosu.dev/6caa529c-9746-4936-af7c-260caadb8a1f/ask"
7+ class =" sl-flex print:hidden"
8+ >
9+ <img alt =" Dosu Logo" class =" dosu dosu-light" src =" /vendor/dosu-light.png" />
10+ <img alt =" Dosu Logo" class =" dosu dosu-dark" src =" /vendor/dosu-dark.png" />
11+ Ask Dosu
12+ </a >
13+
14+ <style >
15+ @layer starlight.core {
16+ a {
17+ gap: 0.5rem;
18+ align-items: center;
19+ text-decoration: none;
20+ color: var(--sl-color-gray-3);
21+ }
22+ a:hover {
23+ color: var(--sl-color-white);
24+ }
25+ }
26+ @layer startlight.components {
27+ .dosu {
28+ width: 1.25em;
29+ height: 1.25em;
30+ }
31+ html[data-theme="dark"] .dosu-light {
32+ display: none;
33+ }
34+ html:not([data-theme="dark"]) .dosu-dark {
35+ display: none;
36+ }
37+ }
38+ </style >
Original file line number Diff line number Diff line change 1+ ---
2+ import EditLink from " @astrojs/starlight/components/EditLink.astro" ;
3+ import LastUpdated from " @astrojs/starlight/components/LastUpdated.astro" ;
4+ import Pagination from " starlight-theme-rapide/overrides/Pagination.astro" ;
5+ import { Icon } from " @astrojs/starlight/components" ;
6+ import config from " virtual:starlight/user-config" ;
7+ import AskDosu from " ./AskDosu.astro" ;
8+ ---
9+
10+ <footer class =" sl-flex" >
11+ <div class =" meta sl-flex" >
12+ <AskDosu />
13+ <EditLink />
14+ <LastUpdated />
15+ </div >
16+ <Pagination />
17+
18+ {
19+ config .credits && (
20+ <a class = " kudos sl-flex" href = " https://starlight.astro.build" >
21+ <Icon name = { " starlight" } />{ " " }
22+ { Astro .locals .t (" builtWithStarlight.label" )}
23+ </a >
24+ )
25+ }
26+ </footer >
27+
28+ <style >
29+ @layer starlight.core {
30+ footer {
31+ flex-direction: column;
32+ gap: 1.5rem;
33+ }
34+ .meta {
35+ gap: 0.75rem 3rem;
36+ justify-content: space-between;
37+ flex-wrap: wrap;
38+ margin-top: 3rem;
39+ font-size: var(--sl-text-sm);
40+ color: var(--sl-color-gray-3);
41+ }
42+ .meta > :global(p:only-child) {
43+ margin-inline-start: auto;
44+ }
45+
46+ .kudos {
47+ align-items: center;
48+ gap: 0.5em;
49+ margin: 1.5rem auto;
50+ font-size: var(--sl-text-xs);
51+ text-decoration: none;
52+ color: var(--sl-color-gray-3);
53+ }
54+ .kudos:hover {
55+ color: var(--sl-color-white);
56+ }
57+ }
58+
59+ @layer starlight.components {
60+ .kudos :global(svg) {
61+ color: var(--sl-color-orange);
62+ }
63+ }
64+ </style >
You can’t perform that action at this time.
0 commit comments