-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathindex.js
179 lines (175 loc) · 4.89 KB
/
index.js
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
import React from "react";
import App from "./App";
import * as serviceWorker from "./serviceWorker";
import { ChakraProvider, CSSReset, extendTheme } from "@chakra-ui/react";
import * as ReactDOMClient from "react-dom/client";
const container = document.getElementById("root");
// Create a root
const root = ReactDOMClient.createRoot(container);
const theme = extendTheme({
styles: {
global: {
html: {
bg: "linear-gradient(0deg, rgba(41,2,80,1) 0%, rgba(25,0,50,1) 40%)",
scrollBehavior: "smooth",
},
body: {
bg: "linear-gradient(0deg, rgba(41,2,80,1) 0%, rgba(25,0,50,1) 40%)",
color: "#ffeded",
fontFamily: '"Exo 2", sans-serif',
fontSize: "16px",
fontWeight: 300,
p: 0,
m: '0 auto',
minH: "100vh",
width: '100%'
// overflowY: "auto",
},
// "body *": {
// outline: "1px solid red",
// },
// '#root': {
// width: '100%',
// },
a: {
color: "#FF61E6",
textDecoration: "none",
transition: "color 0.2s ease",
_hover: {
color: "#76EBF2",
textDecoration: "none",
},
"&.chakra-link": {
color: "#FF61E6",
_hover: {
color: "#76EBF2",
textDecoration: "none",
},
},
},
h1: {
color: "#fff",
fontSize: "4vmax",
fontWeight: 700,
"& span": {
color: "#fff",
fontSize: "4vmax",
fontWeight: 700,
},
},
h2: {
color: "#fff",
fontSize: "4vmax",
fontweight: 500,
textShadow: "0 0 10px rgba(0, 0, 0, 0.6)",
},
h3: {
fontSize: { base: "4vmin", md: "1.5vmax" },
fontWeight: 500,
mt: {base: 2, md: 5},
"& + p": {
fontSize: { base: "2.8vmin", md: "1vmax" },
lineHeight: { base: "1.2", md: "inherit" },
fontWeight: 500,
mt: 0,
mb: 1,
},
},
h4: {
fontSize: "1vmax",
fontWeight: 500,
},
p: {
fontSize: { base: "2.6vmin", md: ".9vmax" },
textShadow: "0 0 5px rgba(0, 0, 0, 0.6)",
},
section: {
position: "relative",
display: 'flex',
// display: 'none',
alignItems: "center",
height: '100vh',
w: '100vw',
m: 0,
py: 0,
px: {base: 4, lg: '10%'},
zIndex: 2000,
},
".__content__body": {
"& > p:first-of-type": {
fontSize: { base: "2.6vmin", md: "1vmax" },
fontWeight: 500,
},
"&--no-firstof": {
p: {
fontSize: { base: "2.6vmin", md: "0.9vmax" },
fontWeight: 500,
"& + p": {
fontWeight: 300,
},
},
},
},
// Gradients
".gradient": {
display: "inline-block",
background: "linear-gradient(90deg, #FF61E6 -29.22%, #7C56FF 107.53%)",
backgroundClip: "text",
// WebkitTextFillColor: "transparent",
// textFillColor: "transparent",
// filter: "drop-shadow(0 0 5px rgba(0,0,0,0.6))",
},
".gradient2": {
display: "inline-block",
background:
"linear-gradient(90.24deg, #79F8FB 0.3%, #9032E6 55.76%, #E839B7 106.78%)",
backgroundPosition: "center",
backgroundSize: "100%",
backgroundClip: "text",
textFillColor: "transparent",
WebkitTextFillColor: "transparent",
filter: "drop-shadow(0 0 5px rgba(0,0,0,0.6))",
},
".gradient-cone": {
display: "inline-block",
background:
"conic-gradient(from 92.2deg at 60.45% 74.83%, #8EBBFF 0deg, #DE3FFF 88.12deg, #79F8FB 105deg, #7C56FF 165deg, #FF61E6 251.25deg, #927CFF 286.87deg, #76EBF2 326.25deg, #8EBBFF 360deg)",
backgroundPosition: "-254%",
backgroundSize: "100%",
backgroundClip: "text",
textFillColor: "transparent",
WebkitTextFillColor: "transparent",
transition: "background 0.3s ease",
filter: "drop-shadow(0 0 5px rgba(0,0,0,0.6))",
},
".highlight": {},
".fest-dates": {
d: "inline-flex",
width: "100%",
color: "#FF61E6",
fontSize: { base: "2.2vmin", md: "0.7vmax" },
fontWeight: 700,
justifyContent: "right",
pr: 0.5,
transform: {
base: "translateY(7px)",
lg: "translateY(9px)",
"2xl": "translateY(15px)",
},
zIndex: 2001,
},
},
},
});
root.render(
<>
<CSSReset />
<ChakraProvider theme={theme}>
<App />
</ChakraProvider>
</>
);
// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: https://bit.ly/CRA-PWA
serviceWorker.unregister();