fix(www): Add a global nav (#895)

This commit is contained in:
hashrock
2022-12-02 01:04:37 +09:00
committed by GitHub
parent 79e9ad017e
commit a0e3b91196
8 changed files with 88 additions and 85 deletions
+8 -10
View File
@@ -9,6 +9,7 @@ import CopyArea from "../islands/CopyArea.tsx";
import * as Icons from "../components/Icons.tsx";
import Projects from "../components/Projects.tsx";
import projects from "../data/showcase.json" assert { type: "json" };
import Header from "../components/Header.tsx";
export const handler: Handlers = {
GET(req, ctx) {
@@ -43,9 +44,14 @@ export default function MainPage(props: PageProps) {
<meta property="og:url" content={props.url.href} />
<meta property="og:image" content={ogImageUrl} />
</Head>
<div class="flex flex-col min-h-screen">
<HelloBar />
<Hero />
<div class="bg-green-300 flex flex-col">
<HelloBar />
<Header title="" active="/" />
<Hero />
</div>
<div class="flex-1">
<Intro />
<GettingStarted origin={origin} />
@@ -75,14 +81,6 @@ function HelloBar() {
function Hero() {
return (
<>
<div class="flex justify-end items-center bg-green-300">
<a
href="/docs"
class="border(1 black) inline-flex items-center h-10 px-4 m-4 text-black bg-transparent rounded hover:bg-white"
>
Documentation
</a>
</div>
<section class="w-full flex justify-center items-center flex-col bg-green-300">
<LemonDrop />
</section>