From a25f9aaf3af1929f4d1a5a3f870c3fdd67de45eb Mon Sep 17 00:00:00 2001 From: Yash Verma <114978813+Rajput-xv@users.noreply.github.com> Date: Thu, 7 Sep 2023 19:50:30 +0530 Subject: [PATCH] Testimonial section added HTML,CSS,JS --- index.css | 92 +++++++++++++++++++++++++++++++++++++++++++++++++++++- index.html | 83 ++++++++++++++++++++++++++++++++++++++++++++++-- index.js | 40 +++++++++++++++++++++++- 3 files changed, 211 insertions(+), 4 deletions(-) diff --git a/index.css b/index.css index bdadef5..b761465 100644 --- a/index.css +++ b/index.css @@ -35,9 +35,99 @@ } */ +.hero{ + background: rgb(160, 54, 54); + height: 60vh; + width: 100%; + position: relative; +} + +.hero h2{ + text-align: center; + padding-top: 40px; + font-size: 42px; +} + +.slide-row{ + display: flex; + width: 3200px; + transition: 0.5s; +} + +.slide-col{ + width: 800px; + height: 400px; + position: relative; +} + +.text { + background: #ebb291; + width: 520px; + height: 270px; + position: absolute; + left: 0; + top: 8rem; + transform: translateY(-50%); + border-radius: 10px; + color: #000000; + padding: 20px; + box-sizing: border-box; +} + +.text p{ + font-size: 20px; + line-height: 25px; +} + +.text h4{ + margin: 35px 0 5px; + color: rgb(198, 6, 121); +} + +.hero .container{ + width: 800px; + height: 400px; + position: absolute; + top: 65%; + left: 50%; + transform: translate(-35%,-50%); +} + +.indicator{ + position: relative; + left: 75%; + transform: translateX(-50%); + bottom: -300px; + z-index: 2; +} + +.indicator .btn{ + display: inline-block; + height: 15px; + width: 15px; + background: white !important; + cursor: pointer; + transition: 0.5s; +} + +.indicator .active{ + width: 45px; +} + +.testimonial{ + width: 100%; + height: 100%; + overflow: hidden; +} + + +.nav-item.product-li{ + position: relative !important; +} + .dropdown-menu.product { position: absolute !important; - left: 190px !important; + /* left: 350px !important; */ } #product-nav{ diff --git a/index.html b/index.html index 193d1ff..a5de082 100644 --- a/index.html +++ b/index.html @@ -50,9 +50,9 @@
E-Smart
-