Skip to content

Commit c0b331f

Browse files
fix:theme updated
1 parent 323f141 commit c0b331f

File tree

1 file changed

+93
-37
lines changed

1 file changed

+93
-37
lines changed

assets/css/main.css

Lines changed: 93 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -2,37 +2,36 @@
22
--default-font: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
33
--heading-font: "Raleway", sans-serif;
44
--nav-font: "Poppins", sans-serif;
5-
}
6-
:root {
7-
--background-color:#12445c;
8-
--default-color: #fafafa;
9-
--heading-color: #ffffff;
10-
--accent-color: #18d26e;
11-
--surface-color: #1a1a1a;
12-
--contrast-color: #000000;
13-
}
14-
15-
:root {
16-
--nav-color: #fafafa;
17-
--nav-hover-color: #18d26e;
18-
--nav-mobile-background-color: #2e5466;
19-
--nav-dropdown-background-color: #1a1a1a;
20-
--nav-dropdown-color: #fafafa;
21-
--nav-dropdown-hover-color: #18d26e;
22-
}
23-
245

25-
.light-background {
26-
--background-color: #1a1a1a;
27-
--surface-color: #343434;
28-
}
29-
30-
.dark-background {
31-
--background-color: rgba(15, 15, 15, 0.975);
32-
--default-color: #ffffff;
33-
--heading-color: #ffffff;
34-
--surface-color: #292929f9;
35-
--contrast-color: #000000;
6+
--background-color: #fff;
7+
--default-color: #222;
8+
--heading-color: #000;
9+
--accent-color: #111;
10+
--surface-color: #f5f5f5;
11+
--contrast-color: #000;
12+
--nav-color: #222;
13+
--nav-hover-color: #111;
14+
--nav-mobile-background-color: #f5f5f5;
15+
--nav-dropdown-background-color: #fff;
16+
--nav-dropdown-color: #222;
17+
--nav-dropdown-hover-color: #111;
18+
}
19+
20+
@media (prefers-color-scheme: dark) {
21+
:root {
22+
--background-color: #111;
23+
--default-color: #fafafa;
24+
--heading-color: #fff;
25+
--accent-color: #fff;
26+
--surface-color: #222;
27+
--contrast-color: #fff;
28+
--nav-color: #fafafa;
29+
--nav-hover-color: #fff;
30+
--nav-mobile-background-color: #222;
31+
--nav-dropdown-background-color: #111;
32+
--nav-dropdown-color: #fafafa;
33+
--nav-dropdown-hover-color: #fff;
34+
}
3635
}
3736

3837
/* Smooth scroll */
@@ -492,19 +491,75 @@ h6 {
492491
z-index: 999999;
493492
overflow: hidden;
494493
background: var(--background-color);
494+
/* Make background more opaque for visibility */
495+
background: rgba(0,0,0,0.85);
495496
transition: all 0.6s ease-out;
497+
display: flex;
498+
align-items: center;
499+
justify-content: center;
496500
}
497501

502+
.loader-container {
503+
display: flex;
504+
flex-direction: column;
505+
align-items: center;
506+
justify-content: center;
507+
}
498508

509+
.gear-container {
510+
display: flex;
511+
gap: 20px;
512+
margin-bottom: 20px;
513+
}
499514

500-
@keyframes animate-preloader {
501-
0% {
502-
transform: rotate(0deg);
503-
}
515+
.gear-rotate {
516+
font-size: 3rem;
517+
color: #00ffae;
518+
filter: drop-shadow(0 0 10px #00ffae);
519+
animation: animate-preloader 1.2s linear infinite;
520+
}
504521

505-
100% {
506-
transform: rotate(360deg);
507-
}
522+
.gear-rotate.right {
523+
color: #18d26e;
524+
filter: drop-shadow(0 0 10px #18d26e);
525+
animation-direction: reverse;
526+
}
527+
528+
.loading-text {
529+
display: flex;
530+
gap: 2px;
531+
font-size: 2rem;
532+
font-family: 'Fira Mono', 'Courier New', monospace;
533+
color: #fff;
534+
text-shadow: 0 0 10px #00ffae, 0 0 2px #18d26e;
535+
letter-spacing: 2px;
536+
margin-bottom: 10px;
537+
font-weight: bold;
538+
}
539+
540+
.loading-bar {
541+
width: 180px;
542+
height: 8px;
543+
background: rgba(255,255,255,0.15);
544+
border-radius: 4px;
545+
overflow: hidden;
546+
margin-top: 8px;
547+
box-shadow: 0 0 8px #00ffae;
548+
}
549+
550+
.loading-bar .progress {
551+
width: 0;
552+
height: 100%;
553+
background: linear-gradient(90deg, #00ffae 0%, #18d26e 100%);
554+
animation: loading-bar-progress 1.8s linear infinite;
555+
border-radius: 4px;
556+
box-shadow: 0 0 8px #00ffae;
557+
}
558+
559+
@keyframes loading-bar-progress {
560+
0% { width: 0; }
561+
60% { width: 100%; }
562+
100% { width: 0; }
508563
}
509564

510565
/*--------------------------------------------------------------
@@ -664,6 +719,7 @@ section,
664719
display: flex;
665720
align-items: center;
666721
justify-content: center;
722+
background: var(--background-color);
667723
}
668724

669725
.hero img {

0 commit comments

Comments
 (0)