-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sidebar Reorganization Implementation (#8197)
Co-authored-by: Paul Valladares <85648028+dreyfus92@users.noreply.github.com> Co-authored-by: Chris Swithinbank <swithinbank@gmail.com> Co-authored-by: Reuben Tier <64310361+TheOtterlord@users.noreply.github.com>
- Loading branch information
1 parent
a5580eb
commit 27d67d7
Showing
6 changed files
with
90 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
import { Icon } from '@astrojs/starlight/components'; | ||
import FeedbackButton from '../components/tutorial/FeedbackButton.astro'; | ||
import { useTranslations } from '~/i18n/util'; | ||
import { getLanguageFromURL } from '~/util'; | ||
const t = useTranslations(Astro); | ||
const lang = getLanguageFromURL(Astro.url.pathname); | ||
--- | ||
|
||
<section class="sl-flex"> | ||
<a href={`/${lang}/contribute/`} class="sl-flex"> | ||
<Icon name="open-book" size="1.2em" /> | ||
{t('rightSidebar.contribute')} | ||
</a> | ||
|
||
<FeedbackButton /> | ||
|
||
<a href="https://community.astro.build" class="sl-flex"> | ||
<Icon name="heart" size="1.2em" /> | ||
{t('rightSidebar.community')} | ||
</a> | ||
</section> | ||
|
||
<style> | ||
section { | ||
justify-content: center; | ||
flex-wrap: wrap; | ||
gap: 0.5rem 1.5rem; | ||
font-size: var(--sl-text-sm); | ||
} | ||
|
||
a { | ||
align-items: center; | ||
text-decoration: none; | ||
gap: 0.5rem; | ||
color: var(--sl-color-gray-3); | ||
} | ||
|
||
a:hover { | ||
color: var(--sl-color-white); | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
import DefaultFooter from '@astrojs/starlight/components/Footer.astro'; | ||
import FooterLinks from '../FooterLinks.astro'; | ||
import type { Props } from '@astrojs/starlight/props'; | ||
--- | ||
|
||
<DefaultFooter {...Astro.props} /> | ||
<FooterLinks /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters