-
Notifications
You must be signed in to change notification settings - Fork 4
/
HeroSection.tsx
112 lines (107 loc) · 2.83 KB
/
HeroSection.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
import Link from 'next/link'
import { Button, Flex, Grid, Text } from './primitives'
import { FC } from 'react'
import { useTheme } from 'next-themes'
interface IProp {
hideLink?: boolean
}
const HeroSection: FC<IProp> = ({ hideLink }) => {
const { theme } = useTheme()
return (
<Flex
as="section"
css={{
width: '100%',
backgroundPosition: 'center center',
backgroundImage: `linear-gradient(109.6deg, rgb(0, 0, 0) 11.2%, $primary13 91.1%), url('/images/heroSectionBanner.png')`,
'@xs': {
gridTemplateColumns: 'unset',
padding: '64px 24px',
},
'@lg': {
gridTemplateColumns: 'repeat(2, 1fr)',
padding: '100px 64px',
},
}}
>
<Grid
css={{
gap: 32,
'@xs': {
flex: 1,
},
'@lg': {
flex: 0.5,
},
}}
>
<Text
style={{
'@initial': 'h2',
'@lg': 'h1',
}}
as="h1"
css={{ color: '$whiteA12', lineHeight: 1.2 }}
>
Let the Quest begin!
</Text>
<Text
style="subtitle1"
css={{
lineHeight: 1.5,
color: '$whiteA12',
width: '100%',
'@lg': { width: '50%' },
}}
>
{`Explore, Trade and Create NFTs on the Marketplace Built for L2`}
</Text>
{hideLink ?? (
<Flex css={{ gap: 10 }}>
<Link href="/portfolio" passHref legacyBehavior>
<Button
as="a"
color={theme === 'light' ? 'primary' : 'ghost'}
corners="pill"
size="large"
css={{
width: 100,
borderRadius: '$lg',
justifyContent: 'center',
border: '2px solid #6BE481',
'&:hover': {
background: '#6BE481',
color: 'black',
},
}}
>
Sell
</Button>
</Link>
<Link href="/explore" passHref legacyBehavior>
<Button
as="a"
color={theme === 'light' ? 'primary' : 'ghost'}
corners="pill"
size="large"
css={{
width: 100,
borderRadius: '$lg',
border: '2px solid #6BE481',
justifyContent: 'center',
'&:hover': {
background: '#6BE481',
color: 'black',
},
}}
>
Explore
</Button>
</Link>
</Flex>
)}
</Grid>
</Flex>
)
}
export default HeroSection