Browse Source

responsive contact page

master
azri 5 days ago
parent
commit
3e7d629e28
3 changed files with 26 additions and 10 deletions
  1. BIN
      composer.phar
  2. 16
    3
      resources/css/site.css
  3. 10
    7
      resources/views/contact.antlers.html

BIN
composer.phar View File


+ 16
- 3
resources/css/site.css View File

@@ -324,11 +324,13 @@ p {
324 324
 
325 325
 /* CONTACT PAGE */
326 326
 .contact-section {
327
-    padding-top: 100px;
327
+    padding-top: 90px;
328 328
 }
329 329
 
330 330
 .bg-contact {
331 331
     background: url(../assets/images/wallpaper8.jpg);
332
+    padding-top: 50%;
333
+    background-size: cover;
332 334
 }
333 335
 
334 336
 .contact-form {
@@ -340,10 +342,10 @@ p {
340 342
     border: none;
341 343
     transition: all 0.3s ease-in-out;
342 344
     outline: none;
343
-    padding: 25px 40px;
345
+    padding: 10px 15px;
344 346
     border-radius: 50px;
345 347
     border: 1px solid #ADADAD;
346
-    font-size: clamp(0.85em, 1.042vw, 1.25em);
348
+    font-size: clamp(1em, 1.242vw, 1.45em);
347 349
     margin-bottom: 20px;
348 350
 }
349 351
 
@@ -481,6 +483,17 @@ p {
481 483
     .footer-menu-container {
482 484
         padding: 0px 15px;
483 485
     }
486
+
487
+    .contact-form input {
488
+        border: none;
489
+        transition: all 0.3s ease-in-out;
490
+        outline: none;
491
+        padding: 25px 40px;
492
+        border-radius: 50px;
493
+        border: 1px solid #ADADAD;
494
+        font-size: clamp(0.85em, 1.042vw, 1.25em);
495
+        margin-bottom: 20px;
496
+    }
484 497
 }
485 498
 
486 499
 /* Large devices (≥992px) - lg */

+ 10
- 7
resources/views/contact.antlers.html View File

@@ -1,9 +1,12 @@
1 1
 <section class="contact-section">
2
-    <div class="row">
3
-        <div class="col-12 col-md-6 py-5 px-6 bg-white">
2
+    <div class="row m-0">
3
+        <div class="col-12 col-md-6 d-block d-md-none bg-contact">
4
+            <!-- Image -->
5
+        </div>
6
+        <div class="col-12 col-md-6 py-5 px-5 bg-white">
4 7
             
5
-            <form class="contact-form bg-secondary-subtle rounded-5 p-5 my-1">
6
-                <h3 style="margin-bottom: 70px;">Fill in your information</h3>
8
+            <form class="contact-form bg-secondary-subtle rounded-5 py-5 px-3 px-md-5 my-1">
9
+                <h3 class="text-center text-md-start" style="margin-bottom: 70px;">Fill in your information</h3>
7 10
                 <div class="d-flex flex-column" style="margin-bottom: 10px;">
8 11
                     <input type="text" placeholder="Your name">
9 12
                     <input type="email" placeholder="Your email">
@@ -11,8 +14,8 @@
11 14
                     <input type="text" placeholder="Company name">
12 15
                 </div>
13 16
                 <div class="container-fluid p-0 d-flex flex-column flex-md-row justify-content-center justify-content-md-between px-5" style="margin-bottom: 40px;">
14
-                    <p class="p-small fw-bold"> Follow us now:</p>
15
-                    <div class="d-flex flex-row" style="gap: 20px;">
17
+                    <p class="p-small fw-bold text-center text-md-start"> Follow us now:</p>
18
+                    <div class="d-flex flex-row justify-content-center justify-content-md-start" style="gap: 20px;">
16 19
                         <i class="bi bi-telephone-fill text-dark" style="font-size: 20px;"></i>
17 20
                         <i class="bi bi-whatsapp text-dark" style="font-size: 20px;"></i>
18 21
                         <i class="bi bi-envelope text-dark" style="font-size: 22px;"></i>
@@ -22,7 +25,7 @@
22 25
             </form>
23 26
             
24 27
         </div>
25
-        <div class="col-12 col-md-6 bg-contact">
28
+        <div class="col-12 col-md-6 d-none d-md-block bg-contact">
26 29
             <!-- Image -->
27 30
         </div>
28 31
     </div>

Loading…
Cancel
Save