www: add social links to navigation (#821)

resolves https://github.com/denoland/fresh/issues/818
Co-authored-by: hashrock <hashrock@users.noreply.github.com>
This commit is contained in:
Paul
2022-12-02 01:52:00 +09:00
committed by GitHub
co-authored by hashrock
parent a0e3b91196
commit 81d73ba0a6
2 changed files with 45 additions and 1 deletions
+20 -1
View File
@@ -1,3 +1,5 @@
import * as Icons from "./Icons.tsx";
export default function NavigationBar(
props: { active: string; class?: string },
) {
@@ -18,7 +20,7 @@ export default function NavigationBar(
const isHome = props.active == "/";
return (
<nav class={"flex " + props.class ?? ""}>
<ul class="flex justify-center items-center gap-4 mx-4 my-6">
<ul class="flex justify-center items-center gap-4 mx-4 my-6 flex-wrap">
{items.map((item) => (
<li>
<a
@@ -33,6 +35,23 @@ export default function NavigationBar(
</a>
</li>
))}
<li class="flex items-center">
<a
href="https://github.com/denoland/fresh"
class="hover:text-green-600 inline-block"
>
<Icons.GitHub />
</a>
</li>
<li class="flex items-center">
<a
href="https://discord.com/channels/684898665143206084/991511118524715139"
class="hover:text-green-600 inline-block"
>
<Icons.Discord />
</a>
</li>
</ul>
</nav>
);