From dc08b23ce3c15443d26674244def41380547311f Mon Sep 17 00:00:00 2001 From: AftabMankapure Date: Tue, 13 Feb 2024 20:02:24 +0530 Subject: [PATCH] added dark mode --- css/mode.css | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++++ index.html | 49 ++++++++++++++++++++++++++++++++++++------------ 2 files changed, 90 insertions(+), 12 deletions(-) create mode 100644 css/mode.css diff --git a/css/mode.css b/css/mode.css new file mode 100644 index 0000000..b2077c2 --- /dev/null +++ b/css/mode.css @@ -0,0 +1,53 @@ +:root{ + --title-color: black; + +} +.title{ + color: var(--title-color); +} +.dark-class { + color: white; + background-color: rgb(12, 10, 10); + --title-color: white; + } + + .toggleButton { + width: 5rem; + height: 2rem; + position: relative; + display: inline-block; + } + .toggleButton input { + opacity: 0; + } + .roundButton { + background-color: black; + top: 0; + left: 0; + position: absolute; + right: 0; + bottom: 0; + cursor: pointer; + } + .roundButton:before { + left: 0; + bottom: 0; + position: absolute; + content: ""; + background-color: grey; + transition: 1s; + height: 2rem; + width: 2rem; + } + input:checked+.roundButton { + background-color: white; + } + input:checked+.roundButton:before { + transform: translateX(3rem); + } + .roundButton.circle { + border-radius: 2rem; + } + .roundButton.circle:before { + border-radius: 50%; + } \ No newline at end of file diff --git a/index.html b/index.html index 0ff1d84..817dd15 100644 --- a/index.html +++ b/index.html @@ -30,7 +30,11 @@ + + @@ -108,6 +117,12 @@
  • Blogs
  • +
  • + +
  • @@ -210,7 +225,7 @@

    -
    +
    @@ -248,13 +263,13 @@
    Beach Holidays
    - Other ToursOther Tours
    -
    +
    @@ -262,7 +277,7 @@
    Beach Holidays
    -

    Discover New Horizons

    +

    Discover New Horizons

    @@ -285,7 +300,7 @@

    Discover New Horizons

    -

    +

    Welcome to FirstSpot, your premier travel companion dedicated to crafting unforgettable journeys. At FirstSpot, we are driven by the passion for transforming each travel experience into a seamless blend of discovery and joy. Our commitment lies in being your comprehensive travel planning hub, offering a range of services that cater to every facet of your travel needs.

    @@ -301,7 +316,7 @@

    Discover New Horizons

    -

    +

    Choose FirstSpot for an unparalleled travel experience. Our innovative matching system ensures personalized tours tailored to your preferences. With a diverse selection of handpicked destinations, highly qualified tour managers, and 24/7 support, we guarantee a seamless and enjoyable journey. Enjoy premium accommodations and our commitment to the best price, promising value for your adventure. Trust FirstSpot as your go-to travel companion for a memorable and stress-free exploration of the world.

    @@ -317,7 +332,7 @@

    Discover New Horizons

    -

    +

    At FirstSpot, our mission is to be your premier travel facilitator, providing you with curated journeys that align seamlessly with your desires. From meticulously handpicked destinations to expertly crafted itineraries, we're dedicated to delivering more than just a service; we're your gateway to hassle-free, tailored adventures. FirstSpot is committed to providing a comprehensive suite of travel solutions, making every trip a fulfilling and enjoyable exploration. Join us as we pave the way for unforgettable travel experiences tailored to your needs.

    @@ -342,7 +357,7 @@

    Discover New Horizons

    -

    Our Services

    +

    Our Services

    @@ -454,9 +469,9 @@
    -
    +
    -

    +

    Hot Tours

    @@ -557,7 +572,7 @@
    -

    +

    Our Team @@ -620,7 +635,7 @@

    @@ -849,6 +864,16 @@
    Quick links
    +