Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some URLs #458

Merged
merged 4 commits into from
Nov 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified apps/website/public/social-media.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions apps/website/src/app/build/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export default function Build() {
icon: <IconCli width={8} height={8} color="ceruleanBlue" />,
title: "CLI",
subtitle: "INTEGRATE TO YOUR PROJECT",
url: "https://github.com/semaphore-protocol/semaphore/tree/main/packages/cli#readme",
details: [
"Streamline setting up a new Semaphore project",
"Interact with group, members & proofs data easily",
Expand All @@ -22,6 +23,7 @@ export default function Build() {
icon: <IconBook width={8} height={8} color="ceruleanBlue" />,
title: "Boilerplate",
subtitle: "START FROM TEMPLATE",
url: "https://github.com/semaphore-protocol/boilerplate",
details: [
"Begin your projects with a ready-to-use example template",
"Create identity, join group, send anonmous feedback",
Expand All @@ -32,6 +34,7 @@ export default function Build() {
icon: <IconBox width={8} height={8} color="ceruleanBlue" />,
title: "Packages",
subtitle: "LEVERAGE DEVELOPED LIBRARIES",
url: "https://github.com/semaphore-protocol/semaphore/tree/main/packages",
details: [
"Curated libraries to enhance your development process",
"Preconfigured deployments with Hardhat plugin",
Expand Down Expand Up @@ -72,6 +75,7 @@ export default function Build() {
subtitle={toolCardInfo.subtitle}
icon={toolCardInfo.icon}
details={toolCardInfo.details}
url={toolCardInfo.url}
/>
))}
</Flex>
Expand Down Expand Up @@ -147,6 +151,7 @@ export default function Build() {
title="Project ideas to explore with Semaphore"
description="The team has created this list of project ideas to build with Semaphore, but there are many more to be discovered."
buttonText="Get inspired"
buttonUrl="https://github.com/orgs/semaphore-protocol/discussions/463"
/>
</VStack>
</VStack>
Expand Down
1 change: 1 addition & 0 deletions apps/website/src/app/projects/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export default function Projects() {
title="Show what you have built"
description="We are missing your project! Add your project to this page and show your awesomeness to the world."
buttonText="Submit your project"
buttonUrl="https://github.com/semaphore-protocol/semaphore/issues/new?assignees=&labels=documentation++%F0%9F%93%96&projects=&template=----project.md&title="
/>
</VStack>
</VStack>
Expand Down
14 changes: 9 additions & 5 deletions apps/website/src/components/ActionCard.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import { Heading, Text, Card, CardBody, Stack, Button, Flex } from "@chakra-ui/react"
import { Heading, Text, Card, CardBody, Stack, Flex, Link } from "@chakra-ui/react"

export type ActionCardProps = {
title: string
description: string
buttonText: string
buttonUrl: string
}

export default function ActionCard({ title, description, buttonText }: ActionCardProps) {
export default function ActionCard({ title, description, buttonText, buttonUrl }: ActionCardProps) {
return (
<Card
bg="darkBlue"
Expand Down Expand Up @@ -43,17 +44,20 @@ export default function ActionCard({ title, description, buttonText }: ActionCar
</Text>
</Stack>
<Stack width={{ base: "full", md: "auto" }}>
<Button
<Link
href={buttonUrl}
isExternal
variant="buttonlink"
bg="semaphore"
w="fit-content"
lineHeight="24px"
fontSize={{ base: "14px", md: "18px", lg: "20px" }}
textColor="white"
padding="1.5rem 2rem"
padding="14px 16px"
_hover={{ opacity: "85%" }}
>
{buttonText}
</Button>
</Link>
</Stack>
</Flex>
</CardBody>
Expand Down
17 changes: 12 additions & 5 deletions apps/website/src/components/ToolsCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
VStack,
StackDivider,
Box,
Button,
Link,
Flex
} from "@chakra-ui/react"
import IconChevronRight from "@/icons/IconChevronRight"
Expand All @@ -19,9 +19,10 @@ export type ToolsCardProps = {
title: string
subtitle: string
details: string[]
url: string
}

export default function ToolsCard({ icon, title, subtitle, details }: ToolsCardProps) {
export default function ToolsCard({ icon, title, subtitle, details, url }: ToolsCardProps) {
return (
<Card
bg="darkBlue"
Expand All @@ -40,17 +41,23 @@ export default function ToolsCard({ icon, title, subtitle, details }: ToolsCardP
<Heading fontSize="40px" fontWeight="normal">
{title}
</Heading>
<Button
<Link
display="flex"
alignItems="center"
justifyContent="center"
href={url}
isExternal
variant="buttonlink"
py="10px"
mt="24px"
w="full"
bg="semaphore"
color="white"
fontSize="18px"
fontWeight="medium"
_hover={{ bg: "semaphore", opacity: "85%" }}
>
Select tool
</Button>
</Link>
</Box>
<Box>
<Text fontSize="12px" textTransform="uppercase" fontWeight="semibold">
Expand Down
4 changes: 2 additions & 2 deletions apps/website/src/data/videos.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"eventName": "Taipei Ethereum Meetup",
"date": "May 21, 2019",
"speakers": ["Barry Whitehat"],
"url": "https://youtu.be/TtsDNneTDDY",
"thumbnail": "https://img.youtube.com/vi/TtsDNneTDDY/0.jpg"
"url": "https://youtu.be/maDHYyj30kg",
"thumbnail": "https://img.youtube.com/vi/maDHYyj30kg/0.jpg"
},
{
"title": "Semaphore Roadmap for Ethereum",
Expand Down
4 changes: 4 additions & 0 deletions apps/website/src/styles/components/Link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ const Link = {
pb: "5px",
pt: "6px",
_hover: { borderBottomColor: "ceruleanBlue" }
}),
buttonlink: (): SystemStyleObject => ({
borderRadius: "100px",
fontWeight: "500"
})
}
}
Expand Down
Loading