From 6e086d769dcb732a82e4c17220aca55ad3541fb6 Mon Sep 17 00:00:00 2001 From: mjgroupofficial Date: Fri, 25 Apr 2025 22:32:08 +0530 Subject: [PATCH 1/2] try to fix width of contact form --- project-1_landing-page/css/index.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/project-1_landing-page/css/index.css b/project-1_landing-page/css/index.css index 0c6ec73..35c7705 100644 --- a/project-1_landing-page/css/index.css +++ b/project-1_landing-page/css/index.css @@ -249,7 +249,7 @@ header .navbar .menu-items li a { } #contact { - margin: auto; + margin:auto; width: 100%; height: max-content; display: flex; @@ -453,7 +453,7 @@ footer .socials li .bi-linkedin { padding: 10px; } #contact form { - width: 350px; + width: 320px; } footer { padding: 0; From 82fcee457e35b80f827812c19322b9da5e9a2400 Mon Sep 17 00:00:00 2001 From: mjgroupofficial Date: Fri, 2 May 2025 11:39:27 +0530 Subject: [PATCH 2/2] add project 21 --- README.md | 5 ++ project-21_digital_clock/css/styles.css | 84 +++++++++++++++++++++++++ project-21_digital_clock/index.html | 24 +++++++ project-21_digital_clock/js/script.js | 26 ++++++++ 4 files changed, 139 insertions(+) create mode 100644 project-21_digital_clock/css/styles.css create mode 100644 project-21_digital_clock/index.html create mode 100644 project-21_digital_clock/js/script.js diff --git a/README.md b/README.md index 6dc78c7..e11b0e4 100644 --- a/README.md +++ b/README.md @@ -113,6 +113,11 @@ This repository contains a collection of frontend projects.Each project is built Bubble Game Click Here + + 21 + digital clock + Click Here + diff --git a/project-21_digital_clock/css/styles.css b/project-21_digital_clock/css/styles.css new file mode 100644 index 0000000..9c8f280 --- /dev/null +++ b/project-21_digital_clock/css/styles.css @@ -0,0 +1,84 @@ +html,body{ + margin: 0; + padding: 0; + box-sizing: border-box; +} +.hero{ + margin: 0; + padding: 0; + width:100%; + min-height:100vh; + background: linear-gradient(45deg,#08001f,#30197d); + position: relative; + color: #fff; +} +.container{ + width:200px; + height: 80px; + position: absolute; + top:50%; + left:50%; + transform: translate(-50%,-50%); +} +.clock{ + width:100%; + height: 100%; + background: rgba(135,0,245,0.11); + border-radius: 10px; + display: flex; + align-items: center; + justify-content: center; + backdrop-filter: blur(15px); +} +.container::before{ + content:""; + width:90px; + height: 90px; + background: #f0f0f0; + border-radius: 5px; + position: absolute; + top:-50px; + left:-50px; + z-index:-1; + /* box-shadow: 5px 5px 10px rgb(255,255,255,0.5); */ +} +.container::after{ + content:""; + width:90px; + height: 90px; + background: #0f0f0f; + border-radius: 50%; + position: absolute; + right:-30px; + bottom:-50px; + z-index:-1; + /* box-shadow: 5px 5px 10px rgba(0,0,0,0.5); */ +} +.clock span{ + font-size: 35px; + width: 35px; + display: inline-block; + text-align: center; + position: relative; +} +.clock span::after{ + font-size: 6px; + position: absolute; + bottom: -5px; + left: 50%; + transform: translateX(-50%); +} +.clock #hours::after{ + content:"HOUR"; +} +#minutes::after{ + content: "MINUTE"; +} +#seconds::after{ + content: "SECOND"; +} +@media (min-width:1068px){ + .hero{ + transform: scale(1.3); + } +} \ No newline at end of file diff --git a/project-21_digital_clock/index.html b/project-21_digital_clock/index.html new file mode 100644 index 0000000..298b486 --- /dev/null +++ b/project-21_digital_clock/index.html @@ -0,0 +1,24 @@ + + + + + + + Document + + + +
+
+
+ + : + + : + +
+
+
+ + + diff --git a/project-21_digital_clock/js/script.js b/project-21_digital_clock/js/script.js new file mode 100644 index 0000000..9fb9d4e --- /dev/null +++ b/project-21_digital_clock/js/script.js @@ -0,0 +1,26 @@ +const hour = document.querySelector("#hours") +const minute = document.querySelector("#minutes") +const second = document.querySelector("#seconds") +function handelar() { + const currentTime = new Date(); + const hrs = currentTime.getHours(); + const mins = currentTime.getMinutes(); + const secs = currentTime.getSeconds(); + if(hrs < 10){ + hour.innerHTML = "0" + hrs; + }else{ + hour.innerHTML = "" + hrs; + } + if(mins < 10){ + minute.innerHTML = "0" + mins; + }else{ + minute.innerHTML = mins; + } + if(secs < 10){ + second.innerHTML = "0" + secs; + }else{ + second.innerHTML = secs; + } +} +setTimeout(handelar,1); +setInterval(handelar, 1000); \ No newline at end of file