Skip to content
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

fixed deployment #49

Merged
merged 1 commit into from
Dec 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion frontend/.env.development
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
REACT_APP_INFURA_KEY=42
REACT_APP_TOKEN_CLASS_HASH=0x0278da3cbbc2105fc3ac1206a630357c5a4666020f15fed02c892ac5d856d8ef
1 change: 1 addition & 0 deletions frontend/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build
7 changes: 3 additions & 4 deletions frontend/src/constants/contracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { constants } from 'starknet'

export const UDC = constants.UDC

export const TOKEN_CLASS_HASH = process.env.REACT_APP_TOKEN_CLASS_HASH ?? ''
if (TOKEN_CLASS_HASH === '') {
throw new Error(`REACT_APP_TOKEN_CLASS_HASH must be a defined environment variable`)
}
// Class hashes

export const TOKEN_CLASS_HASH = '0x0278da3cbbc2105fc3ac1206a630357c5a4666020f15fed02c892ac5d856d8ef'
5 changes: 3 additions & 2 deletions frontend/src/pages/Home/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ export default function HomePage() {
</Column>

<Column as="article" className={styles.firstArticle}>
<p>
<Text.Custom className={styles.firstArticleText}>
Tired of getting rugpulled? Introducing Unruggable Meme, a memecoin standard and deployment tool designed to
ensure a maximum safety for memecoin traders.
</p>
</Text.Custom>

<Row gap="16" className={styles.buttonContainer}>
<Link to="/launch">
<PrimaryButton className={styles.firstArticleButton}>Launch</PrimaryButton>
Expand Down
18 changes: 13 additions & 5 deletions frontend/src/pages/Home/style.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,31 +65,39 @@ export const title = style([
sprinkles({
marginTop: '42',
marginBottom: '0',
fontSize: { md: '48', lg: '96' },
fontSize: { sm: '36', md: '64', lg: '72', xl: '96' },
}),
])

export const subtitle = style([
sprinkles({
maxHeight: { sm: '18', md: '32', lg: '32' },
maxHeight: { sm: '20', md: '32', lg: '42' },
marginX: 'auto',
}),
])

export const firstArticle = style([
sprinkles({
marginTop: '42',
marginTop: '128',
gap: '24',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
fontWeight: 'normal',
paddingX: { sm: '32', md: '64' },
fontSize: { sm: '18', md: '24', lg: '24' },
color: 'white',
}),
])

export const firstArticleText = style([
{
maxWidth: '1200px',
},
sprinkles({
fontSize: { sm: '18', md: '24', lg: '24' },
fontWeight: 'normal',
}),
])

export const firstArticleButton = style([
sprinkles({
width: '180',
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/Launch/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ export default function LaunchPage() {
</Column>
) : (
<PrimaryButton disabled={!account || isPending} className={styles.deployButton}>
{account ? (isPending ? 'WAITING FOR SIGNATURE' : 'DEPLOY') : 'CONNECT WALLET'}
{account ? (isPending ? 'Waiting for signature' : 'Deploy') : 'Connect wallet'}
</PrimaryButton>
)}
</Column>
Expand Down
1 change: 1 addition & 0 deletions frontend/src/theme/css/sprinkles.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ export const vars = createGlobalTheme(':root', {
'42': '42px',
'48': '48px',
'64': '64px',
'72': '72px',
'96': '96px',
},
lineHeight: {
Expand Down
Loading