-
Notifications
You must be signed in to change notification settings - Fork 229
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 #389 from semaphore-protocol/feat/navbar
Website Navbar component
- Loading branch information
Showing
23 changed files
with
145 additions
and
156 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
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,15 +1,20 @@ | ||
"use client" | ||
|
||
import { Heading, Text, VStack } from "@chakra-ui/react" | ||
import Container from "../components/Container" | ||
|
||
export default function Home() { | ||
return ( | ||
<VStack h="400" justify="center"> | ||
<Heading as="h2" size="xl"> | ||
Anonymous interactions | ||
</Heading> | ||
<Text align="center"> | ||
Using zero knowledge, users can prove their group membership <br /> | ||
and send signals such as votes or endorsements without revealing their original identity. | ||
</Text> | ||
</VStack> | ||
<Container> | ||
<VStack h="400" justify="center"> | ||
<Heading as="h2" size="xl"> | ||
Anonymous interactions | ||
</Heading> | ||
<Text align="center"> | ||
Using zero knowledge, users can prove their group membership <br /> | ||
and send signals such as votes or endorsements without revealing their original identity. | ||
</Text> | ||
</VStack> | ||
</Container> | ||
) | ||
} |
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,11 @@ | ||
import { Container as _Container, ContainerProps } from "@chakra-ui/react" | ||
import Navbar from "./Navbar" | ||
|
||
export default function Container({ children }: ContainerProps) { | ||
return ( | ||
<_Container maxW="1440px" px="20"> | ||
<Navbar /> | ||
{children} | ||
</_Container> | ||
) | ||
} |
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,46 @@ | ||
"use client" | ||
|
||
import { HStack, Image, Link } from "@chakra-ui/react" | ||
import { usePathname } from "next/navigation" | ||
import IconArrowUpRight from "../icons/IconArrowUpRight" | ||
|
||
export default function Navbar() { | ||
const pathname = usePathname() | ||
|
||
return ( | ||
<HStack py="7" justify="space-between"> | ||
<Image htmlWidth="148px" src="./semaphore-logo.svg" alt="Semaphore logo" /> | ||
<HStack fontSize="18px" spacing="10"> | ||
<Link | ||
href="/projects" | ||
variant="navlink" | ||
borderBottomColor={pathname === "/projects" ? "ceruleanBlue" : "transparent"} | ||
> | ||
Projects | ||
</Link> | ||
<Link | ||
href="/learn" | ||
variant="navlink" | ||
borderBottomColor={pathname === "/learn" ? "ceruleanBlue" : "transparent"} | ||
> | ||
Learn | ||
</Link> | ||
<Link | ||
href="/build" | ||
variant="navlink" | ||
borderBottomColor={pathname === "/build" ? "ceruleanBlue" : "transparent"} | ||
> | ||
Build | ||
</Link> | ||
<Link href="https://docs.semaphore.pse.dev" variant="navlink" isExternal> | ||
Documentation | ||
<IconArrowUpRight width="10px" ml={3} mb={1} /> | ||
</Link> | ||
<Link href="https://github.com/semaphore-protocol" variant="navlink" isExternal> | ||
Github | ||
<IconArrowUpRight width="10px" ml={3} mb={1} /> | ||
</Link> | ||
</HStack> | ||
</HStack> | ||
) | ||
} |
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.