Website v0.4 (#860)

* [#858,site][xl]: add Examples to the Navbar, rename gallery to showcases, remove examples from showcases, move github stars to the navbar, add view on github button to the hero section, reduce padding on buttons, add RHS image to the hero

* [#858,site][xl]: make sidebar consistent on all pages

* [site][xs]: fix ts error on GitHub button component

* [site][xs]: fix external links on navbar needing two clicks to open

* [site, hero][xs]: align RHS image to the top
This commit is contained in:
João Demenech
2023-05-09 14:39:23 -03:00
committed by GitHub
parent ca13e7b9c3
commit a954575397
18 changed files with 259 additions and 470 deletions

View File

@@ -5,6 +5,7 @@ import { siteConfig } from '../config/siteConfig';
import MobileNavigation from './MobileNavigation';
import NavItem from './NavItem';
import ThemeSelector from './ThemeSelector';
import GitHubButton from 'react-next-github-btn';
// import { SearchContext, SearchField } from "./search/index.jsx";
// const Search = SearchContext(siteConfig.search?.provider);
@@ -110,16 +111,6 @@ export default function Nav() {
</Search>
)} */}
<ThemeSelector />
{siteConfig.github && (
<Link
href={siteConfig.github}
target="_blank"
className="group"
aria-label="GitHub"
>
<GitHubIcon className="h-6 w-6 dark:fill-slate-400 group-hover:fill-slate-500 dark:group-hover:fill-slate-300" />
</Link>
)}
{siteConfig.discord && (
<Link
href={siteConfig.discord}
@@ -130,6 +121,21 @@ export default function Nav() {
<DiscordIcon className="h-8 w-8 dark:fill-slate-400 group-hover:fill-slate-500 dark:group-hover:fill-slate-300" />
</Link>
)}
{siteConfig.github && (
<div className="mt-1">
<
// @ts-ignore
GitHubButton
href={siteConfig.github}
data-color-scheme="no-preference: light; light: light; dark: dark;"
data-size="large"
data-show-count="true"
aria-label="Star PortalJS on GitHub"
>
Stars
</GitHubButton>
</div>
)}
</div>
</header>
);