Skip to content
90 changes: 83 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,90 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Spotify Clone</title>
<!-- don't forget to link your styles -->
<link rel="stylesheet" href="styles/style.css">

</head>
<body>
Premium Discover Help Download Music for everyone. Spotify is now free on mobile, tablet and computer. Listen to the
right music, wherever you are. What’s on Spotify? Millions of Songs There are millions of songs on Spotify HD Music
Listen to music as if you were listening live Stream Everywhere Stream music on your smartphone, tablet or computer
It’s as yeezy as Kanye West. Search Know what you want to listen to? Just search and hit play. Browse Check out the
latest charts, brand new releases and great playlists for right now. Discover Enjoy new music every Monday with your
own personal playlist. Or sit back and enjoy Radio.

<main>

<header>
<nav class="navbar">
<div class="logo">
<img src="images/spotify-logo.png" alt="Spotify Logo" />
</div>

<ul class="links">
<li><a href="#">Premium</a></li>
<li><a href="#">Discover</a></li>
<li><a href="#">Help</a></li>
<li><a href="#">Download</a></li>
</ul>
</nav>

<div id="image-container">
<h1>Music for everyone.</h1>
<p>Spotify is now free on mobile, tablet and computer. Listen to the
right music, wherever you are.</p>
</div>

</header>

<div id="WoS">
<h2>What's on Spotify?</h2>
</div>

<section class="content-container">

<div class="block">
<img src="images/music-icon.png">
<div class="block-text">
<h3>Millions of Songs</h3>
<p>these are millions of songs on Spotify</p>
</div>
</div>

<div class="block">
<img src="images/high-quality-icon.png">
<div class="block-text">
<h3>HD Music</h3>
<p>Listen to music as if you were listening live</p>
</div>
</div>

<div class="block">
<img src="images/devices-icon.png">
<div class="block-text">
<h3>Stream Everywhere</h3>
<p>Stream music on your smartphone,tablet or computer</p>
</div>
</div>

</section>

<section id="green-background">
<div id="green-container">


<div id="text-left">
<h2>It's as yeezy as Kanye West.</h2>
<h3>Search</h3>
<p>Know what you want to listen to? Just search and hit play.</p>
<h3>Browse</h3>
<p>Check out the latest charts, brand new releases and great playlists for right now.</p>
<h3>Discover</h3>
<p>Enjoy new music every Monday. with your own personal playlist. Or sit back and enjoy Radio.</p>
</div>

<div id="screenshot">
<a href="https://open.spotify.com/playlist/37i9dQZF1DZ06evO3nMr04" target="_blank">
<img src="images/spotify-app.jpg" alt="Spotify screenshot of Kanye West's page">
</a>
</div>

</div>
</section>
</main>

</body>
</html>
221 changes: 216 additions & 5 deletions styles/style.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,219 @@
/*
Colors:

Text: 1A1A1A
/* Colors:
Text: #1A1A1A
Green: #00B172
White: #FFF

*/

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
margin: 0;
padding: 0;
padding-top: 80px;
animation-name: myweb;
animation-duration: 1s;
animation-timing-function: ease-in;
animation-delay: 0s;
}

main {
width: 100%;
margin: 0;
color: #1A1A1A;
}

.logo {
height: 40px;
cursor: pointer;
}

.logo img {
height: 100%;
width: auto;
}

.navbar {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 80px;
background-color: #fff;
display: flex;
justify-content: space-between;
align-items: center;
}

.navbar a:hover {
background-color:#00B172 ;
border: #00B172;
border-radius: 20px;
}


.links {
list-style: none;
display: flex;
gap: 20px;
margin: 0;
padding: 0;
}

.links li a {
text-decoration: none;
color: #1A1A1A;
font-weight: bold;
padding: 1rem;
}

#image-container {
background-image: url('../images/landing.jpg');
background-size: cover;
background-position: center;
width: 100%;
height: 450px;
color: #fff;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
margin: 0;
}

#WoS {
text-align: center;
padding-top: 1rem;
padding-bottom: 3rem;
text-decoration: underline 0.2rem #00B172 ;
}

.content-container {
display: flex;
justify-content: space-between;
gap: 1rem;
}

.content-container h3 {
color: #00B172;
padding-bottom: 1rem;
}

.block {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
flex: 1;
}

.block-text {
display: flex;
align-items: center;
flex-direction: column;
text-align: center;
}

.content-container img {
width: 30%;
height: auto;
}


#green-background {
background-color: #00B172;
margin: 2rem;
color: #fff;
width:100;

}

#green-container {
display: flex;
justify-content: space-between;
align-items: center;
background-image: url('../images/spotify-icon-white.png');
background-position: center;
background-repeat: no-repeat;
background-size: 10% auto;
padding: 2rem;
}

#text-left {
display: flex;
flex-direction: column;
gap: 1rem;
max-width: 40%;
}

#text-left h2 {
border-bottom: 2px solid white;
padding-bottom: 0.5rem;
display: inline-block;
}

#text-left h3 {
margin-top: 1rem;
}

#logo {
margin: 0 2rem;
flex-shrink: 0;
}

#logo img {
height: 80px;
width: auto;
border-radius: 50%;
object-fit: cover;
}

#screenshot {
display: flex;
justify-content: flex-end;
}

#screenshot img {
max-width: 50%;
height: auto;
}

#screenshot a {
display: flex;
justify-content: flex-end;
}

@media (max-width: 760px) {
.content-container {
flex-direction: column;
align-items: center;
}

#green-container {
flex-direction: column;
text-align: center;
}

#text-left {
max-width: 100%;
padding-bottom: 2rem;
}

#screenshot img {
max-width: 80%;
max-height: 70%;
padding-top: 3rem;
}
}

@keyframes myweb{
from {transform: translateX(-300px);}

to{ transform: translateX(0px);}

}