Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
zzmarques committed Jan 22, 2024
0 parents commit ea0f755
Show file tree
Hide file tree
Showing 15 changed files with 262 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 zzmarques

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# starbucks

Binary file added img/icon-starbucks.ico
Binary file not shown.
Binary file added img/img-pequena1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/img-pequena2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/img-pequena3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/img1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/img2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/img3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
45 changes: 45 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<!DOCTYPE html>
<html lang="pt-br">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="img/icon-starbucks.ico" type="image/x-icon">
<link rel="stylesheet" href="style/style.css">
<link rel="stylesheet" href="style/screen.css" media="screen">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,500;1,300&display=swap" rel="stylesheet">
<title>Starbucks</title>
</head>

<body>

<div id="circulo"></div>

<img src="img/logo.png" alt="Logo Starbucks" class="logo">

<main>

<section id="texto">
<h1>It's not just Coffee It's <span>Starbucks</span></h1>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Eum architecto dolore.
</p>
<button>Deixe o seu Like!</button>
</section>

<section id="imagem">
<img src="img/img1.png" alt="Copo Starbucks" class="starbucks">
</section>

</main>

<section id="menu">
<img src="img/img-pequena1.png" alt="Copo pequeno Starbucks" class="copo-pequeno verde">
<img src="img/img-pequena2.png" alt="Copo pequeno Starbucks" class="copo-pequeno amarelo">
<img src="img/img-pequena3.png" alt="Copo pequeno Starbucks" class="copo-pequeno rosa">
</section>

<script src="script/javascript.js"></script>
</body>
</html>
22 changes: 22 additions & 0 deletions script/javascript.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
const imgCopo = document.querySelector(".starbucks");
const copoVerde = document.querySelector(".verde");
const copoAmarelo = document.querySelector(".amarelo");
const copoRosa = document.querySelector('.rosa');
const circulo = document.querySelector('#circulo');


copoVerde.addEventListener('click', () => {
imgCopo.src = 'img/img1.png';
circulo.style.background = '#017143';
})

copoAmarelo.addEventListener('click', () => {
imgCopo.src = "img/img2.png";
circulo.style.background = '#eb7495'

})

copoRosa.addEventListener('click', () => {
imgCopo.src = 'img/img3.png';
circulo.style.background = "#d752b1"
})
68 changes: 68 additions & 0 deletions style/screen.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
@media only screen and (min-width: 768px) {
body {
padding-top: 20px;
padding-left: 60px;
padding-right: 60px;
}

#circulo {
clip-path: circle(300px at right 360px);

}

h1 {
font-size: 30px;
font-weight: 500;
}

span {
color: #017143;
font-size: 40px;
font-weight: 500;
}

#menu {
margin-top: 80px;

}


}


@media only screen and (min-width: 992px){


body {
padding-top: 20px;
padding-left: 100px;
padding-right: 100px;
}

#circulo {
clip-path: circle(440px at right 500px);

}

h1 {
font-size: 40px;
font-weight: 500;
}

span {
color: #017143;
font-size: 50px;
font-weight: 500;
}

#texto {
width: 600px;
}

#imagem {
width: 600px;
margin-top: 109px;
margin-left: 50px;

}
}
102 changes: 102 additions & 0 deletions style/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
* {
padding: 0px;
margin: 0px;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}


body {
padding-top: 20px;
padding-right: 15px;
padding-left: 15px;
}

main {
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
}

#texto {
width: 300px;
}

#imagem {
width: 300px;
display: flex;
justify-content: flex-end;
margin-top: 109px;
margin-left: 50px;
}

#menu {
display: flex;
justify-content: center;
margin-top: 80px;

}


button {
background-color: #017143;
color: white;
border: none;
padding: 10px;
border-radius: 20px;


}

h1 {
font-size: 23px;
font-weight: 500;
}

span {
color: #017143;
font-size: 30px;
font-weight: 500;
}

p {
font-size: 16px;
margin-top: 20px;
margin-bottom: 30px;
}

.logo {
width: 60px;
}

.starbucks {
width: 200px;
z-index: 2;
}

.copo-pequeno {
width: 50px;
cursor: pointer;
transition: 0.8s;
}
.copo-pequeno:hover {
transform: translateY(-25px);
}

#circulo {
background: #017143;
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
clip-path: circle(250px at right 340px);

}






0 comments on commit ea0f755

Please sign in to comment.