Browse Source

finished slider

master
sajad 1 year ago
commit
1435faf9a6
  1. BIN
      back2.jpg
  2. BIN
      dollar-symbol.png
  3. BIN
      hair.jpg
  4. BIN
      hair.png
  5. 243
      html.html
  6. BIN
      icons8-protect-24.png
  7. BIN
      images (1).jpg
  8. BIN
      images (2).jpg
  9. BIN
      images (3).jpg
  10. BIN
      images (4).jpg
  11. BIN
      images (5).jpg
  12. BIN
      images (6).jpg
  13. BIN
      images.jpg
  14. BIN
      images.png
  15. 410
      style.css
  16. BIN
      twitter.png

BIN
back2.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 216 KiB

BIN
dollar-symbol.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
hair.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

BIN
hair.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

243
html.html

@ -0,0 +1,243 @@ @@ -0,0 +1,243 @@
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1,0">
<title>Hair Studio</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/all.min.css">
</head>
<body>
<input type="checkbox" id="check">
<header>
<div class="logoimg">
<img src="images.png" alt="logo-haircut">
<h3 class="logo">MY STUDIO</h3>
</div>
<nav>
<ul class="menu">
<li><a href="#home" class="list">Home</a></li>
<li><a href="#hair" class="list">About Us</a></li>
<li><a href="#logomain" class="list">Call Us</a></li>
</ul>
</nav>
<div class="meenu">
<label for="check">
<i class="fas fa-bars menu-btn"></i>
<i class="fas fa-times close-btn"></i>
</label>
</div>
</header>
<section class="header" id="home">
<div class="hair">
<h1 class="stu">Hair Studio</h1>
<p>Style Your Hair Is Style Your Life</p>
<div>
<button class="btn">Find Out</button>
<button class="btn">Read More</button>
</div>
<div class="doot" id="dot" >
</div>
</div>
<div id="slideshow-container">
</div>
<a class="prev" onclick="plusSlides(-1)"></a>
<a class="next" onclick="plusSlides(1)"></a>
<br>
</section>
<main>
<div class="logomain" id="hair">
<img src="hair.png" alt="logo-haircut">
<h2 class="choose">Why Choose Us</h2>
</div>
<div class="divmain">
<div class="submain">
<h2>Experienced Staff</h2>
<div class="subone">
<img class="tik" src="icons8-protect-24.png" >
<p>Lorem ipsum ADXASDScAsCFACASCQWACFEWFQWFCEFQAdolor sit amdfwvsvceszfvzrvrsevwgerv</p>
</div>
<h2>Pre Booking Online</h2>
<div class="subone">
<img class="tik" src="icons8-protect-24.png" >
<p>Lorem ipsum ADXASDScAsCFACASCQWACFEWFQWFCEFQAdolor sit amdfwvsvceszfvzrvrsevwgerv</p>
</div>
<h2>Afforable Cost</h2>
<div class="subone">
<img class="tik" src="icons8-protect-24.png" >
<p>Lorem ipsum ADXASDScAsCFACASCQWACFEWFQWFCEFQAdolor sit amdfwvsvceszfvzrvrsevwgerv</p>
</div>
</div>
<div class="imgmain">
</div>
</div>
<div class="better">
<div class="logomain">
<img src="hair.png" alt="logo-haircut">
<h2 class="choose">We Provide Better</h2>
</div>
<div class="work">
<img src="images (3).jpg" alt="work" class="workimg">
<img src="images (2).jpg" alt="work" class="workimg">
<img src="images (4).jpg" alt="work" class="workimg">
<img src="images (5).jpg" alt="work" class="workimg">
</div>
</div>
<div class="clientsays">
<div class="logomain">
<img src="hair.png" alt="logo-haircut">
<h2 class="choose">What Client Says</h2>
</div>
<div class="clients">
<div class="client">
<div class="clientes">
<img src="images (6).jpg" alt="client" class="imgclient">
<div class="username">
<h6>KEN BILLE</h6>
<p>@sajad001184</p>
</div>
<img src="twitter.png" alt="twitter-logo" class="imgtwitter">
</div>
<div class="lorem">
<p>Lorem ipsuLorem ipsum dolor sit amet</p>
</div>
</div>
<div class="client">
<div class="clientes">
<img src="images (6).jpg" alt="client" class="imgclient">
<div class="username">
<h6>KEN BILLE</h6>
<p>@sajad001184</p>
</div>
<img src="twitter.png" alt="twitter-logo" class="imgtwitter">
</div>
<div class="lorem">
<p>Lorem ipsuLorem ipsum dolor sit amet</p>
</div>
</div>
<div class="client">
<div class="clientes">
<img src="images (6).jpg" alt="client" class="imgclient">
<div class="username">
<h6>KEN BILLE</h6>
<p>@sajad001184</p>
</div>
<img src="twitter.png" alt="twitter-logo" class="imgtwitter">
</div>
<div class="lorem">
<p>Lorem ipsuLorem ipsum dolor sit amet</p>
</div>
</div>
</div>
</div>
</main>
<footer>
<div class="logomain" id="logomain">
<img src="hair.png" alt="logo-haircut">
<h2 class="choose">Visit Our Salon Today</h2>
</div>
<div class="footer">
<div class="address">
<h2>Opening Hour</h2>
<div class="week">
<img src="dollar-symbol.png" class="time">
<p>Monday Yo Friday - 9am to 9pm</p>
</div>
<div class="week">
<img src="dollar-symbol.png" class="time">
<p>Saturday Yo Sunday - 8am to 11pm</p>
</div>
</div>
<div class="address">
<h2>Get In Touch</h2>
<div class="week">
<p>Ward#6,hayderabord,sindh</p>
<img src="dollar-symbol.png" class="time">
</div>
<div class="week">
<p>anyname@gmail.com</p>
<img src="dollar-symbol.png" class="time">
</div>
<div class="week">
<p>+985165151854</p>
<img src="dollar-symbol.png" class="time">
</div>
</div>
</div>
<div class="icon">
<img src="dollar-symbol.png" class="icons">
<img src="twitter.png" class="icons">
<img src="twitter.png" class="icons">
<img src="twitter.png" class="icons">
</div>
<div class="copyright">
<p>Copyright - zehra Khuwaja</p>
</div>
</footer>
<script>
const slide=[
{img: "https://fakeimg.pl/250x100/ff0000/" } ,
{img: "https://fakeimg.pl/250x100/" } ,
{img: "https://fakeimg.pl/250x100/ff0000/"},
{img: "https://fakeimg.pl/250x100/" }
];
let elem=document.getElementById('slideshow-container')
let dot = document.getElementById("dot")
const a=slide.map(value =>{
return`
<div class="mySlides">
<img src="${value.img}" style="width:100%;height:100%">
</div>
`;
})
const b=slide.map(()=>{
for(let i=0;i<slide.length;i++){
return`
<span class="dot" onclick="currentSlide(i)"></span>
`};
})
elem.innerHTML= a.join("");
dot.innerHTML= b.join("");
let n=0;
let slideIndex = 1;
function showSlides(n) {
let i;
let slides = document.getElementsByClassName("mySlides");
let dots = document.getElementsByClassName("dot");
if (n > slides.length) { slideIndex = 1 }
if (n < 1) { slideIndex = slides.length }
for (i = 0; i < slides.length; i++) {
slides[i].style.display = "none";
}
for (i = 0; i < dots.length; i++) {
dots[i].className = dots[i].className.replace(" active", "");
}
slides[slideIndex - 1].style.display = "block";
dots[slideIndex - 1].className += " active";
}
showSlides(slideIndex);
function plusSlides(n) {
showSlides(slideIndex += n);
}
function currentSlide(n) {
showSlides(slideIndex = n);
}
setInterval(function(){
n++;
if(n>slide.length-1){
n=0;
}
showSlides(slideIndex = n);
},3000)
</script>
</body>
</html>

