-
Notifications
You must be signed in to change notification settings - Fork 0
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
Email App Revamp #31
base: main
Are you sure you want to change the base?
Email App Revamp #31
Changes from 4 commits
50b90c2
8464336
61c523e
08f79fc
a194592
b82d2b0
b42c442
33a2a35
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import { FC } from 'react'; | ||
import { Box, PushLogo, Text } from 'shared-components'; | ||
import { css } from 'styled-components'; | ||
import { | ||
TogglePushWalletButton, | ||
usePushWalletContext, | ||
} from '@pushprotocol/pushchain-ui-kit'; | ||
|
||
const Header: FC = () => { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @riyanshu-patro The header component should be a fixed component and should not scroll with the viewport when user tries to scroll down. |
||
const { account } = usePushWalletContext(); | ||
|
||
return ( | ||
<Box | ||
width="100%" | ||
display="flex" | ||
padding="spacing-xs spacing-xs" | ||
alignItems="center" | ||
justifyContent="space-between" | ||
css={css` | ||
border-bottom: 1px solid var(--stroke-secondary); | ||
`} | ||
> | ||
<Box display="flex" alignItems="center" gap="spacing-xs"> | ||
<Box display="flex" alignItems="center" gap="spacing-xxs"> | ||
<PushLogo height={40} /> | ||
<Text variant="h2-bold">Push</Text> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
</Box> | ||
<Text | ||
variant="h4-semibold" | ||
css={css` | ||
display: block; | ||
@media (max-width: 768px) { | ||
display: none; | ||
} | ||
`} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. not the correct way. Wrap text inside the box component and use the box display property to implement it. |
||
> | ||
</Text> | ||
</Box> | ||
<Box>{account && <TogglePushWalletButton account={account} />}</Box> | ||
</Box> | ||
); | ||
}; | ||
|
||
export { Header }; |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,144 @@ | ||
import { Back, Box, PushLogo, Text } from 'shared-components'; | ||
import { Card } from './ui/card'; | ||
import { css } from 'styled-components'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
interface EmailViewerProps { | ||
handleBack: () => void; | ||
} | ||
|
||
const DummyEmail: React.FC<EmailViewerProps> = ({ handleBack }) => { | ||
return ( | ||
<Card className="w-full h-fit flex-1 py-6 px-4 md:px-8 gap-6"> | ||
<Box cursor="pointer" onClick={handleBack}> | ||
<Back size={24} /> | ||
</Box> | ||
<Box display="flex" justifyContent="space-between" alignSelf="stretch"> | ||
<Box | ||
display="flex" | ||
flexDirection="column" | ||
gap="spacing-xs" | ||
width="100%" | ||
> | ||
<Box | ||
display="flex" | ||
justifyContent="space-between" | ||
alignItems="center" | ||
width="100%" | ||
css={css` | ||
padding-left: 48px; | ||
@media (max-width: 768px) { | ||
padding-left: 0px; | ||
} | ||
`} | ||
> | ||
<Text variant="h4-semibold">GM! Web3 Email</Text> | ||
<Box> | ||
<Text variant="bes-semibold">now</Text> | ||
</Box> | ||
</Box> | ||
<Box display="flex" gap="spacing-xxs"> | ||
<PushLogo height={36} width={40} /> | ||
<Box display="flex" flexDirection="column" gap="spacing-xxxs"> | ||
<Text variant="bes-semibold">Push Fam</Text> | ||
<Text variant="bes-semibold" color="text-tertiary"> | ||
To: | ||
</Text> | ||
</Box> | ||
</Box> | ||
</Box> | ||
</Box> | ||
<Box | ||
display="flex" | ||
flexDirection="column" | ||
maxWidth="600px" | ||
alignSelf="center" | ||
gap="spacing-md" | ||
css={css` | ||
padding: 0px 48px; | ||
@media (max-width: 768px) { | ||
padding: 0px; | ||
} | ||
`} | ||
> | ||
<img src="/DummyHeader.png" /> | ||
<Text variant="bs-regular"> | ||
Hello Degen, <br /> | ||
Welcome to the future of email, where web3 meets seamless unified | ||
across all chains! With this app, you can easily connect with your | ||
fellow Solana, Ethereum, Polygon, Optimism and other blockchain users. | ||
</Text> | ||
<Box | ||
display="flex" | ||
gap="spacing-lg" | ||
alignItems="flex-start" | ||
css={css` | ||
flex-direction: row; | ||
flex: 1; | ||
@media (max-width: 768px) { | ||
flex-direction: column; | ||
} | ||
`} | ||
> | ||
<Box | ||
display="flex" | ||
flexDirection="column" | ||
gap="spacing-xxs" | ||
alignItems="flex-start" | ||
css={css` | ||
flex: 1; | ||
@media (max-width: 768px) { | ||
flex: none; | ||
} | ||
`} | ||
> | ||
<img src="/DummyEmail.png" height={75} width={75} /> | ||
<Box> | ||
<Text variant="bm-bold">About Push Email</Text> | ||
<Text variant="bs-regular"> | ||
Push Email is a sample Devnet app designed to showcase the power | ||
of a shared state email app. | ||
</Text> | ||
<br /> | ||
<Text variant="bs-semibold"> | ||
Please note that in this version, emails sent and received are | ||
not encrypted. | ||
</Text> | ||
</Box> | ||
</Box> | ||
<Box | ||
display="flex" | ||
flexDirection="column" | ||
gap="spacing-xxs" | ||
alignItems="flex-start" | ||
css={css` | ||
flex: 1; | ||
@media (max-width: 768px) { | ||
flex: none; | ||
} | ||
`} | ||
> | ||
<img src="/DummyDiscord.png" height={75} width={75} /> | ||
<Box> | ||
<Text variant="bm-bold">No Frens? No Problem!</Text> | ||
<Text variant="bs-regular"> | ||
Feeling too busy for frens? Don’t worry! We’ve got your back. | ||
Test out the email experience by chatting with our sassy email | ||
bot. | ||
</Text> | ||
<br /> | ||
<Text variant="bs-semibold"> | ||
It’s quick, fun, and always ready to banter. | ||
</Text> | ||
</Box> | ||
</Box> | ||
</Box> | ||
<Box display="flex" flexDirection="column" alignItems="flex-start"> | ||
<Text variant="bs-regular">Happy emailing,</Text> | ||
<Text variant="bs-bold">Push Fam</Text> | ||
</Box> | ||
</Box> | ||
</Card> | ||
); | ||
}; | ||
|
||
export default DummyEmail; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@riyanshu-patro you could uninstall the styled components from here and use the one from shared-components.