diff --git a/flowershop_website/css/style.css b/flowershop_website/css/style.css new file mode 100644 index 0000000..254d46b --- /dev/null +++ b/flowershop_website/css/style.css @@ -0,0 +1,558 @@ +:root{ + --blue:#43e3e8; +} + +*{ + margin:0; padding:0; + box-sizing: border-box; + font-family: Verdana, Geneva, Tahoma, sans-serif; + outline: none; border:none; + text-decoration: none; + text-transform: capitalize; + transition: .2s linear; +} + +html{ + font-size: 62.5%; + scroll-behavior: smooth; + scroll-padding-top: 6rem; + overflow-x: hidden; +} + +section{ + padding:2rem 9%; +} + +.heading{ + text-align: center; + font-size: 4rem; + color:#333; + padding:1rem; + margin:2rem 0; + background:rgba(7, 158, 196, 0.05); +} + +.heading span{ + color:var(--blue); +} + +.btn{ + display: inline-block; + margin-top: 1rem; + border-radius: 5rem; + background:#333; + color:#fff; + padding:.9rem 3.5rem; + cursor: pointer; + font-size: 1.7rem; +} + +.btn:hover{ + background:var(--blue); +} + +header{ + position: fixed; + top:0; left:0; right:0; + background:#fff; + padding:2rem 9%; + display: flex; + align-items: center; + justify-content: space-between; + z-index: 1000; + box-shadow: 0 .5rem 1rem rgba(0,0,0,.1); +} + +header .logo{ + font-size: 3rem; + color:#333; + font-weight: bolder; +} + +header .logo span{ + color:var(--blue); +} + +header .navbar a{ + font-size: 2rem; + padding:0 1.5rem; + color:#666; +} + +header .navbar a:hover{ + color:var(--blue); +} + +header .icons a{ + font-size: 2.5rem; + color:#333; + margin-left: 1.5rem; +} + +header .icons a:hover{ + color:var(--blue); +} + +header #toggler{ + display: none; +} + +header .fa-bars{ + font-size: 3rem; + color:#333; + border-radius: .5rem; + padding:.5rem 1.5rem; + cursor: pointer; + border:.1rem solid rgba(0,0,0,.3); + display: none; +} + +.home{ + display: flex; + align-items: center; + min-height: 100vh; + background:url(../images/Home-bg.jpg) no-repeat; + background-size: cover; + background-position: center; +} + +.home .content{ + max-width: 50rem; +} + +.home .content h3{ + font-size: 6rem; + color:#333; +} + +.home .content span{ + font-size: 3.5rem; + color:white; + padding:1rem 0; + line-height: 1.5; +} + +.home .content p{ + font-size: 1.5rem; + color:#999; + padding:1rem 0; + line-height: 1.5; +} + +.about .row{ + display: flex; + align-items: center; + gap:2rem; + flex-wrap: wrap; + padding:2rem 0; + padding-bottom: 3rem; +} + +.about .row .video-container{ + flex:1 1 40rem; + position: relative; +} + +.about .row .video-container video{ + width:100%; + border:1.5rem solid #fff; + border-radius: .5rem; + box-shadow: 0 .5rem 1rem rgba(0,0,0,.1); + height: 100%; + object-fit: cover; +} + +.about .row .video-container h3{ + position: absolute; + top:50%; transform: translateY(-50%); + font-size: 3rem; + background:#fff; + width:100%; + padding:1rem 2rem; + text-align: center; + mix-blend-mode: screen; +} + +.about .row .content{ + flex:1 1 40rem; +} + +.about .row .content h3{ + font-size: 3rem; + color:#333; +} + +.about .row .content p{ + font-size: 1.5rem; + color:#999; + padding:.5rem 0; + padding-top: 1rem; + line-height: 1.5; +} + +.icons-container{ + background:#eee; + display: flex; + flex-wrap: wrap; + gap:1.5rem; + padding-top: 5rem; + padding-bottom: 5rem; +} + +.icons-container .icons{ + background:#fff; + border:.1rem solid rgba(0,0,0,.1); + padding:2rem; + display: flex; + align-items: center; + flex:1 1 25rem; +} + +.icons-container .icons img{ + height:5rem; + margin-right: 2rem; +} + +.icons-container .icons h3{ + color:#333; + padding-bottom: .5rem; + font-size: 1.5rem; +} + +.icons-container .icons span{ + color:#555; + font-size: 1.3rem; +} + +.products .box-container{ + display: flex; + flex-wrap: wrap; + gap:1.5rem; +} + +.products .box-container .box{ + flex:1 1 30rem; + box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.1); + border-radius: .5rem; + border:.1rem solid rgba(0,0,0,.1); + position: relative; +} + +.products .box-container .box .discount{ + position: absolute; + top:1rem; left:1rem; + padding:.7rem 1rem; + font-size: 2rem; + color:var(--pink); + background:rgba(204, 240, 242, 0.05); + z-index: 1; + border-radius: .5rem; +} + +.products .box-container .box .image{ + position: relative; + text-align: center; + padding-top: 2rem; + overflow:hidden; +} + +.products .box-container .box .image img{ + height:25rem; +} + +.products .box-container .box:hover .image img{ + transform: scale(1.1); +} + +.products .box-container .box .image .icons{ + position: absolute; + bottom:-7rem; left:0; right:0; + display: flex; +} + +.products .box-container .box:hover .image .icons{ + bottom:0; +} + +.products .box-container .box .image .icons a{ + height: 5rem; + line-height: 5rem; + font-size: 2rem; + width:50%; + background:var(--blue); + color:#fff; +} + +.products .box-container .box .image .icons .cart-btn{ + border-left: .1rem solid #fff7; + border-right: .1rem solid #fff7; + width:100%; +} + +.products .box-container .box .image .icons a:hover{ + background:#333; +} + +.products .box-container .box .content{ + padding:2rem; + text-align: center; +} + +.products .box-container .box .content h3{ + font-size: 2.5rem; + color:#333; +} + +.products .box-container .box .content .price{ + font-size: 2.5rem; + color:var(--blue); + font-weight: bolder; + padding-top: 1rem; +} + +.products .box-container .box .content .price span{ + font-size: 1.5rem; + color:#999; + font-weight: lighter; + text-decoration: line-through; +} + +.review .box-container{ + display: flex; + flex-wrap: wrap; + gap:1.5rem; +} + +.review .box-container .box{ + flex:1 1 30rem; + box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.1); + border-radius: .5rem; + padding:3rem 2rem; + position: relative; + border:.1rem solid rgba(0,0,0,.1); +} + +.review .box-container .box .fa-quote-right{ + position: absolute; + bottom:3rem; right:3rem; + font-size: 6rem; + color:#eee; +} + +.review .box-container .box .stars i{ + color:var(--blue); + font-size: 2rem; +} + +.review .box-container .box p{ + color:#999; + font-size: 1.5rem; + line-height: 1.5; + padding-top: 2rem; +} + +.review .box-container .box .user{ + display: flex; + align-items: center; + padding-top: 2rem; +} + +.review .box-container .box .user img{ + height:6rem; + width:6rem; + border-radius: 50%; + object-fit: cover; + margin-right: 1rem; +} + +.review .box-container .box .user h3{ + font-size: 2rem; + color:#333; +} + +.review .box-container .box .user span{ + font-size: 1.5rem; + color:#999; +} + +.contact .row{ + display: flex; + flex-wrap: wrap-reverse; + gap:1.5rem; + align-items: center; +} + +.contact .row form{ + flex:1 1 40rem; + padding:2rem 2.5rem; + box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.1); + border:.1rem solid rgba(0,0,0,.1); + background: #fff; + border-radius: .5rem; +} + +.contact .row .image{ + flex:1 1 40rem; +} + +.contact .row .image img{ + width: 100%; +} + +.contact .row form .box{ + padding:1rem; + font-size: 1.7rem; + color:#333; + text-transform: none; + border:.1rem solid rgba(0,0,0,.1); + border-radius: .5rem; + margin:.7rem 0; + width: 100%; +} + +.contact .row form .box:focus{ + border-color: var(--blue); +} + +.contact .row form textarea{ + height: 15rem; + resize: none; +} + +.footer .box-container{ + display: flex; + flex-wrap: wrap; + gap:1.5rem; +} + +.footer .box-container .box{ + flex:1 1 25rem; +} + +.footer .box-container .box h3{ + color:#333; + font-size: 2.5rem; + padding:1rem 0; +} + +.footer .box-container .box a{ + display: block; + color:#666; + font-size: 1.5rem; + padding:1rem 0; +} + +.footer .box-container .box a:hover{ + color:var(--blue); + text-decoration: underline; +} + +.footer .box-container .box img{ + margin-top: 1rem; +} + +.footer .credit{ + text-align: center; + padding:1.5rem; + margin-top: 1.5rem; + padding-top: 2.5rem; + font-size: 2rem; + color:#333; + border-top: .1rem solid rgba(0,0,0,.1); + padding-bottom: 9rem; +} + +.footer .credit span{ + color:var(--blue); +} + + + + + + + + + + + + + + + +/* media queries */ +@media (max-width:991px){ + + html{ + font-size: 55%; + } + + header{ + padding:2rem; + } + + section{ + padding:2rem; + } + + .home{ + background-position: left; + } + +} + +@media (max-width:768px){ + + header .fa-bars{ + display: block; + } + + header .navbar{ + position:absolute; + top:100%; left:0; right:0; + background:#eee; + border-top: .1rem solid rgba(0,0,0,.1); + clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); + } + + header #toggler:checked ~ .navbar{ + clip-path:polygon(0 0, 100% 0, 100% 100%, 0% 100%); + } + + header .navbar a{ + margin:1.5rem; + padding:1.5rem; + background:#fff; + border:.1rem solid rgba(0,0,0,.1); + display: block; + } + + .home .content h3{ + font-size: 5rem; + } + + .home .content span{ + font-size: 2.5rem; + } + + .icons-container .icons h3{ + font-size: 2rem; + } + + .icons-container .icons span{ + font-size: 1.7rem; + } + +} + +@media (max-width:450px){ + + html{ + font-size: 50%; + } + + .heading{ + font-size: 3rem; + } + +} diff --git a/flowershop_website/images/2121.jpg b/flowershop_website/images/2121.jpg new file mode 100644 index 0000000..3aaec8f Binary files /dev/null and b/flowershop_website/images/2121.jpg differ diff --git a/flowershop_website/images/abc.txt b/flowershop_website/images/abc.txt new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/flowershop_website/images/abc.txt @@ -0,0 +1 @@ + diff --git a/flowershop_website/images/about-vid.mp4 b/flowershop_website/images/about-vid.mp4 new file mode 100644 index 0000000..898e888 Binary files /dev/null and b/flowershop_website/images/about-vid.mp4 differ diff --git a/flowershop_website/images/home-bg.jpg b/flowershop_website/images/home-bg.jpg new file mode 100644 index 0000000..5ed5b00 Binary files /dev/null and b/flowershop_website/images/home-bg.jpg differ diff --git a/flowershop_website/images/icon-1.png b/flowershop_website/images/icon-1.png new file mode 100644 index 0000000..47c4e42 Binary files /dev/null and b/flowershop_website/images/icon-1.png differ diff --git a/flowershop_website/images/icon-2.png b/flowershop_website/images/icon-2.png new file mode 100644 index 0000000..52a26f3 Binary files /dev/null and b/flowershop_website/images/icon-2.png differ diff --git a/flowershop_website/images/icon-3.png b/flowershop_website/images/icon-3.png new file mode 100644 index 0000000..1ff731c Binary files /dev/null and b/flowershop_website/images/icon-3.png differ diff --git a/flowershop_website/images/icon-4.png b/flowershop_website/images/icon-4.png new file mode 100644 index 0000000..4c78fb8 Binary files /dev/null and b/flowershop_website/images/icon-4.png differ diff --git a/flowershop_website/images/img-1.jpg b/flowershop_website/images/img-1.jpg new file mode 100644 index 0000000..7b42742 Binary files /dev/null and b/flowershop_website/images/img-1.jpg differ diff --git a/flowershop_website/images/img-2.jpg b/flowershop_website/images/img-2.jpg new file mode 100644 index 0000000..4ab398e Binary files /dev/null and b/flowershop_website/images/img-2.jpg differ diff --git a/flowershop_website/images/img-3.jpg b/flowershop_website/images/img-3.jpg new file mode 100644 index 0000000..c35e4a2 Binary files /dev/null and b/flowershop_website/images/img-3.jpg differ diff --git a/flowershop_website/images/img-4.jpg b/flowershop_website/images/img-4.jpg new file mode 100644 index 0000000..fface2e Binary files /dev/null and b/flowershop_website/images/img-4.jpg differ diff --git a/flowershop_website/images/img-5.jpg b/flowershop_website/images/img-5.jpg new file mode 100644 index 0000000..4589c15 Binary files /dev/null and b/flowershop_website/images/img-5.jpg differ diff --git a/flowershop_website/images/img-6.jpg b/flowershop_website/images/img-6.jpg new file mode 100644 index 0000000..55c243c Binary files /dev/null and b/flowershop_website/images/img-6.jpg differ diff --git a/flowershop_website/images/img-7.jpg b/flowershop_website/images/img-7.jpg new file mode 100644 index 0000000..20e34eb Binary files /dev/null and b/flowershop_website/images/img-7.jpg differ diff --git a/flowershop_website/images/img-8.jpg b/flowershop_website/images/img-8.jpg new file mode 100644 index 0000000..f26a465 Binary files /dev/null and b/flowershop_website/images/img-8.jpg differ diff --git a/flowershop_website/images/img-9.jpg b/flowershop_website/images/img-9.jpg new file mode 100644 index 0000000..8212bc6 Binary files /dev/null and b/flowershop_website/images/img-9.jpg differ diff --git a/flowershop_website/images/payment.png b/flowershop_website/images/payment.png new file mode 100644 index 0000000..6e14ec7 Binary files /dev/null and b/flowershop_website/images/payment.png differ diff --git a/flowershop_website/images/pic-1.png b/flowershop_website/images/pic-1.png new file mode 100644 index 0000000..5fd0d47 Binary files /dev/null and b/flowershop_website/images/pic-1.png differ diff --git a/flowershop_website/images/pic-2.png b/flowershop_website/images/pic-2.png new file mode 100644 index 0000000..d37439f Binary files /dev/null and b/flowershop_website/images/pic-2.png differ diff --git a/flowershop_website/images/pic-3.png b/flowershop_website/images/pic-3.png new file mode 100644 index 0000000..8b8e25e Binary files /dev/null and b/flowershop_website/images/pic-3.png differ diff --git a/flowershop_website/index.html b/flowershop_website/index.html new file mode 100644 index 0000000..b8b2367 --- /dev/null +++ b/flowershop_website/index.html @@ -0,0 +1,446 @@ + + + + + + + complete responsive flower website design tutorial + + + + + + + + + + + + +
+ + + + + + + + +
+ + + +
+ +
+ + + + + +
+ +
+

fresh flowers

+ natural & beautiful flowers +

Lorem ipsum dolor sit amet consectetur adipisicing elit. Beatae laborum ut minus corrupti dolorum dolore assumenda iste voluptate dolorem pariatur.

+ shop now +
+ +
+ + + + + +
+ +

about us

+ +
+ +
+ +

best flower sellers

+
+ +
+

why choose us?

+

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Rem cumque sit nemo pariatur corporis perspiciatis aspernatur a ullam repudiandae autem asperiores quibusdam omnis commodi alias repellat illum, unde optio temporibus.

+

Lorem ipsum dolor, sit amet consectetur adipisicing elit. Accusantium ea est commodi incidunt magni quia molestias perspiciatis, unde repudiandae quidem.

+ learn more +
+ +
+ +
+ + + + + +
+ +
+ +
+

free delivery

+ on all orders +
+
+ +
+ +
+

10 days returns

+ moneyback guarantee +
+
+ +
+ +
+

offer & gifts

+ on all orders +
+
+ +
+ +
+

secure paymens

+ protected by paypal +
+
+ +
+ + + + + +
+ +

latest products

+ +
+ +
+ -10% +
+ +
+ + add to cart + +
+
+
+

flower pot

+
$12.99 $15.99
+
+
+ +
+ -15% +
+ +
+ + add to cart + +
+
+
+

flower pot

+
$12.99 $15.99
+
+
+ +
+ -5% +
+ +
+ + add to cart + +
+
+
+

flower pot

+
$12.99 $15.99
+
+
+ +
+ -20% +
+ +
+ + add to cart + +
+
+
+

flower pot

+
$12.99 $15.99
+
+
+ +
+ -17% +
+ +
+ + add to cart + +
+
+
+

flower pot

+
$12.99 $15.99
+
+
+ +
+ -3% +
+ +
+ + add to cart + +
+
+
+

flower pot

+
$12.99 $15.99
+
+
+ +
+ -18% +
+ +
+ + add to cart + +
+
+
+

flower pot

+
$12.99 $15.99
+
+
+ +
+ -10% +
+ +
+ + add to cart + +
+
+
+

flower pot

+
$12.99 $15.99
+
+
+ +
+ -5% +
+ +
+ + add to cart + +
+
+
+

flower pot

+
$12.99 $15.99
+
+
+ +
+ +
+ + + + + +
+ +

customer's review

+ +
+ +
+
+ + + + + +
+

Lorem ipsum dolor sit amet consectetur adipisicing elit. Corrupti asperiores laboriosam praesentium enim maiores? Ad repellat voluptates alias facere repudiandae dolor accusamus enim ut odit, aliquam nesciunt eaque nulla dignissimos.

+
+ + +
+ +
+ +
+
+ + + + + +
+

Lorem ipsum dolor sit amet consectetur adipisicing elit. Corrupti asperiores laboriosam praesentium enim maiores? Ad repellat voluptates alias facere repudiandae dolor accusamus enim ut odit, aliquam nesciunt eaque nulla dignissimos.

+
+ + +
+ +
+ +
+
+ + + + + +
+

Lorem ipsum dolor sit amet consectetur adipisicing elit. Corrupti asperiores laboriosam praesentium enim maiores? Ad repellat voluptates alias facere repudiandae dolor accusamus enim ut odit, aliquam nesciunt eaque nulla dignissimos.

+
+ + +
+ +
+ +
+ +
+ + + + + +
+ +

contact us

+ +
+ +
+ + + + + +
+ +
+ +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/flowershop_website/js/script.js b/flowershop_website/js/script.js new file mode 100644 index 0000000..f614a57 --- /dev/null +++ b/flowershop_website/js/script.js @@ -0,0 +1,130 @@ +let navbar = document.querySelector('.navbar') + +document.querySelector('#menu-bar').onclick = () =>{ + navbar.classList.toggle('active'); +} + +document.querySelector('#close').onclick = () =>{ + navbar.classList.remove('active'); +} + +window.onscroll = () =>{ + + navbar.classList.remove('active'); + + if(window.scrollY > 100){ + document.querySelector('header').classList.add('active'); + }else{ + document.querySelector('header').classList.remove('active'); + } + +} + +let themeToggler = document.querySelector('#theme-toggler'); + +themeToggler.onclick = () =>{ + themeToggler.classList.toggle('fa-sun'); + if(themeToggler.classList.contains('fa-sun')){ + document.querySelector('body').classList.add('active'); + }else{ + document.querySelector('body').classList.remove('active'); + } +} + +document.querySelectorAll('.small-image-1').forEach(images =>{ + images.onclick = () =>{ + document.querySelector('.big-image-1').src = images.getAttribute('src'); + } +}); + +document.querySelectorAll('.small-image-2').forEach(images =>{ + images.onclick = () =>{ + document.querySelector('.big-image-2').src = images.getAttribute('src'); + } +}); + +document.querySelectorAll('.small-image-3').forEach(images =>{ + images.onclick = () =>{ + document.querySelector('.big-image-3').src = images.getAttribute('src'); + } +}); + +let countDate = new Date('aug 1, 2021 00:00:00').getTime(); + +function countDown(){ + + let now = new Date().getTime(); + gap = countDate - now; + + let seconds = 1000; + let minutes = seconds * 60; + let hours = minutes * 60; + let days = hours * 24; + + let d = Math.floor(gap / (days)); + let h = Math.floor((gap % (days)) / (hours)); + let m = Math.floor((gap % (hours)) / (minutes)); + let s = Math.floor((gap % (minutes)) / (seconds)); + + document.getElementById('days').innerText = d; + document.getElementById('hours').innerText = h; + document.getElementById('minutes').innerText = m; + document.getElementById('seconds').innerText = s; + +} + +setInterval(function(){ + countDown() +},1000); + +var swiper = new Swiper(".product-slider", { + slidesPerView: 3, + loop:true, + spaceBetween: 10, + autoplay: { + delay: 4000, + disableOnInteraction: false, + }, + navigation: { + nextEl: ".swiper-button-next", + prevEl: ".swiper-button-prev", + }, + breakpoints: { + 0: { + slidesPerView: 1, + }, + 550: { + slidesPerView: 2, + }, + 800: { + slidesPerView: 3, + }, + 1000: { + slidesPerView: 3, + }, + }, +}); + +var swiper = new Swiper(".review-slider", { + slidesPerView: 3, + loop:true, + spaceBetween: 10, + autoplay: { + delay: 4000, + disableOnInteraction: false, + }, + breakpoints: { + 0: { + slidesPerView: 1, + }, + 550: { + slidesPerView: 2, + }, + 800: { + slidesPerView: 3, + }, + 1000: { + slidesPerView: 3, + }, + }, +});