diff --git a/apps/website/src/app/learn/page.tsx b/apps/website/src/app/learn/page.tsx index e341d126c..60a8e4cef 100644 --- a/apps/website/src/app/learn/page.tsx +++ b/apps/website/src/app/learn/page.tsx @@ -25,6 +25,10 @@ import IconBadge from "@/icons/IconBadge" import IconCheck from "@/icons/IconCheck" import IconFlag from "@/icons/IconFlag" import Carousel from "@/components/Carousel" +import videos from "../../data/videos.json" +import VideoCard from "../../components/VideoCard" +import articles from "../../data/articles.json" +import ArticleCard from "../../components/ArticleCard" export default function Learn() { const infoCardTexts: InfoBlock[][] = [ @@ -174,26 +178,26 @@ await verifyProof(verificationKey, fullProof)`, const renderTabBlockSemaphore = () => ( - - + + Semaphore: Anonymous interactions - + Using zero knowledge, Semaphore allows users to prove their membership of a group and send signals such as votes or endorsements without revealing their original identity. The goal is to make Semaphore a standard for anonymous signaling and group membership proving. - + - + Principles - + Main focus @@ -205,11 +209,11 @@ await verifyProof(verificationKey, fullProof)`, const renderTabBlockZeroKnowledge = () => ( - - + + Zero Knowledge: new cryptography - + Zero-knowledge is a new field in cryptography that allows developers to build apps that allow users to share information with each other without revealing their identities or the contents of the information being shared. @@ -219,7 +223,7 @@ await verifyProof(verificationKey, fullProof)`, borderBottomWidth={"1px"} borderBottomColor={"white"} _hover={{ borderBottomColor: "transparent" }} - fontSize="20px" + fontSize={{ base: "16px", md: "20px" }} fontWeight="normal" > Learn more @@ -228,7 +232,7 @@ await verifyProof(verificationKey, fullProof)`, - + Characteristics @@ -239,8 +243,16 @@ await verifyProof(verificationKey, fullProof)`, return ( - - + + Guy shadow image - + + Guy shadow image + + + About Semaphore @@ -270,7 +309,7 @@ await verifyProof(verificationKey, fullProof)`, - + {sectionBlockTexts.map((sectionBlockText, i) => ( - + + + Videos + + + {videos.map((video, i) => ( + + + + + + ))} + + + Articles + + + {articles.map((article, i) => ( + + + + ))} + ) diff --git a/apps/website/src/components/CodeBlock.tsx b/apps/website/src/components/CodeBlock.tsx index 03b2f015f..3149c4920 100644 --- a/apps/website/src/components/CodeBlock.tsx +++ b/apps/website/src/components/CodeBlock.tsx @@ -14,24 +14,28 @@ export default function CodekBlock({ text }: CodekBlockProps) { showLineNumbers: false, wrapLines: true, theme: ocean, - customStyle: { background: "transparent", overflow: "auto", paddingRight: "70px" } + customStyle: { + background: "transparent", + overflow: "auto", + padding: "24px", + paddingRight: "120px", + paddingTop: "60px" + } } return ( diff --git a/apps/website/src/components/InfoCard.tsx b/apps/website/src/components/InfoCard.tsx index c955ed919..d0265efe2 100644 --- a/apps/website/src/components/InfoCard.tsx +++ b/apps/website/src/components/InfoCard.tsx @@ -19,15 +19,19 @@ export default function InfoCard({ texts }: InfoCardProps) { border="1px" borderColor="white" padding="30px" - width={"410px"} - height={"474px"} + width={{ base: "350px", md: "410px" }} + height={{ base: "auto", md: "474px" }} > {texts.map((text, i) => ( - {text.title} - {text.body} + + {text.title} + + + {text.body} + ))} diff --git a/apps/website/src/components/SectionBlock.tsx b/apps/website/src/components/SectionBlock.tsx index a6c8d24ee..246ec596b 100644 --- a/apps/website/src/components/SectionBlock.tsx +++ b/apps/website/src/components/SectionBlock.tsx @@ -22,10 +22,12 @@ export type SectionBlockProps = { export default function SectionBlock({ title, description, linkText, linkUrl, codeText, itemList }: SectionBlockProps) { return ( - - - {title} - + + + + {title} + + {description} {linkText} + - + {itemList.map((item, i) => ( {item.icon} @@ -61,7 +70,6 @@ export default function SectionBlock({ title, description, linkText, linkUrl, co ))} - ) } diff --git a/apps/website/src/components/VideoCard.tsx b/apps/website/src/components/VideoCard.tsx index bc8c36002..1203ebf76 100644 --- a/apps/website/src/components/VideoCard.tsx +++ b/apps/website/src/components/VideoCard.tsx @@ -22,7 +22,7 @@ export default function VideoCard({ embeddedVideoUrl, title }: VideoCardProps) { - + {title}