|
7 | 7 | <title>Open Source | The Cawnpore</title>
|
8 | 8 | <link rel="icon" href="assets/favicon.ico" type="image/x-icon">
|
9 | 9 | <link rel="stylesheet" href="style.css" />
|
| 10 | + <link rel="stylesheet" href="open-source.css"> |
10 | 11 | <link rel="preconnect" href="https://fonts.googleapis.com" />
|
11 | 12 | <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
12 | 13 | <link href="https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@1,700&display=swap" rel="stylesheet" />
|
@@ -140,6 +141,56 @@ <h2 id="namaste">Namaste Contributors </h2>
|
140 | 141 | </section>
|
141 | 142 |
|
142 | 143 |
|
| 144 | + <div class="container"> |
| 145 | + <div class="form"> |
| 146 | + <div class="contact-info"> |
| 147 | + <h3 class="title">Let's get in touch</h3> |
| 148 | + <p class="text">Connet with us in our wonderful journey. Feel free to share you thoughts , we will appreciate it 🎊 </p> |
| 149 | + <div class="info"> |
| 150 | + <div class="information"> |
| 151 | + <p><i class="fa-solid fa-location-dot"></i><br>Kanpur </p> |
| 152 | + <p><i class="fa-solid fa-envelope"></i><br>thecawnporemagofficial@gmail.com</p> |
| 153 | + </div> |
| 154 | + |
| 155 | + <div class="social-media"> |
| 156 | + <p>Connect with us</p> |
| 157 | + <div class="social-icon"> |
| 158 | + <a href="https://www.instagram.com/thecawnporemagazine/?igsh=MWQzcXkxeGNkd29oeA%3D%3D" target="_blank"><i class="fa-brands fa-instagram"></i></a> |
| 159 | + <a href="https://www.linkedin.com/company/the-cawnpore-magazine/" target="_blank"><i class="fa-brands fa-linkedin"></i></a> |
| 160 | + <a href="https://x.com/TheCawnporeMag?s=09" target="_blank"><i class="fa-brands fa-x-twitter"></i></a> |
| 161 | + </div> |
| 162 | + </div> |
| 163 | + |
| 164 | + </div> |
| 165 | + </div> |
| 166 | + |
| 167 | + <div class="contact-form"> |
| 168 | + <form |
| 169 | + action="https://formspree.io/f/mzzvyzzo" |
| 170 | + method="POST"> |
| 171 | + <h3 class="title">Contact Us</h3> |
| 172 | + <div class="input-container"> |
| 173 | + <input type="text" name="name" class="input" required/> |
| 174 | + <label for="">Username</label> |
| 175 | + <span>Username</span> |
| 176 | + </div> |
| 177 | + <div class="input-container"> |
| 178 | + <input type="email" name="email" class="input" required/> |
| 179 | + <label for="">Email</label> |
| 180 | + <span>Email</span> |
| 181 | + </div> |
| 182 | + <div class="input-container textarea"> |
| 183 | + <textarea name="message" class="input"></textarea> |
| 184 | + <label for="">Message</label> |
| 185 | + <span>Message</span> |
| 186 | + </div> |
| 187 | + <input type="submit" value="Send" class="btn"/> |
| 188 | + </form> |
| 189 | + </div> |
| 190 | + </div> |
| 191 | + </div> |
| 192 | + |
| 193 | + |
143 | 194 | <!-- Logos -->
|
144 | 195 | <section class="listings" style="text-align: center; margin-bottom: 40px;">
|
145 | 196 | <h3>Open Source Proudly Powered By:</h3>
|
@@ -303,6 +354,26 @@ <h3>Subscribe to our Newsletter</h3>
|
303 | 354 | }
|
304 | 355 | // Update the year in the footer
|
305 | 356 | document.getElementById("year").textContent = new Date().getFullYear();
|
| 357 | +const inputs = document.querySelectorAll(".input"); |
| 358 | + |
| 359 | +function focusFunc() { |
| 360 | + let parent = this.parentNode; |
| 361 | + parent.classList.add("focus"); |
| 362 | +} |
| 363 | + |
| 364 | +function blurFunc() { |
| 365 | + let parent = this.parentNode; |
| 366 | + if(this.value == "") { |
| 367 | + parent.classList.remove("focus"); |
| 368 | + } |
| 369 | +} |
| 370 | + |
| 371 | + |
| 372 | +inputs.forEach(input => { |
| 373 | + input.addEventListener("focus", focusFunc); |
| 374 | + input.addEventListener("blur", blurFunc); |
| 375 | +}); |
| 376 | + |
306 | 377 | </script>
|
307 | 378 | </body>
|
308 | 379 |
|
|
0 commit comments