diff --git a/Clock/index.css b/Clock/index.css index 81c1a15..29530a7 100644 --- a/Clock/index.css +++ b/Clock/index.css @@ -1,37 +1,104 @@ -#clockContainer{ - position: relative; - margin: auto; - height: 40vw; - width: 40vw; - background: url(clock.png) no-repeat; - background-size: 100%; -} - -#hour, #minute, #second{ - position: absolute; - background: black; - border-radius: 10px; - transform-origin: bottom; -} -#hour{ - width: 1.8%; - height: 25%; - top: 25%; - left: 48.85%; - opacity: 0.8; -} -#minute{ - width: 1.6%; - height: 30%; - top: 19%; - left: 48.9%; - opacity: 0.8; -} -#second{ - width: 1%; - height: 40%; - top: 9%; - left: 49.25%; - opacity: 0.8; - -} \ No newline at end of file +/* Basic layout */ +body { + margin: 0; + height: 100vh; + background: linear-gradient(135deg, #141e30, #243b55); + display: flex; + justify-content: center; + align-items: center; + font-family: "Poppins", sans-serif; + overflow: hidden; +} + +/* Title */ +.title { + color: #ffffff; + font-size: 2rem; + letter-spacing: 2px; + margin-bottom: 1rem; + text-align: center; +} + +/* Clock container */ +.wrapper { + text-align: center; + backdrop-filter: blur(20px); + background: rgba(255, 255, 255, 0.05); + padding: 30px 50px; + border-radius: 20px; + box-shadow: 0 0 25px rgba(0, 0, 0, 0.4); +} + +/* Analog clock design */ +#clockContainer { + position: relative; + height: 280px; + width: 280px; + margin: auto; + border: 10px solid rgba(255, 255, 255, 0.2); + border-radius: 50%; + background: radial-gradient(circle, #1f2933, #111); + box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.7), 0 0 10px rgba(255, 255, 255, 0.1); +} + +/* Clock hands */ +#hour, #minute, #second { + position: absolute; + transform-origin: bottom center; + border-radius: 8px; +} + +#hour { + width: 6px; + height: 70px; + background: #e0e0e0; + top: 65px; + left: calc(50% - 3px); + box-shadow: 0 0 6px rgba(255, 255, 255, 0.6); +} + +#minute { + width: 4px; + height: 95px; + background: #b0b0b0; + top: 40px; + left: calc(50% - 2px); + box-shadow: 0 0 8px rgba(255, 255, 255, 0.6); +} + +#second { + width: 2px; + height: 110px; + background: #ff5252; + top: 25px; + left: calc(50% - 1px); + box-shadow: 0 0 10px rgba(255, 82, 82, 0.8); + transition: transform 0.05s linear; +} + +/* Center dot */ +#centerDot { + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + width: 14px; + height: 14px; + background: #ff5252; + border-radius: 50%; + box-shadow: 0 0 10px rgba(255, 82, 82, 0.8); +} + +/* Digital clock */ +#digitalClock { + margin-top: 1.5rem; + font-size: 2rem; + color: #ffffff; + background: rgba(255, 255, 255, 0.1); + padding: 10px 20px; + border-radius: 12px; + display: inline-block; + box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5); + letter-spacing: 2px; + text-shadow: 0 0 8px rgba(255, 255, 255, 0.4); +} diff --git a/Clock/index.html b/Clock/index.html index 13664bd..e1b0fe8 100644 --- a/Clock/index.html +++ b/Clock/index.html @@ -1,17 +1,22 @@
- - -