Add files via upload
BIN
100_projects/79-starbucks-landing/images/close.png
Normal file
After Width: | Height: | Size: 848 B |
BIN
100_projects/79-starbucks-landing/images/facebook.png
Normal file
After Width: | Height: | Size: 534 B |
BIN
100_projects/79-starbucks-landing/images/img1.png
Normal file
After Width: | Height: | Size: 344 KiB |
BIN
100_projects/79-starbucks-landing/images/img2.png
Normal file
After Width: | Height: | Size: 796 KiB |
BIN
100_projects/79-starbucks-landing/images/img3.png
Normal file
After Width: | Height: | Size: 261 KiB |
BIN
100_projects/79-starbucks-landing/images/instagram.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
100_projects/79-starbucks-landing/images/logo.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
100_projects/79-starbucks-landing/images/menu.png
Normal file
After Width: | Height: | Size: 207 B |
BIN
100_projects/79-starbucks-landing/images/thumb1.png
Normal file
After Width: | Height: | Size: 29 KiB |
BIN
100_projects/79-starbucks-landing/images/thumb2.png
Normal file
After Width: | Height: | Size: 28 KiB |
BIN
100_projects/79-starbucks-landing/images/thumb3.png
Normal file
After Width: | Height: | Size: 24 KiB |
BIN
100_projects/79-starbucks-landing/images/twitter.png
Normal file
After Width: | Height: | Size: 757 B |
49
100_projects/79-starbucks-landing/index.html
Normal file
@ -0,0 +1,49 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>document</title>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
</head>
|
||||
<body>
|
||||
<section>
|
||||
<div class="circle"></div>
|
||||
<header>
|
||||
<a href="#" ><img src="images/logo.png" class="logo"></a>
|
||||
<div class="toggle" onclick="toggleMenu()"></div>
|
||||
<ul class="navigation">
|
||||
<li>
|
||||
<a href="#">Home</a>
|
||||
<a href="#">Menu</a>
|
||||
<a href="#">What's New</a>
|
||||
<a href="#">Contact</a>
|
||||
</li>
|
||||
</ul>
|
||||
</header>
|
||||
<div class="content">
|
||||
<div class="textBox">
|
||||
<h2>It's not just coffee<br>It's <span>Starbucks</span></h2>
|
||||
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's
|
||||
standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled</p>
|
||||
<a href="#">Learn More</a>
|
||||
</div>
|
||||
<div class="imgBox">
|
||||
<img src="images/img1.png" class="starbucks">
|
||||
</div>
|
||||
</div>
|
||||
<ul class="thumb">
|
||||
<li><img src="images/thumb1.png" onclick="imgSlider('images/img1.png');changeCircleColor('#017143')"></li>
|
||||
<li><img src="images/thumb2.png" onclick="imgSlider('images/img2.png');changeCircleColor('#eb7495')"></li>
|
||||
<li><img src="images/thumb3.png" onclick="imgSlider('images/img3.png');changeCircleColor('#d752b1')"></li>
|
||||
</ul>
|
||||
<ul class="sci">
|
||||
<li><a href="#"><img src="images/facebook.png"></a></li>
|
||||
<li><a href="#"><img src="images/twitter.png"></a></li>
|
||||
<li><a href="#"><img src="images/instagram.png"></a></li>
|
||||
</ul>
|
||||
</section>
|
||||
<script src="main.js" type="text/javascript"></script>
|
||||
</body>
|
||||
</html>
|
14
100_projects/79-starbucks-landing/main.js
Normal file
@ -0,0 +1,14 @@
|
||||
function imgSlider(anything){
|
||||
document.querySelector('.starbucks').src = anything;
|
||||
}
|
||||
function changeCircleColor(color){
|
||||
const circle = document.querySelector('.circle');
|
||||
circle.style.background = color;
|
||||
}
|
||||
|
||||
function toggleMenu(){
|
||||
const menuToggle = document.querySelector('.toggle');
|
||||
const navigation = document.querySelector('.navigation');
|
||||
menuToggle.classList.toggle('active');
|
||||
navigation.classList.toggle('active');
|
||||
}
|
224
100_projects/79-starbucks-landing/style.css
Normal file
@ -0,0 +1,224 @@
|
||||
*{
|
||||
margin:0;
|
||||
padding:0;
|
||||
box-sizing:border-box;
|
||||
}
|
||||
section{
|
||||
position: relative;
|
||||
width: 100%;
|
||||
min-height:100vh;
|
||||
padding: 100px;
|
||||
display: flex;
|
||||
justify-content:space-between;
|
||||
align-items: center;
|
||||
background-color: #fff;
|
||||
}
|
||||
header{
|
||||
position:absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
padding: 20px 100px;
|
||||
display: flex;
|
||||
justify-content:space-between;
|
||||
align-items:center;
|
||||
}
|
||||
header .logo{
|
||||
position: relative;
|
||||
max-width: 80px;
|
||||
}
|
||||
|
||||
header ul{
|
||||
position: relative;
|
||||
display: flex;
|
||||
}
|
||||
header ul li{
|
||||
list-style: none;
|
||||
}
|
||||
header ul li a {
|
||||
display: inline-block;
|
||||
color: #333;
|
||||
font-weight: 400;
|
||||
margin-left: 40px;
|
||||
text-decoration: none;
|
||||
font-size: 1.2em;
|
||||
}
|
||||
.content{
|
||||
position: relative;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
.content .textBox{
|
||||
position: relative;
|
||||
max-width: 600px;
|
||||
}
|
||||
.content .textBox h2{
|
||||
color: #333;
|
||||
font-size: 4em;
|
||||
line-height: 1.4em;
|
||||
font-weight: 500;
|
||||
}
|
||||
.content .textBox h2 span{
|
||||
color: #017143;
|
||||
font-size: 1.2em;
|
||||
font-weight: 900;
|
||||
}
|
||||
.content .textBox p{
|
||||
color: #333;
|
||||
}
|
||||
.content .textBox a{
|
||||
display: inline-block;
|
||||
margin-top:20px;
|
||||
padding:8px 20px;
|
||||
background: #017143;
|
||||
color: #fff;
|
||||
border-radius: 40px;
|
||||
font-weight: 500;
|
||||
letter-spacing: 1px;
|
||||
text-decoration: none;
|
||||
}
|
||||
.content .imgBox{
|
||||
width: 600px;
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
padding-right: 50px;
|
||||
margin-top: 50px;
|
||||
}
|
||||
.content .imgBox img{
|
||||
max-width: 340px;
|
||||
}
|
||||
.thumb{
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
bottom: 20px;
|
||||
transform: translateX(-50%);
|
||||
display: flex;
|
||||
}
|
||||
.thumb li{
|
||||
list-style: none;
|
||||
display: inline-block;
|
||||
margin: 0 20px;
|
||||
cursor: pointer;
|
||||
transition: 0.5s;
|
||||
}
|
||||
.thumb li:hover{
|
||||
transform: translateY(-15px);
|
||||
}
|
||||
.thumb li img{
|
||||
max-width: 60px;
|
||||
}
|
||||
.sci{
|
||||
position: absolute;
|
||||
top:50%;
|
||||
right: 30px;
|
||||
transform: translateY(-50%);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
}
|
||||
.sci li{
|
||||
list-style: none;
|
||||
}
|
||||
.sci li a {
|
||||
display: inline-block;
|
||||
margin: 5px 0;
|
||||
transform: scale(0.6);
|
||||
filter:invert(1);
|
||||
}
|
||||
.circle{
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: #017143;
|
||||
clip-path: circle(600px at right 800px);
|
||||
}
|
||||
@media(max-width:991px){
|
||||
header{
|
||||
padding: 20px;
|
||||
}
|
||||
header .logo{
|
||||
max-width: 60px;
|
||||
}
|
||||
header ul{
|
||||
display: none;
|
||||
}
|
||||
.toggle{
|
||||
position: relative;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
cursor: pointer;
|
||||
background: url(images/menu.png);
|
||||
background-size: 30px;
|
||||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
filter: invert(1);
|
||||
transition: .3s;
|
||||
z-index: 11;
|
||||
}
|
||||
.toggle.active{
|
||||
position: fixed;
|
||||
right: 20px;
|
||||
background: url(images/close.png);
|
||||
background-size: 20px;
|
||||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
header ul.navigation.active{
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left:0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: #fff;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
z-index: 10;
|
||||
gap: 50px;
|
||||
}
|
||||
header ul li{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
header ul li a{
|
||||
margin: 10px 0;
|
||||
text-decoration: none;
|
||||
}
|
||||
section{
|
||||
padding: 20px 20px 120px
|
||||
}
|
||||
.content{
|
||||
flex-direction: column;
|
||||
margin-top: 100px;
|
||||
}
|
||||
.content .textBox{
|
||||
max-width: 100%;
|
||||
}
|
||||
.content .textBox h2{
|
||||
font-size: 2.5em;
|
||||
margin-bottom:15px;
|
||||
}
|
||||
.content .imgBox{
|
||||
max-width: 100%;
|
||||
justify-content: center;
|
||||
}
|
||||
.content .imgBox img{
|
||||
max-width: 250px;
|
||||
}
|
||||
.thumb li img{
|
||||
max-width: 40px;
|
||||
}
|
||||
.circle{
|
||||
clip-path: circle(400px at bottom center);
|
||||
}
|
||||
.sci{
|
||||
background: #017143;
|
||||
right: 0;
|
||||
width: 50px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
}
|