From afb1f375a864bee9c301815948fac2d88aab42d2 Mon Sep 17 00:00:00 2001 From: Rainyy21 Date: Tue, 9 Sep 2025 12:39:41 -0400 Subject: [PATCH] added color and darkmode button. need to finish the darkmode --- css/style.css | 40 +++++++++++++++++++ ...p_E3E3E3_FILL1_wght400_GRAD0_opsz40(1).svg | 1 + ...40dp_E3E3E3_FILL1_wght400_GRAD0_opsz40.svg | 1 + index.html | 39 +++++++++++++++++- 4 files changed, 79 insertions(+), 2 deletions(-) create mode 100644 image/dark_mode_40dp_E3E3E3_FILL1_wght400_GRAD0_opsz40(1).svg create mode 100644 image/light_mode_40dp_E3E3E3_FILL1_wght400_GRAD0_opsz40.svg diff --git a/css/style.css b/css/style.css index e69de29..e512c5f 100644 --- a/css/style.css +++ b/css/style.css @@ -0,0 +1,40 @@ +/* color for normal and darkmode */ +:root{ + --primary-background-color: #ECEEDF; + --ground-footer-color: #CFAB8D; + --second-footer-color: #D9C4B0; + --secondary-background-color: #BBDCE5; + +} + +.dark{ + --primary-background-color: #78B9B5; + --ground-footer-color: #320A6B; + --second-footer-color: #065084; + --secondary-background-color: #0F828C; +} + +/* the darkmode button */ +#theme_switch{ + padding: 0; + background: none; + display: flex; + justify-content: center; + align-items: center; + border-style: none; + cursor: pointer; +} +#theme_switch svg{ + width: 3.5rem; + height: auto; + fill:var(--secondary-background-color); + +} + +#theme_switch svg:last-child{ + display: none; +} + +.dark #theme_switch svg:first-child{ + display: none; +} \ No newline at end of file diff --git a/image/dark_mode_40dp_E3E3E3_FILL1_wght400_GRAD0_opsz40(1).svg b/image/dark_mode_40dp_E3E3E3_FILL1_wght400_GRAD0_opsz40(1).svg new file mode 100644 index 0000000..81a7703 --- /dev/null +++ b/image/dark_mode_40dp_E3E3E3_FILL1_wght400_GRAD0_opsz40(1).svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/image/light_mode_40dp_E3E3E3_FILL1_wght400_GRAD0_opsz40.svg b/image/light_mode_40dp_E3E3E3_FILL1_wght400_GRAD0_opsz40.svg new file mode 100644 index 0000000..070b2aa --- /dev/null +++ b/image/light_mode_40dp_E3E3E3_FILL1_wght400_GRAD0_opsz40.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/index.html b/index.html index 13db1a6..cb05175 100644 --- a/index.html +++ b/index.html @@ -7,12 +7,47 @@ Rain website + + + + - - +
+ +
+ +
+ +
+ +
+ + +
+ +
+
+ +
+ + +
+
+ + + +