Repository navigation
Expand file tree
/
Copy pathApp.css
More file actions
276 lines (226 loc) · 5.79 KB
/
Copy pathApp.css
File metadata and controls
276 lines (226 loc) · 5.79 KB
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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
@keyframes logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
@media (prefers-reduced-motion: no-preference) {
a:nth-of-type(2) .logo {
animation: logo-spin infinite 20s linear;
}
}
@media print {
.no-print,
button {
display: none !important;
}
}
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer components {
.sidebar-icon {
@apply;
}
}
/*
Note: The styles for this gradient grid background is heavily inspired by the creator of this amazing site (https://dub.sh) – all credits go to them!
*/
.main {
width: 100vw;
min-height: 100vh;
position: fixed;
display: flex;
justify-content: center;
padding: 120px 24px 160px 24px;
pointer-events: none;
}
.main:before {
background: radial-gradient(circle, rgba(2, 0, 36, 0) 0, #fafafa 100%);
position: absolute;
content: "";
z-index: 2;
width: 100%;
height: 100%;
top: 0;
}
.dark .main:before {
background: #000;
position: absolute;
content: "";
z-index: 2;
width: 100%;
height: 100%;
top: 0;
}
.main:after {
content: "";
background-image: url("/src/assets/grid.svg");
z-index: 1;
position: absolute;
width: 100%;
height: 100%;
top: 0;
opacity: 0.4;
filter: invert(1);
}
.dark .main:after {
opacity: 0.7; /* Just an example: change the opacity in dark mode */
background-image: none;
}
.gradient {
height: fit-content;
z-index: 3;
width: 100%;
max-width: 640px;
background-image: radial-gradient(
at 27% 37%,
hsla(215, 98%, 61%, 1) 0px,
transparent 0%
),
radial-gradient(at 97% 21%, F5F6F9(125, 98%, 72%, 1) 0px, transparent 50%),
radial-gradient(at 52% 99%, hsla(354, 98%, 61%, 1) 0px, transparent 50%),
radial-gradient(at 10% 29%, hsla(256, 96%, 67%, 1) 0px, transparent 50%),
radial-gradient(at 97% 96%, F5F6F9(38, 60%, 74%, 1) 0px, transparent 50%),
radial-gradient(at 33% 50%, hsla(222, 67%, 73%, 1) 0px, transparent 50%),
radial-gradient(at 79% 53%, hsla(343, 68%, 79%, 1) 0px, transparent 50%);
position: absolute;
content: "";
width: 100%;
height: 100%;
filter: blur(100px) saturate(150%);
top: 80px;
opacity: 0.15;
}
@media screen and (max-width: 640px) {
.main {
padding: 0;
}
}
/*
Note: This is layout for the whole site.
*/
/* Layout For Whole Site */
.container {
@apply relative z-10 mx-auto flex w-full flex-col items-center;
}
/*
This is the wording logo in the nav bar
*/
.header_logo {
@apply bg-gradient-to-r from-blue-600 via-blue-700 to-blue-600 bg-clip-text text-transparent;
}
/* Using logo-like styles outside of the header */
.body_logo {
@apply bg-gradient-to-r from-blue-500 via-blue-700 to-blue-300 bg-clip-text font-quicksand font-bold text-transparent
}
/* Tailwind Styles */
/*
Font for body
*/
.font_body {
@apply font-satoshi;
}
/*
Button
*/
.btnBlue {
@apply h-12 rounded-xl border bg-blue-500 px-3 py-1.5 font-satoshi text-white hover:bg-blue-400;
}
.btnGray {
@apply h-12 rounded-xl border bg-gray-500 px-3 py-1.5 font-satoshi text-sm text-white hover:bg-blue-400;
}
.btnRed {
@apply h-12 rounded-xl border bg-red-700 px-3 py-1.5 font-satoshi text-sm text-white hover:bg-blue-400;
}
/*
The heading directly under the nav bar.
*/
.head_text {
@apply mt-16 text-center text-5xl font-extrabold leading-[1.15] text-black sm:text-6xl;
}
.desc {
@apply mt-7 px-2 text-center font-sans text-3xl font-medium text-gray-800 md:p-0 md:px-0 md:text-5xl;
}
.desc1 {
@apply mx-auto mt-5 text-center font-satoshi text-lg text-gray-800 sm:text-xl md:block;
font-size: 100%;
letter-spacing: 0.03em;
}
/*
Input field.
*/
.input {
@apply block rounded-md border-0 shadow-sm ring-1 ring-inset bg-white py-3 pl-5 pr-5 font-satoshi text-base transition duration-300 focus:border-0 focus:outline-none focus:ring-2 focus:ring-sky-500 hover:border-0 hover:ring-1 hover:ring-sky-500;
}
/*
This is for when the input field is loading
*/
.input_loading {
@apply block w-full rounded-md border border-gray-300 bg-gray-300 bg-opacity-50 py-3 pl-5 pr-5 font-satoshi text-base font-medium shadow-lg focus:border-black focus:outline-none focus:ring-0;
}
/*
Dropdown field.
*/
.dropdown {
@apply block md:w-64 font-satoshi cursor-pointer rounded-md border-0 p-3 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset sm:text-sm sm:leading-6 focus:outline-none focus:ring-2 focus:ring-sky-500 hover:border-0 hover:ring-1 hover:ring-sky-500 ;
}
.link_card {
@apply flex cursor-pointer items-center justify-between rounded-md border bg-white p-3 py-2.5 pl-5 ring-1 hover:bg-indigo-100;
}
/*
Circle background for logos
*/
.copy_btn {
@apply flex h-7 w-7 cursor-pointer items-center justify-center rounded-full bg-white/10 shadow-[inset_10px_-50px_94px_0_rgb(199,199,199,0.2)] md:mr-10;
}
/*
Tooltip. Please see Tooltip.tsx under components folder
*/
.tooltip-container {
@apply cursor-pointer;
}
.tooltip {
@apply border;
position: absolute;
/* top: calc(-100% - 50px); */
transform: translateX(-50%);
background-color: #f4f9ff;
color: #111827;
padding: 10px;
border-radius: 4px;
z-index: 1;
min-width: 200px;
max-width: 500px;
}
.material-symbols-outlined {
font-size: 18px;
}
/*
Error message. Please see ErrorMessages.tsx under components folder
*/
@keyframes ellipsis {
0%, 20% {
content: '';
}
40% {
content: '.';
}
60% {
content: '..';
}
80%, 100% {
content: '...';
}
}
.thinking {
font-size: 16px;
animation: ellipsis 1.5s infinite;
}
.thinking::after {
animation: ellipsis 2s infinite;
content: '';
font-weight: bold;
}