BIN
icons8-protect-24.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 362 B

BIN
images (1).jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.1 KiB

BIN
images (2).jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

BIN
images (3).jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

BIN
images (4).jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

BIN
images (5).jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

BIN
images (6).jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

BIN
images.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

BIN
images.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

410
style.css

@ -0,0 +1,410 @@ @@ -0,0 +1,410 @@
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800;900&display=swap');
html{
font-size:62.5%;
}
*{
margin:0;
padding:0;
box-sizing:border-box;
}
header{
position:fixed;
display:flex;
justify-content:center;
align-items:center;
padding:0.3vw;
margin-top:0;
background-color:pink;
width:100vw;
z-index:3;
}
.menu{
list-style:none;
display:flex;
margin-left:45vw;
font-size:1.5rem;
}
.list{
position:relative;
text-decoration:none;
margin-left:100px;
display:flex;
align-items:center;
color:black;
padding:10px;
border-radius:20%;
}
.list:hover{
background-color:#FF9EAA;
}
img{
width:40px;
height:auto;
max-width:100%;
}
.logo{
font-size:2rem;
}
.logoimg{
display:flex;
justify-content:center;
align-items:center;
}
.header{
position:relative;
background-image:linear-gradient( transparent, pink);
max-width:100%;
height:50vh;
background-size: cover;
background-position: center;
margin-bottom:5vh;
display:flex;
overflow:hidden;
justify-content:center;
}
.mySlides {
display: none;
z-index:-1;
position:absolute;
width:100%;
height:100%;
}
#slideshow-container {
width: 100%;
position: absolute;
height: 100%;
}
.prev,
.next {
cursor: pointer;
position: absolute;
top: 50%;
padding: 16px;
margin-top: -22px;
color: white;
font-weight: bold;
font-size: 18px;
border-radius: 0 3px 3px 0;
}
.next {
right: 0;
border-radius: 3px 0 0 3px;
}
.prev:hover,
.next:hover {
background-color: rgba(0, 0, 0, 0.8);
}
.dot {
width:1.5rem;
height:1.5rem;
cursor: pointer;
font-size:5rem;
display:flex;
background-color: #bbb;
border-radius: 50%;
z-index:3
}
.doot{
margin-top:10vh;
display:flex;
}
.prev{
left:10px;
}
.next{
right:10px
}
.active,
.dot:hover {
background-color: #717171;
}
@media only screen and (max-width: 300px) {
.prev,
.next,
.text {
font-size: 11px
}
}
.hair{
position:absolute;
display:flex;
flex-direction: column;
justify-content:center;
align-items:center;
margin-top:0;
padding-top:10vh;
z-index:3;
}
.hair p{
font-size:2rem;
margin-bottom:2vh;
}
.stu{
font-size:6rem;
font-family:cursive;
margin-bottom:3vh;
}
.btn{
background:none;
padding-right:2vw;
padding-left:2vw;
padding-top:0.5vh;
padding-bottom:0.5vh;
margin:0.2vw;
}
.btn:hover{
background-color:#FF9EAA;
}
.logomain{
display:flex;
flex-direction:column;
align-items:center;
padding-top:2vw;
}
.choose{
margin-top:0.5rem;
font-size:3rem;
margin-bottom:5vw;
}
.divmain{
display:flex;
align-items:center;
flex-wrap:wrap;
justify-content:space-around;
margin-bottom:5vw;
}
.imgmain{
width:20rem;
height:25rem;
border-radius:20px;
background-image:linear-gradient( transparent, pink), url(hair.jpg);
background-repeat: no-repeat;
}
.subone{
display:flex;
align-items:flex-start;
flex-wrap:wrap;
margin-top:1vw;
margin-bottom:2vw;
}
.subone p{
font-size:1.5rem;
width:50vw;
}
.tik{
width:2vw;
height:auto;
}
h3{
color:#00000;
}
.better{
background-color:#d9d7d7;
}
.work{
display:flex;
align-items:center;
justify-content:space-evenly;
flex-wrap:wrap;
}
.workimg{
width:33vw;
height:20vw;
margin-bottom:2vw;
border-radius:10px;
}
.clients{
display:flex;
align-items:center;
justify-content:space-around;
flex-direction:row;
font-size:1.5rem;
}
.client{
display:flex;
flex-direction:column;
box-shadow:3px 3px 10px #FF9EAA;
padding:1vw;
}
.clientes{
display:flex;
flex-direction:row;
flex-wrap:wrap;
}
.lorm p{
width:12rem;
}
.imgtwitter{
width:1vw;
height:1.5vw;
}
.username{
margin-left:1vw;
margin-right:1vw;
}
.imgclient{
width:2vw;
height:auto;
}
footer{
margin-top:10vw;
background-color:#d9d7d7;
font-size:1.5rem;
}
.time{
width:1.5vw;
height:1.5vw;
}
.week{
display:flex;
margin-top:1vw;
}
.lorem{
margin-top:2vw;
}
.footer{
display:flex;
align-items:center;
justify-content:space-around;
}
.icon{
display:flex;
justify-content:center;
margin-top:3vw;
}
.icons{
width:2vw;
height:auto;
margin-left:0.5vw;
margin-right:0.5vw;
border:2px solid black;
padding:0.2vw;
}
.copyright{
display:flex;
justify-content:center;
margin-top:2vw;
font-size:0.8rem;
padding-bottom:1vw;
}
.but{
display:none;
margin-left:45vw;
font-size:20px;
background-color:#F09EAA;
border:0;
padding:0.4vw 0.6vw 0.4vw 0.6vw;
}
#check{
z-index: 3;
display: none;
}
.meenu{
display:none;
}
@media (max-width: 1203px){
.menu{
display:none;
width:21vw;
}
header{
display:flex;
justify-content:space-around;
}
.meenu{
display:flex;
align-items:center;
}
label{
display: flex;
align-items:center;
justify-content:space-between;
font-size: 25px;
cursor: pointer;
transition: 0.3s;
transition-property: color;
}
label:hover{
color: #fff;
}
label .close-btn{
display: none;
}
#check:checked ~ header .menu{
z-index: 2;
position: fixed;
top: 3vh;
right: 0;
background: pink;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width:54vw;
}
#check:checked ~ header .menu a{
font-weight: 700;
margin-right: 0;
margin-bottom: 50px;
letter-spacing: 2px;
}
#check:checked ~ header label .close-btn{
z-index: 2;
position: fixed;
display: block;
}
#check:checked ~ header label .menu-btn{
display: none;
}
label .menu-btn{
position: absolute;
}
}
@media (max-width: 960px){
html{
font-size:50%;
}
}
@media (max-width: 700px){
html{
font-size:35%;
}
}
@media (max-width: 280px){
html{
font-size:20%;
}
}

BIN
twitter.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Loading…
Cancel
Save