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

Simplify background code #32

Merged
merged 3 commits into from
Dec 13, 2023
Merged
Show file tree
Hide file tree
Changes from 2 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
2 changes: 1 addition & 1 deletion frontend/src/components/NavBar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const links = [
path: '/launch',
},
{
name: 'Manager',
name: 'Manage',
AbdelStark marked this conversation as resolved.
Show resolved Hide resolved
path: '/manage',
},
]
Expand Down
5 changes: 1 addition & 4 deletions frontend/src/pages/Home/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@ 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>

<Box as="span" className={`${styles.backgroundContainer} ${styles.background}`} />
Megumiiiiii marked this conversation as resolved.
Show resolved Hide resolved
<Column className={styles.titleContainer}>
<Text.HeadlineLarge className={styles.title}>Unruggable Memecoin</Text.HeadlineLarge>
<Box as="img" src={onlyonstarknet} className={styles.subtitle} />
Expand Down
1 change: 1 addition & 0 deletions frontend/src/pages/Launch/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export default function LaunchPage() {

return (
<Row className={styles.wrapper}>
<Box as="span" className={`${styles.backgroundContainer} ${styles.background}`} />
Megumiiiiii marked this conversation as resolved.
Show resolved Hide resolved
<Box className={styles.container}>
<Box as="form" onSubmit={handleSubmit(deployToken)}>
<Column gap="20">
Expand Down
37 changes: 36 additions & 1 deletion frontend/src/pages/Launch/style.css.ts
AbdelStark marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -1,5 +1,40 @@
import { style } from '@vanilla-extract/css'
import { sprinkles } from 'src/theme/css/sprinkles.css'
import { sprinkles, vars } from 'src/theme/css/sprinkles.css'
import { transparentize } from 'polished'

export const backgroundContainer = style([
{
zIndex: '-99',
position: 'absolute',
top: '0',
right: '0',
bottom: '0',
left: '0',
height: '100vh',
maxHeight: '1000px',
},
])

export const background = style([
{
backgroundImage: `
linear-gradient(to bottom, ${transparentize(0.3, '#000000')}, ${vars.color.bg1}),
url("src/assets/background.png")
`,
backgroundSize: 'cover',
backgroundPosition: 'center',
backgroundRepeat: 'no-repeat',
},
sprinkles({
position: 'absolute',
top: '0',
right: '0',
bottom: '0',
left: '0',
width: 'full',
height: 'full',
}),
])

export const wrapper = style([
{
Expand Down
Loading