-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from 0xChqrles/feat/homepage
Feat/homepage
- Loading branch information
Showing
30 changed files
with
470 additions
and
400 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import NavBar from 'src/components/NavBar' | ||
import Box from 'src/theme/components/Box' | ||
|
||
import * as styles from './style.css' | ||
|
||
interface AppLayoutProps { | ||
children: React.ReactNode | ||
} | ||
|
||
export default function AppLayout({ children }: AppLayoutProps) { | ||
return ( | ||
<> | ||
<NavBar /> | ||
<Box as="span" className={styles.radial} /> | ||
{children} | ||
</> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { style } from '@vanilla-extract/css' | ||
import { sprinkles } from 'src/theme/css/sprinkles.css' | ||
|
||
export const radial = style([ | ||
{ | ||
zIndex: '-1', | ||
}, | ||
sprinkles({ | ||
position: 'fixed', | ||
top: '0', | ||
right: '0', | ||
left: '0', | ||
bottom: '0', | ||
background: 'appGradient', | ||
}), | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import NavBar from '../NavBar' | ||
|
||
interface HomeLayoutProps { | ||
children: React.ReactNode | ||
} | ||
|
||
export default function HomeLayout({ children }: HomeLayoutProps) { | ||
return ( | ||
<> | ||
<NavBar /> | ||
{children} | ||
</> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,37 @@ | ||
import { style } from '@vanilla-extract/css' | ||
import { sprinkles } from 'src/theme/css/sprinkles.css' | ||
import { vars } from 'src/theme/css/vars.css' | ||
|
||
export const Nav = style([ | ||
{ | ||
boxShadow: `0px 8px 16px 0 ${vars.color.bg1Transparent}`, | ||
}, | ||
export const nav = style([ | ||
sprinkles({ | ||
position: 'sticky', | ||
top: '0', | ||
padding: '24', | ||
background: 'bg1', | ||
zIndex: 'sticky', | ||
}), | ||
]) | ||
|
||
export const logoContainer = sprinkles({ | ||
color: 'text1', | ||
width: '42', | ||
height: '42', | ||
cursor: 'pointer', | ||
}) | ||
export const logoContainer = style([ | ||
{ | ||
':hover': { | ||
transform: 'rotate(5deg)', | ||
}, | ||
}, | ||
sprinkles({ | ||
color: 'text1', | ||
width: '42', | ||
height: '42', | ||
cursor: 'pointer', | ||
transitionDuration: '125', | ||
}), | ||
]) | ||
|
||
export const navLink = sprinkles({ | ||
fontWeight: 'medium', | ||
fontSize: '18', | ||
paddingX: '12', | ||
paddingY: '8', | ||
borderRadius: '10', | ||
background: { | ||
default: 'transparent', | ||
hover: 'bg2', | ||
opacity: { | ||
hover: '0.7', | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import { Link } from 'react-router-dom' | ||
import onlyonstarknet from 'src/assets/onlyonstarknet.png' | ||
import { PrimaryButton, SecondaryButton } from 'src/components/Button' | ||
import Box from 'src/theme/components/Box' | ||
import { Column, Row } from 'src/theme/components/Flex' | ||
import * as Text from 'src/theme/components/Text' | ||
|
||
import * as styles from './style.css' | ||
|
||
export default function HomePage() { | ||
return ( | ||
<Box> | ||
<Box as="span" className={styles.backgroundContainer}> | ||
<Box as="span" className={styles.background} /> | ||
</Box> | ||
|
||
<Column className={styles.titleContainer}> | ||
<Text.HeadlineLarge className={styles.title}>Unruggable Memecoin</Text.HeadlineLarge> | ||
<Box as="img" src={onlyonstarknet} className={styles.subtitle} /> | ||
</Column> | ||
|
||
<Column as="article" className={styles.firstArticle}> | ||
<Text.HeadlineMedium>The framework to build safer memecoins</Text.HeadlineMedium> | ||
<Row gap="16"> | ||
<Link to="/launch"> | ||
<PrimaryButton className={styles.firstArticleButton}>Launch</PrimaryButton> | ||
</Link> | ||
|
||
<Link to="/manage"> | ||
<SecondaryButton className={styles.firstArticleButton}>Manage</SecondaryButton> | ||
</Link> | ||
</Row> | ||
</Column> | ||
|
||
<Column as="article" className={styles.secondArticle}> | ||
<Box> | ||
<Text.Custom color="text2" marginLeft="8" fontWeight="normal" fontSize="18"> | ||
Meet Unrrugable Memecoin | ||
</Text.Custom> | ||
|
||
<Text.Body> | ||
Tired of getting rugpulled? Introducing Unruggable Memecoin, a project designed with security and | ||
transparency at its core. | ||
<br /> | ||
<br /> | ||
Our innovative contracts and safeguards ensure a fair and secure experience for all users. | ||
</Text.Body> | ||
</Box> | ||
</Column> | ||
</Box> | ||
) | ||
} |
Oops, something went wrong.