diff --git a/app/index.html b/app/index.html index b88a53d..7fb1d3f 100644 --- a/app/index.html +++ b/app/index.html @@ -17,6 +17,7 @@ justify-content: center; align-items: center; height: 90vh; + transition: background-color 0.3s, color 0.3s; } h1 { @@ -59,6 +60,49 @@ background-color: #4e0875; } + /* Toggle switch styles */ + .dark-mode-toggle { + position: absolute; + top: 10px; + right: 10px; + } + + .dark-mode-toggle input { + display: none; + } + + .dark-mode-toggle label { + cursor: pointer; + text-indent: -9999px; + width: 52px; + height: 27px; + background: grey; + display: block; + border-radius: 100px; + position: relative; + } + + .dark-mode-toggle label:after { + content: ''; + position: absolute; + top: 2px; + left: 2px; + width: 23px; + height: 23px; + background: #fff; + border-radius: 90px; + transition: 0.3s; + } + + .dark-mode-toggle input:checked+label { + background: #6a0dad; + } + + .dark-mode-toggle input:checked+label:after { + left: calc(100% - 2px); + transform: translateX(-100%); + } + /* Responsive adjustments */ @media only screen and (max-width: 600px) { form { @@ -69,16 +113,64 @@ font-size: 1.2rem; } } + + /* Dark mode styles */ + body.dark-mode { + background-color: #333; + color: #FFF; + } + + body.dark-mode h1 { + color: #FFF; + } + + body.dark-mode input[type=text] { + background-color: #555; + border: 1px solid #777; + color: #FFF; + } + + body.dark-mode input[type="submit"] { + background-color: #9b30ff; + } + + body.dark-mode input[type="submit"]:hover { + background-color: #7a1bb5; + } +
+ + +

Enter Website Link

+ + \ No newline at end of file