Removed fill on svg, removed links if null on project file

This commit is contained in:
samueloh99
2023-06-30 18:34:41 -03:00
parent 7a85d1b7a2
commit 5ede4f6e33
5 changed files with 15 additions and 78 deletions

View File

@@ -1,7 +1,7 @@
"use client"
import NextImage from "next/image"
import NextLink from "next/link"
import Image from "next/image"
import Link from "next/link"
import { usePathname } from "next/navigation"
import GithubVector from "@/public/social-medias/github-fill.svg"
import GlobalVector from "@/public/social-medias/global-line.svg"
@@ -32,7 +32,6 @@ export default function ProjectDetailPage() {
(project) => String(project.id) === router.split("/").slice(1)[1]
)[0]
const githubLink = findProject.links.github
const twitterLink = findProject.links.twitter
const websiteLink = findProject.links.website
@@ -45,49 +44,39 @@ export default function ProjectDetailPage() {
{findProject.name}
</h1>
<div className="flex flex-wrap items-center justify-start gap-5">
<NextLink
<Link
href={findProject.links.github}
target="_blank"
rel="noreferrer"
>
<div className="flex items-center gap-2">
<NextImage src={GithubVector} alt="bg" width={20} height={20} />
<Image src={GithubVector} alt="bg" width={20} height={20} />
<p>Github</p>
</div>
</NextLink>
{websiteLink !== null && (
<NextLink
</Link>
{websiteLink && (
<Link
href={findProject.links.website}
target="_blank"
rel="noreferrer"
>
<div className="flex items-center gap-2">
<NextImage
src={GlobalVector}
alt="bg"
width={20}
height={20}
/>
<Image src={GlobalVector} alt="bg" width={20} height={20} />
<p>Website</p>
</div>
</NextLink>
</Link>
)}
{twitterLink !== null && (
<NextLink
{twitterLink && (
<Link
href={findProject.links.twitter}
target="_blank"
rel="noreferrer"
>
<div className="flex items-center gap-2">
<NextImage
src={TwitterVector}
alt="bg"
width={20}
height={20}
/>
<Image src={TwitterVector} alt="bg" width={20} height={20} />
<p>Twitter</p>
</div>
</NextLink>
</Link>
)}
</div>
<p className="mt-5 w-full text-lg md:w-[612px]">{findProject.tldr}</p>
@@ -96,7 +85,7 @@ export default function ProjectDetailPage() {
<div className="flex w-full flex-col items-center justify-center gap-5 bg-anakiwa px-[24px] py-10 md:px-0">
{findProject.image ? (
<div className="flex h-auto items-center justify-center">
<NextImage
<Image
src={require(`@/public/project-banners/${findProject.image}`)}
alt="bg"
width={664}

View File

@@ -73,7 +73,7 @@ export default function ProjectsPage() {
height={18}
/>
</Link>
{project.links.website !== null && (
{project.links.website && (
<Link
href={`${project.links.website}`}
target="_blank"

View File

@@ -10,7 +10,6 @@ export const ArrowRightUp = ({ color }: MySvgProps) => {
width="24"
height="24"
viewBox="0 0 24 24"
fill=""
xmlns="http://www.w3.org/2000/svg"
>
<g id="arrow-right-up-line" clipPath="url(#clip0_3593_2234)">

View File

@@ -10,7 +10,6 @@ export const Github = ({ color }: MySvgProps) => {
width="24"
height="24"
viewBox="0 0 24 24"
fill=""
xmlns="http://www.w3.org/2000/svg"
>
<g id="github">
@@ -32,7 +31,6 @@ export const Global = ({ color }: MySvgProps) => {
width="25"
height="24"
viewBox="0 0 25 24"
fill=""
xmlns="http://www.w3.org/2000/svg"
>
<g id="global-line" clip-path="url(#clip0_3593_4165)">
@@ -62,7 +60,6 @@ export const Discord = ({ color }: MySvgProps) => {
width="24"
height="24"
viewBox="0 0 24 24"
fill=""
xmlns="http://www.w3.org/2000/svg"
>
<g id="discord">
@@ -91,7 +88,6 @@ export const Twitter = ({ color }: MySvgProps) => {
width="24"
height="24"
viewBox="0 0 24 24"
fill=""
xmlns="http://www.w3.org/2000/svg"
>
<g id="twitter">
@@ -113,7 +109,6 @@ export const Mirror = ({ color }: MySvgProps) => {
width="24"
height="24"
viewBox="0 0 24 24"
fill=""
xmlns="http://www.w3.org/2000/svg"
>
<g id="Mirror">

View File

@@ -9,8 +9,6 @@ export const projects = [
links: {
github: "https://github.com/Rate-Limiting-Nullifier/circom-rln",
website: "https://rate-limiting-nullifier.github.io/rln-docs/",
twitter: null,
discord: null,
},
tags: {
themes: ["Anonymity/privacy"],
@@ -28,7 +26,6 @@ export const projects = [
links: {
github: "https://github.com/zkitter",
website: "https://www.zkitter.com/explore/",
twitter: null,
discord: "https://discord.gg/Em4Z9yE8eW",
},
@@ -47,11 +44,6 @@ export const projects = [
"Minimal Anti-Collusion Infrastructure (MACI) is a protocol designed to provide a highly secure e-voting solution. It enables organizations to conduct on-chain voting processes with a significantly reduced risk of cheating, such as bribery or collusion. MACI uses zero-knowledge proofs to implement a receipt-free voting scheme, making it impossible for anyone other than the vote coordinator to verify how a specific user voted. This ensures the correct execution of votes and allows anyone to verify the results. It's particularly beneficial for governance and funding events, where its anti-collusion mechanisms help ensure fair and transparent outcomes.",
links: {
github: "https://github.com/privacy-scaling-explorations/maci",
website: null,
twitter: null,
discord: null,
},
tags: {
themes: ["Anonymity/privacy", "Voting/governance"],
@@ -69,7 +61,6 @@ export const projects = [
links: {
github: "https://github.com/getwax",
website: "https://getwax.org/",
twitter: null,
discord: "https://discord.gg/hGDmAhcRyz",
},
tags: {
@@ -97,10 +88,6 @@ export const projects = [
"ZK-Chat is a protocol that enables developers to incorporate decentralized, anonymous chat features into their applications, complete with spam protection and anonymous group signaling. It uses Waku decentralized messaging, Semaphore for anonymous signaling, and Rate-Limiting Nullifier (RLN) for spam prevention. This creates a decentralized, client-server model that offers unstoppable, anonymous chat with registry on-chain. It's designed for both developers and users, offering an app and a library for easy integration into various applications.",
links: {
github: "https://github.com/kayleegeorge/zk-chat//",
website: null,
twitter: null,
discord: null,
},
tags: {
themes: ["Anonymity/privacy", "Social"],
@@ -117,9 +104,6 @@ export const projects = [
"CryptKeeper is a browser extension that generates Semaphore and RLN proofs for websites, providing a secure and portable solution for managing anonymous identity secrets across different applications. It simplifies the integration of zero-knowledge (ZK) identities and proofs into applications, allowing developers to focus on building the front-end and logic of their applications. By handling complex aspects of cryptography, circuits, caching, and storage, CryptKeeper enables users to interact with decentralized applications (dapps) without revealing their private identity secrets. It is aimed at building secure community standards for the growing ZK ecosystem.",
links: {
github: "https://github.com/CryptKeeperZK",
website: null,
twitter: null,
discord: null,
},
tags: {
themes: ["Anonymity/privacy", "Social", "Identity"],
@@ -138,7 +122,6 @@ export const projects = [
links: {
github: "https://github.com/semaphore-protocol",
website: "https://semaphore.appliedzkp.org/",
twitter: null,
discord: "https://semaphore.appliedzkp.org/discord",
},
tags: {
@@ -172,9 +155,6 @@ export const projects = [
"PSE Security is a division of the Privacy & Scaling Explorations team at the Ethereum Foundation. Its primary goal is to identify and rectify bugs, thereby enhancing the security of the Ethereum Layer 2 and Zero-Knowledge ecosystems. Recognizing the potential for critical bugs to cause significant setbacks, PSE Security is committed to preemptively addressing these issues. The team offers open-source projects like the ZK Bug Tracker and Bridge Bug Tracker, which track real bugs and exploits in production code, and encourages community contributions. PSE Security also conducts manual audits and plans to help teach the community more about security and ways they can prevent bugs themselves.",
links: {
github: "https://github.com/privacy-scaling-explorations/security",
website: null,
discord: null,
twitter: null,
},
tags: {
themes: [
@@ -198,9 +178,6 @@ export const projects = [
"zkEVM Community Edition is a project aimed at validating Ethereum blocks using zero-knowledge proofs. It is designed to be fully compatible with Ethereum's EVM and serves two primary goals. First, it enables the creation of a layer 2 network (zkRollup) compatible with the Ethereum ecosystem, which uses zero-knowledge proofs to validate blocks, thus enhancing scalability. Second, it allows the generation of zero-knowledge proofs for blocks from the existing layer 1 Ethereum network, enabling light clients to quickly synchronize many blocks with low resource consumption while ensuring block correctness without needing trust in external parties.",
links: {
github: "https://github.com/privacy-scaling-explorations/zkevm-circuits",
website: null,
twitter: null,
discord: null,
},
tags: {
themes: ["Scaling"],
@@ -219,8 +196,6 @@ export const projects = [
links: {
github: "https://github.com/privacy-scaling-explorations/bandada",
website: "https://bandada.appliedzkp.org/",
twitter: null,
discord: null,
},
tags: {
themes: [
@@ -256,9 +231,6 @@ export const projects = [
"The DSL Working Group is focused on the exploration and improvement of languages used to write zero-knowledge circuits. The group's primary goal is to enhance the state of zk circuit languages, making them easier to write and review by offering the right abstractions. They also aim to make it harder to write unsound circuits by implementing static analysis and enforcing safer patterns. Additionally, they are working to support next-generation (Incrementally Verifiable Computation or IVC) proving systems. The group is currently working on Chiquito, a high-level Domain-Specific Language (DSL) for Halo2 circuits that lowers the entry barrier to write zk circuits with a state-machine abstraction API.",
links: {
github: "https://github.com/privacy-scaling-explorations/chiquito/",
website: null,
twitter: null,
discord: null,
},
tags: {
type: ["Legos/dev tools", "Proof of concept", "Developer tooling"],
@@ -276,10 +248,6 @@ export const projects = [
"ZKML is a solution that combines the power of zero-knowledge proofs (ZKPs) and machine learning to address the privacy concerns in traditional machine learning. It provides a platform for machine learning developers to convert their TensorFlow Keras models into ZK-compatible versions, ensuring model privacy, data privacy, and transparent verification. ZKML can be used to verify if a specific machine learning model was used to generate a particular piece of content, without revealing the input or the model used. It has potential use cases in on-chain biometric authentication, private data marketplace, proprietary ML model sharing, and AIGC NFTs.",
links: {
github: "https://github.com/socathie",
website: null,
twitter: null,
discord: null,
},
tags: {
themes: ["Anonymity/privacy", "Scaling"],
@@ -297,10 +265,6 @@ export const projects = [
"The Trusted Setups project is dedicated to simplifying the process of trusted setups, which are crucial for privacy or scaling solutions. Trusted setups involve multiple participants contributing to the generation of secrets. As long as one participant forgets their part of the secret, the final solution remains secure. The team recognizes the complexity of developing contribution programs and coordinating the participants' queue in a trusted setup. To address this, they are developing tools, including scripts, WebApps, and APIs, to streamline the contribution and coordination effort. This allows developers to focus on building their circuits and applications, enhancing efficiency and productivity in the development of zero-knowledge applications.",
links: {
github: "https://github.com/zkparty",
website: null,
twitter: null,
discord: null,
},
tags: {
themes: ["Scaling", "Education"],
@@ -320,7 +284,6 @@ export const projects = [
github: "http://github.com/monemetrics/semaphore-zk3",
website: "http://zk3.io/",
twitter: "http://twitter.com/zk3org",
discord: null,
},
tags: {
themes: ["Anonymity/privacy", "Social", "Identity", "Reputation"],
@@ -344,7 +307,6 @@ export const projects = [
links: {
github: "https://github.com/tlsnotary/tlsn",
website: "https://tlsnotary.org/",
twitter: null,
discord: "https://discord.gg/9XwESXtcN7",
},
tags: {
@@ -363,9 +325,6 @@ export const projects = [
"EigenTrust is a library designed to manage trust within a distributed network, incorporating zero-knowledge features. It serves as a reputation bank for the Ethereum ecosystem, providing an interoperable layer for managing reputation and trust. The protocol creates zero-knowledge proofs of reputation scores based on ratings given by network participants. This allows for the creation of a reputation system for peer-to-peer marketplaces and exchanges, reputation-weighted voting, and community gatekeeping.",
links: {
github: "https://github.com/eigen-trust/protocol",
website: null,
twitter: null,
discord: null,
},
tags: {
themes: ["Reputation", "Identity"],
@@ -384,8 +343,6 @@ export const projects = [
links: {
github: "https://github.com/privacy-scaling-explorations/e2e-zk-ecdsa",
website: "https://anonklub.fly.dev/",
twitter: null,
discord: null,
},
tags: {
themes: [
@@ -409,9 +366,6 @@ export const projects = [
"Summa allows centralized exchanges to demonstrate that their assets exceed their liabilities without revealing critical business information such as individual user balances, total number of users, and total liabilities or assets. It uses zero-knowledge proofs to ensure that exchanges can demonstrate they have sufficient assets to cover all user balances. The protocol involves building a Merkle Sum Tree of user balances, generating proofs for each user, and allowing users to verify these proofs.",
links: {
github: "https://github.com/summa-dev",
website: null,
twitter: null,
discord: null,
},
tags: {
themes: ["Anonymity/privacy", "Computational Integrity"],