-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #865 from thefrontside/dl/fix-docs-scroll-styles
Fix scroll to behave similar to interactors docs
- Loading branch information
Showing
11 changed files
with
155 additions
and
254 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 |
---|---|---|
@@ -1,58 +1,32 @@ | ||
import { ProjectSelect } from "./project-select.tsx"; | ||
import { IconGithHub } from "./icons/github.tsx"; | ||
import { IconDiscord } from "./icons/discord.tsx"; | ||
|
||
export function Header() { | ||
interface HeaderProps { | ||
navLinks: JSX.Element[]; | ||
} | ||
|
||
export function Header({ navLinks }: HeaderProps) { | ||
return ( | ||
<header class="header w-full top-0 p-6 tracking-wide z-10"> | ||
<div class="flex items-center justify-between"> | ||
<div> | ||
<header class="header w-full top-0 p-6 py-8 sticky tracking-wide z-10"> | ||
<div class="flex items-center justify-between max-w-screen-2xl mx-auto"> | ||
<div class="flex"> | ||
<a | ||
href="/" | ||
class="flex items-end gap-x-2 sm:gap-x-1 after:content-['v3'] after:inline after:relative after:top-0 after:text-sm" | ||
class="flex items-end gap-x-2" | ||
> | ||
<img | ||
src="/assets/images/effection-logo.svg" | ||
alt="Effection Logo" | ||
width={156} | ||
height={24} | ||
/> | ||
<img src="/assets/images/effection-logo.svg" alt="Effection Logo" width={156} height={24} /> | ||
</a> | ||
<span class="hidden sm:flex items-center"> | ||
<ProjectSelect /> | ||
</span> | ||
</div> | ||
<nav aria-label="Site Nav" class="text-sm"> | ||
<ul class="flex items-center sm:gap-1.5 gap-3 md:gap-16"> | ||
<li> | ||
<a href="/docs/installation">Guides</a> | ||
</li> | ||
<li> | ||
<a href="https://deno.land/x/effection/mod.ts">API</a> | ||
</li> | ||
<li> | ||
<a class="flex flex-row" href="https://github.com/thefrontside/effection"> | ||
<span class="pr-1 md:inline-flex"> | ||
<IconGithHub /> | ||
</span> | ||
<span class="hidden md:inline-flex"> | ||
GitHub | ||
</span> | ||
</a> | ||
</li> | ||
<li> | ||
<a class="flex flex-row" href="https://discord.gg/r6AvtnU"> | ||
<span class="pr-1 md:inline-flex"> | ||
<IconDiscord /> | ||
</span> | ||
<span class="hidden md:inline-flex"> | ||
Discord | ||
</span> | ||
</a> | ||
</li> | ||
<li> | ||
<ProjectSelect /> | ||
</li> | ||
<nav aria-label="Site Nav" class="text-sm font-bold"> | ||
<ul class="flex items-center sm:gap-1.5 gap-3 md:gap-12"> | ||
{navLinks.map(link => ( | ||
<li>{link}</li> | ||
))} | ||
</ul> | ||
</nav> | ||
</div> | ||
</header> | ||
) | ||
} | ||
); | ||
} |
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
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
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
Oops, something went wrong.