Skip to content

Commit

Permalink
trying to fix vercel INFINITE_LOOP on about page
Browse files Browse the repository at this point in the history
  • Loading branch information
Eeshau committed Nov 11, 2024
1 parent f6bff5f commit 49b2b85
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 21 deletions.
6 changes: 3 additions & 3 deletions packages/app/src/components/Video.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* LOCAL VIDEO VERSION BELOW */
import React from 'react';
import { Box } from '@mui/material';
import React, { memo } from 'react';

const Video: React.FC = () => {
const Video = memo(() => {
return (
<Box sx={{ width: '100%', height: '100%' }}>
<video style={{ width: '100%', height: '100%' }} controls>
Expand All @@ -11,6 +11,6 @@ const Video: React.FC = () => {
</video>
</Box>
);
}
});

export default Video;
37 changes: 19 additions & 18 deletions packages/app/src/pages/AboutPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,30 +18,31 @@ import Video from '../components/Video';
import Footer from '../components/Footer';


const faqs = [
{
title: 'How do you selectively reveal content in an email ?',
contents: 'We can hide any information or selectively reveal any text, wether that’s the sender, receiver, subject, body etc using Regex. Regex is short for regular expression, this term represents sequence of characters that forms a search pattern, commonly used for string matching within text. It consists of a sequence of characters that define a search pattern, enabling complex searches, substitutions, and string manipulations. For example, in programming and text processing, regex can identify, extract, or replace specific text patterns, such as email addresses, dates, or phone numbers, by defining these patterns through a combination of literal characters and special symbols. In the context of ZK Email it is used to parse email headers and extract relevant information.'
},
{
title: 'How can I do this anonymously',
contents: 'ZK Email leverages the principles of Zero Knowledge proofs and serverless execution within the browser to provide a verifiable yet anonymous way to confirm an emails contents and recipents . Zero Knowledge proofs allow provers to prove that they know or possess certain information without revealing the information itself to a verifer. In ZK Email, this technology is used to verify user identity and email content without exposing sensitive data to a server or other users. The serverless architecture means that all proof generation is executed entirely within the user`s browser.'
},
{
title: 'Why don’t I need to trust you?',
contents: 'The DKIM email signitures do not contain information we can use to sign other emails, all our code is open source and being audited'
},
{
title: 'How do you verify the email contents and recipents',
contents: 'We use the existing DKIM Signiture, almost all emails are signed by the sending domain server using an algorithm called DKIM. It can be summarized as this rsa_sign(sha256(from:..., to:..., subject:..., <body hash>,...), private key). Every time an email is sent we can verify the sender, receiver, the subject, the body by checking if the corresponding public key of the email address applied on the DKIM signiture returns the sha256(from:..., to:..., subject:..., <body hash>,...) a hash of the from, to subject, email details which we can check by rehashing'
},
];

const AboutPage: React.FC = () => {
const theme = useTheme();
const isXs = useMediaQuery(theme.breakpoints.down('xs'));
const isSm = useMediaQuery(theme.breakpoints.down('sm'));
const isMd = useMediaQuery(theme.breakpoints.down('md'));

const faqs = [
{
title: 'How do you selectively reveal content in an email ?',
contents: 'We can hide any information or selectively reveal any text, wether that’s the sender, receiver, subject, body etc using Regex. Regex is short for regular expression, this term represents sequence of characters that forms a search pattern, commonly used for string matching within text. It consists of a sequence of characters that define a search pattern, enabling complex searches, substitutions, and string manipulations. For example, in programming and text processing, regex can identify, extract, or replace specific text patterns, such as email addresses, dates, or phone numbers, by defining these patterns through a combination of literal characters and special symbols. In the context of ZK Email it is used to parse email headers and extract relevant information.'
},
{
title: 'How can I do this anonymously',
contents: 'ZK Email leverages the principles of Zero Knowledge proofs and serverless execution within the browser to provide a verifiable yet anonymous way to confirm an emails contents and recipents . Zero Knowledge proofs allow provers to prove that they know or possess certain information without revealing the information itself to a verifer. In ZK Email, this technology is used to verify user identity and email content without exposing sensitive data to a server or other users. The serverless architecture means that all proof generation is executed entirely within the user`s browser.'
},
{
title: 'Why don’t I need to trust you?',
contents: 'The DKIM email signitures do not contain information we can use to sign other emails, all our code is open source and being audited'
},
{
title: 'How do you verify the email contents and recipents',
contents: 'We use the existing DKIM Signiture, almost all emails are signed by the sending domain server using an algorithm called DKIM. It can be summarized as this rsa_sign(sha256(from:..., to:..., subject:..., <body hash>,...), private key). Every time an email is sent we can verify the sender, receiver, the subject, the body by checking if the corresponding public key of the email address applied on the DKIM signiture returns the sha256(from:..., to:..., subject:..., <body hash>,...) a hash of the from, to subject, email details which we can check by rehashing'
},
];

return (
<Box sx={{backgroundColor:'#f0f0f0', background:'radial-gradient(70.71% 70.71% at 50% 50%, #FFF 19%, rgba(255, 255, 255, 0.00) 61%), linear-gradient(38deg, #F5F3EF 60%, rgba(255, 255, 255, 0.69) 100%), linear-gradient(45deg, #FFF 10%, rgba(255, 255, 255, 0.00) 23.5%), linear-gradient(36deg, #FFF 12.52%, rgba(255, 255, 255, 0.00) 76.72%), linear-gradient(214deg, rgba(255, 255, 255, 0.00) 0%, rgba(255, 220, 234, 0.40) 37.53%, #E4F1FE 71%), linear-gradient(212deg, rgba(255, 255, 255, 0.00) 15%, #E4F1FE 72.5%, rgba(255, 255, 255, 0.00) 91.5%)'}}>
Expand Down

0 comments on commit 49b2b85

Please sign in to comment.