diff --git a/apps/website/src/app/learn/page.tsx b/apps/website/src/app/learn/page.tsx index bf44d9954..93c6d0c5f 100644 --- a/apps/website/src/app/learn/page.tsx +++ b/apps/website/src/app/learn/page.tsx @@ -9,7 +9,8 @@ import { Tab, TabPanel, TabIndicator, - Divider + Divider, + Box } from "@chakra-ui/react" import Image from "next/image" import InfoCard, { InfoBlock } from "../../components/InfoCard" @@ -82,7 +83,7 @@ export default function Learn() { codeText: `import { Identity } from "@semaphore-protocol/identity" const identity = new Identity() - + const trapdoor = identity.getTrapdoor() const nullifier = identity.getNullifier() const commitment = identity.generateCommitment()`, @@ -113,7 +114,7 @@ const commitment = identity.generateCommitment()`, codeText: `import { Group } from "@semaphore-protocol/group" const group = new Group() - + group.addMember(commitment)`, itemList: [ { @@ -143,14 +144,14 @@ group.addMember(commitment)`, const externalNullifier = BigInt(1) const signal = "Hello world" - + const fullProof = await generateProof(identity, group, externalNullifier, signal, { zkeyFilePath: "./semaphore.zkey", wasmFilePath: "./semaphore.wasm" }) - + const verificationKey = JSON.parse(fs.readFileSync("./semaphore.json", "utf-8")) - + await verifyProof(verificationKey, fullProof)`, itemList: [ { @@ -239,15 +240,20 @@ await verifyProof(verificationKey, fullProof)`, return ( - - Shadow of a person + + + Guy shadow image + + diff --git a/apps/website/src/app/page.tsx b/apps/website/src/app/page.tsx index 7abdb50ba..b69bffa3f 100644 --- a/apps/website/src/app/page.tsx +++ b/apps/website/src/app/page.tsx @@ -1,5 +1,6 @@ import { Box, Button, Card, CardBody, Heading, HStack, Link, Stack, Text, VStack } from "@chakra-ui/react" import { Sora } from "next/font/google" +import Image from "next/image" import ProjectsCarousel from "../components/ProjectsCarousel" import events from "../data/events.json" import IconDiscord from "../icons/IconDiscord" @@ -11,18 +12,19 @@ const sora = Sora({ export default function Home() { return ( - - + + + Midnight whispers image + @@ -162,17 +164,18 @@ export default function Home() { - + + Fluttering shadow image + diff --git a/apps/website/src/app/projects/page.tsx b/apps/website/src/app/projects/page.tsx index 69db7aaea..7de267c1d 100644 --- a/apps/website/src/app/projects/page.tsx +++ b/apps/website/src/app/projects/page.tsx @@ -1,22 +1,31 @@ import { Box, Heading, Text, VStack } from "@chakra-ui/react" +import Image from "next/image" import ActionCard from "../../components/ActionCard" -import ProjectsList from "@/components/ProjectsList" +import ProjectsList from "../../components/ProjectsList" export default function Projects() { return ( - - + + + Blue texture image + Built with Semaphore