forked from The-MindSpace/MindSpace-Web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dashboard.css
358 lines (310 loc) · 6.41 KB
/
dashboard.css
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
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
* {
margin: 0;
padding: 0;
box-sizing: border-box;
scroll-behavior: smooth;
font-family: 'Inter', sans-serif;
}
body {
width: 100vw;
overflow-x: hidden;
overflow-y: scroll;
scroll-behavior: smooth;
}
body::-webkit-scrollbar {
display: none;
}
nav {
position: sticky;
z-index: 20;
background-color: #72D34F;
color: #fff;
height: 12vh;
font-size: 2.5vh;
font-weight: 900;
padding: 2rem;
width: 100%;
top: 0;
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border-bottom-left-radius: 20px;
border-bottom-right-radius: 20px;
}
ul {
display: flex;
align-items: center;
list-style: none;
width: 100%;
justify-content: flex-start;
}
li {
height: 10vh;
transform: translateX(100px);
padding-right: 8vw;
}
/* select all li except first one */
li:not(:first-child) {
transform: translateX(260px);
}
.logo {
width: 40vh;
position: absolute;
left: 100%;
transform: translate(-67%, -16.7vh);
}
.foot {
bottom: 0;
width: 100%;
}
main {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
/* height: 100vh; */
width: 100%;
/* background-color: #72D34F; */
margin-top: 5vh;
margin-bottom: 5vh;
}
.heading {
font-size: 5vh;
color: #72D34F;
cursor: default;
animation: fadeIn 1s ease-in-out;
}
.grid {
display: grid;
grid-template-columns: repeat(8, 1fr);
grid-gap: 2rem;
padding : 4rem;
}
.grid:nth-of-type(2) {
grid-template-columns: repeat(4, 1fr);
}
.grid div {
width: calc(20vh / 6 + 50vw / 6);
height: calc(20vh / 6 + 50vw / 6);
box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
transition: ease 0.4s;
outline: 3px solid #72D34F;
outline-offset: 3px;
border-radius: 1000px;
color: #72D34F;
font-size: 2vh;
font-weight: 700;
display: grid;
place-items: center;
}
.grid div:hover {
color: white;
cursor: pointer;
font-size: larger;
outline-offset: 5px;
transition: linear 0.2s;
background-color: #72D34F;
outline: 5px solid #72D34F;
}
.grid div:not(hover), .grid2 div:not(hover) {
background-color: white;
transition: linear background-color 2.5s;
}
.grid div::selection, .grid2 div::selection {
background-color: black;
}
#bookimg {
height: 40vh;
}
.grid2 {
display: grid;
grid-gap: 2rem;
padding: 4rem;
align-items: center;
grid-template-columns: repeat(4, 1fr);
}
.grid2 div {
display: grid;
color: #72D34F;
font-weight: bolder;
outline-offset: 3px;
border-radius: 10px;
place-items: center;
align-items: center;
transition: ease 0.4s;
outline: 3px solid #72D34F;
box-shadow: rgba(0, 0, 0, 0.3);
width: calc(20vh / 4 + 50vw / 4);
height: calc(20vh / 3 + 50vw / 3);
border: 2px solid rgba(255, 255, 255, 0.3);
background-color: rgba(255, 255, 255, 0.2);
}
.grid2 div:hover{
color: white;
cursor: pointer;
font-size: larger;
outline-offset: 5px;
transition: linear 0.2s;
outline: 5px solid #72D34F;
}
.left{
animation: slideIn 1s ease-in-out;
}
.right{
animation: slideOut 1s ease-in-out;
}
nav li a{
text-decoration: none;
color: white;
cursor: pointer;
transition: ease 1s;
}
nav li a:hover{
text-shadow: 1px 1px black;
font-size: 2.5vh;
}
.foot {
padding: 35px;
display: flex;
background: #72D34F;
border-top-left-radius: 20px;
border-top-right-radius: 20px;
}
.col1 {
flex-grow: 1;
padding: 0 20px;
color: white;
width: 100%;
box-sizing: border-box;
}
.col2 {
display: flex;
width: 80%;
}
.about-section, .developer-section {
flex-grow: 1;
padding: 0 20px;
color: white;
}
.about-section p {
margin-top: 10px;
font-weight: 500;
}
.foot-names {
margin-top: 20px;
display: flex;
justify-content: center;
}
.foot-names li {
width: 100%;
height: 275px;
border-radius: 10px;
margin: 0 10px;
transition: box-shadow 0.3s ease;
}
.foot-names img {
width: 200px; /* Set the desired width */
height: 200px; /* Set the desired height */
object-fit: cover;
border-radius: 10px; /* Add border-radius for a consistent look */
}
.foot-names h3 {
position: relative;
top: -50px;
text-align: center;
}
.foot-names a {
display: block;
color: white;
text-decoration: none;
}
h1 {
transform: translateX(60%);
}
#scrollup{
display: none;
position: fixed;
bottom: 20px;
right: 30px;
z-index: 99;
border: none;
outline: none;
background-color: greenyellow;
color: white;
cursor: pointer;
padding: 7px 10px 7px 10px;
border-radius: 50%;
font-size: 18px;
}
.foot-names{
margin-bottom: 10px;
}
/* Key Frames */
@media screen and (max-width: 768px) {
.grid {
grid-template-columns: repeat(4, 1fr);
}
.grid:nth-of-type(2) {
grid-template-columns: repeat(2, 1fr);
}
.grid div {
width: calc(20vh / 6 + 50vw / 6);
height: calc(20vh / 6 + 50vw / 6);
}
.grid div:hover {
background-color: #72D34F;
transition: linear 0.1s;
}
.grid div:not(hover) {
background-color: white;
transition: linear background-color 2.5s;
}
.grid div::selection {
background-color: black;
}
.logo {
width: 40vh;
position: absolute;
left: 100%;
transform: translate(-40%, -16.7vh);
}
li:not(:first-child) {
display: none;
}
}
/* back to top button styles */
.back-to-top {
position: fixed;
bottom: 20px;
right: 20px;
background-color: #213c15;
color: white;
border: none;
border-radius: 50%;
padding: 10px;
cursor: pointer;
font-size: 24px;
display: none; /* hide by default */
transition: background-color 0.3s, transform 0.3s;
z-index: 999;
animation: fadeInUp 0.5s ease; /* Entrance animation */
}
.back-to-top:hover {
background-color: #3a8f0f;
transform: scale(1.1); /* Add a slight scale effect on hover */
}
/* show the button when user scrolls down */
body.scroll-down .back-to-top {
display: block;
}
/* Entrance animation keyframes */
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}