docs(website): link the Discord community and REA on X (#1469)

Add an X link beside the GitHub and Discord header icons on every content
page, name the footer links "Join the community" and "Follow us on X", and
close the homepage with a "Join the community" section.

On narrow screens, pad the footer so the floating Top link no longer
covers its last row of links.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Kaoru0822
2026-10-10 15:00:09 +08:00
committed by GitHub
co-authored by Claude Opus 5.5
parent 78e1308f49
commit 79f6756239
17 changed files with 345 additions and 19 deletions
+9 -3
View File
@@ -178,7 +178,8 @@ section[id] {
gap: 8px;
}
.nav-github,
.nav-discord {
.nav-discord,
.nav-x {
display: inline-flex;
align-items: center;
justify-content: center;
@@ -192,12 +193,14 @@ section[id] {
text-decoration: none;
}
.nav-github:hover,
.nav-discord:hover {
.nav-discord:hover,
.nav-x:hover {
background: var(--soft);
color: var(--ink);
}
.nav-github svg,
.nav-discord svg {
.nav-discord svg,
.nav-x svg {
display: block;
flex-shrink: 0;
}
@@ -2117,6 +2120,9 @@ pre code {
right: calc(1rem + env(safe-area-inset-right, 0px));
bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
}
.site-footer {
padding-bottom: calc(2rem + 44px + env(safe-area-inset-bottom, 0px));
}
.container {
width: calc(100% - 2.5rem);
}