Преглед изворни кода

done video hero design

master
azri пре 6 дана
родитељ
комит
88408acd23

BIN
public/assets/video/4010187-hd_1366_720_50fps.mp4 Прегледај датотеку


BIN
resources/assets/video/4010187-hd_1366_720_50fps.mp4 Прегледај датотеку


+ 84
- 4
resources/css/site.css Прегледај датотеку

@@ -38,6 +38,48 @@ h5 {
38 38
     font-weight: 400;
39 39
 }
40 40
 
41
+.rounded-amc{
42
+
43
+}
44
+
45
+.hero-section{
46
+
47
+    width: 100%;
48
+    min-height: 120vh;
49
+}
50
+
51
+.hero-section video{
52
+
53
+    height: 120vh;
54
+    object-fit: cover;
55
+    filter: brightness(50%);
56
+}
57
+
58
+.hero-section .text-highlight{
59
+    z-index: 10;
60
+    top:30%;
61
+    left: 50%;
62
+    transform: translate(-50%,-50%); 
63
+    width:85%;
64
+    position: absolute;
65
+    text-align: center;
66
+}
67
+
68
+.hero-section .text-highlight .title{
69
+    color: #FFF;
70
+    font-size: clamp(3.3em, 5vw, 5.5em);
71
+    font-weight: 600;
72
+    line-height: 60px;
73
+    margin-bottom: 30px
74
+}
75
+
76
+.hero-section .text-highlight .description{
77
+
78
+    font-size: 1.6em;
79
+    width: 90%;
80
+
81
+}
82
+
41 83
 .p-small {
42 84
     font-size: clamp(0.85em, 1.042vw, 1.25em);
43 85
 }
@@ -146,8 +188,8 @@ p {
146 188
 
147 189
 /* HOME */
148 190
 .section {
149
-    padding-top: 105px;
150
-    border-radius: 150px 150px 0 0;
191
+    padding-top: 40px;
192
+    border-radius: 50px 50px 0 0;
151 193
     transform: translateY(-7%);
152 194
 }
153 195
 
@@ -324,7 +366,7 @@ p {
324 366
 
325 367
 /* CONTACT PAGE */
326 368
 .contact-section {
327
-    padding-top: 90px;
369
+    padding-top: 80px;
328 370
 }
329 371
 
330 372
 .bg-contact {
@@ -480,10 +522,40 @@ p {
480 522
 
481 523
 /* Medium devices (≥768px) - md */
482 524
 @media (min-width: 768px) {
525
+
526
+    .section {
527
+        padding-top: 105px;
528
+        border-radius: 150px 150px 0 0;
529
+        transform: translateY(-7%);
530
+    }
531
+    
483 532
     .footer-menu-container {
484 533
         padding: 0px 15px;
485 534
     }
486 535
 
536
+    .hero-section{
537
+
538
+        width: 100%;
539
+        min-height: 140vh;
540
+    }
541
+    
542
+    .hero-section video{
543
+    
544
+        height: 140vh;
545
+        object-fit: cover;
546
+        filter: brightness(50%);
547
+    }
548
+
549
+    .hero-section .text-highlight{
550
+        z-index: 10;
551
+        top:43%;
552
+        left: 50%;
553
+        transform: translate(-50%,-50%); 
554
+        width:80%;
555
+        position: absolute;
556
+        text-align: center;
557
+    }
558
+
487 559
     .contact-form input {
488 560
         border: none;
489 561
         transition: all 0.3s ease-in-out;
@@ -491,9 +563,16 @@ p {
491 563
         padding: 25px 40px;
492 564
         border-radius: 50px;
493 565
         border: 1px solid #ADADAD;
494
-        font-size: clamp(0.85em, 1.042vw, 1.25em);
495 566
         margin-bottom: 20px;
496 567
     }
568
+
569
+    .hero-section .text-highlight .title{
570
+        color: #FFF;
571
+        font-size: clamp(3em, 5vw, 5.5em);
572
+        font-weight: 600;
573
+        line-height: 70px;
574
+        margin-bottom: 30px
575
+    }
497 576
 }
498 577
 
499 578
 /* Large devices (≥992px) - lg */
@@ -506,6 +585,7 @@ p {
506 585
         padding-right: 7rem;
507 586
         padding-left: 7rem;
508 587
     }
588
+    
509 589
 }
510 590
 
511 591
 /* Extra large devices (≥1200px) - xl */

+ 14
- 11
resources/views/home.antlers.html Прегледај датотеку

@@ -1,20 +1,23 @@
1 1
 <!-- Video Player Section -->
2
-<div class="container-fluid p-0">
2
+<div class="hero-section">
3 3
     <div class="p-0 position-relative">
4
-        <div class="position-absolute text-center" style="z-index: 10;top:35%;left: 50%;transform: translate(-50%,-50%); ">
5
-            <h2 class="text-light fw-bold">The Ultimate Platform to</br> Maximise Asset Potential</h2>
6
-            <p class="text-light">Harness the Full Force of Innovation in every aspect of operation</p>
4
+        <div class="text-highlight px-1">
5
+            <p class="title">The Ultimate Platform to Maximize Asset Potential</p>
6
+            <p class="text-light mx-auto description">Harness the Full Force of Innovation in every aspect of operation</p>
7 7
         </div>
8
-        <div class="position-absolute d-flex flex-row" style="gap:12px;z-index: 10;bottom:15%;left: 50%;transform: translate(-50%,-50%); ">
9
-            <div>
10
-                <p class="text-light text-end p-small">Get 3 days free then</br> 1 month for RM 1</p>
8
+        <div class="position-absolute row" style="z-index: 10;bottom:15%;left: 50%;transform: translate(-50%,-50%); width: 100%; ">
9
+            <div class="col-12 col-md-6">
10
+                <p class="text-light text-center text-md-end p-small">Get 3 days free then</br> 1 month for RM 1</p>
11 11
             </div>
12
-            <div>
13
-                <button type="button" class="btn-amics-small fw-bold mx-auto">Start Free Trial</button>
12
+            <div class="col-12 col-md-6 text-center text-md-start">
13
+                <a href="https://demo.amics.com.my/admin/login">
14
+                    <button type="button" class="btn-amics-small fw-bold">Start Free Trial</button>
15
+                </a>
16
+                
14 17
             </div>
15 18
         </div>
16
-        <video width="100%" autoplay muted loop playsinline style="filter: brightness(50%);">
17
-            <source src="https://www.w3schools.com/html/mov_bbb.mp4" type="video/mp4">
19
+        <video width="100%" autoplay muted loop playsinline>
20
+            <source src="../assets/video/4010187-hd_1366_720_50fps.mp4" type="video/mp4">
18 21
             Your browser does not support the video tag.
19 22
         </video>
20 23
 

Loading…
Откажи
Сачувај