Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
101 changes: 95 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,102 @@
<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.
<nav class="navigation">
<img
src="./images/spotify-logo.png"
alt="logo"
width="170"
height="auto"
class="img_logo"
/>
<ul class="nav-links">
<li><a href="#premium">Premium</a></li>
<li><a href="#discover">Discover</a></li>
<li><a href="#help">Help</a></li>
<li><a href="#download">Download</a></li>
</ul>
</nav>
<section hero class="hero">
<img src="./images/landing.jpg"/ width="100%" height="auto"
class="img_hero" alt="landingpage" />
<h1>Music for everyone.</h1>
<p>
Spotify is now free on mobile,tablet and computer. Listen to the right
music, wherever you are.
</p>
</section>
<section features class="features">
<div class="features-title-container">
<h1 class="features-title">What’s on Spotify?</h1>
</div>

<div class="features-item-container">
<div class="features-item">
<img src="./images/music-icon.png" class="img_features" />
<h1 class="features-item-title">Millions of Songs</h1>
<p class="features-item-text">
There are millions of songs on Spotify
</p>
</div>
<div class="features-item">
<img
src="./images/high-quality-icon.png"
height="auto"
class="img_features"
/>
<h1 class="features-item-title">HD Music</h1>
<p class="features-item-text">
Listen to music as if you were listening live
</p>
</div>
<div class="features-item">
<img
src="./images/devices-icon.png"
height="auto"
class="img_features"
/>
<h1 class="features-item-title">Stream Everywhere</h1>
<p class="features-item-text">
Stream music on your smartphone, tablet or computer
</p>
</div>
</div>
</section>
<section mockup class="mockup">
<div class="mockup-container">
<div class="mockup_text-block">
<h1 class="mockup-title">It’s as yeezy as Kanye West.</h1>
<div class="mockup-text-container">
<h1 class="mockup-text-title">Search</h1>
<p class="mockup-text-description">
Know what you want to listen to? Just search and hit play.
</p>
</div>
<div class="mockup-text-container">
<h1 class="mockup-text-title">Browse</h1>
<p class="mockup-text-description">
Check out the latest charts, brand new releases and great
playlists for right now.
</p>
</div>
<div class="mockup-text-container">
<h1 class="mockup-text-title">Discover</h1>
<p class="mockup-text-description">
Enjoy new music every Monday with your own personal playlist. Or
sit back and enjoy Radio.
</p>
</div>
</div>
<div class="mockup-logowhite">
<img src="./images/spotify-icon-white.png" class="img-spotifywhite" />
</div>
<div class="mockup-image-block">
<img src="./images/spotify-app.jpg" class="img_mockup" />
</div>
</div>
</section>
</body>
</html>
287 changes: 287 additions & 0 deletions styles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,290 @@ Green: #00B172
White: #FFF

*/
* {
color: #1a1a1a;
margin: 0px;
padding: 0px;
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
font-size: medium;
letter-spacing: 1px;
}

.navigation {
display: flex;
justify-content: space-between;
align-items: center;
background-color: #fff;
position: fixed;
width: 100%;
padding: 1rem 0.5rem;
position: fixed;
top: 0;
left: 0;
z-index: 1;
}
.img_logo {
margin-left: 1rem;
}
.nav-links {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
gap: 3rem;
margin-right: 3rem;
list-style: none;
}
.nav-links > li > a {
text-decoration: none;
}
.hero {
width: 100%;
position: relative;
}
.img_hero {
width: 100%;
object-fit: cover;
max-height: 95vh;
/* position: relative; */
}
.hero > h1 {
position: absolute;
top: 45%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
color: #fff;
font-size: 5vw;
font-weight: 500;
z-index: 1;
}
.hero > p {
position: absolute;
top: 60%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
color: #fff;
z-index: 1;
font-size: 2vw;
font-weight: 100;
}

.features {
margin: 2rem 1rem;
width: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 5rem 2rem;
margin-bottom: 5rem;
}

.features-title-container {
position: relative;
display: flex;
justify-content: center;
align-items: center;
height: 100px;
}

.features-title {
font-size: 2.5rem;
font-weight: 600;
text-align: center;
display: inline-block;
position: relative;
}
.features-title::after {
content: "";
position: absolute;
bottom: -10px;
left: 0;
width: 100%;
height: 5px;
background-color: #00b172;
}

.features-item-container {
width: 100%;
display: flex;
justify-content: space-around;
align-items: flex-start;
gap: 5rem;
padding: 0rem 2rem;
}

.img_features {
width: auto;
height: 130px;
}
.features-item {
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: center;
flex: 1;
text-align: center;
gap: 1rem;
max-width: 20rem;
height: 100%;
}

.features-item-title {
font-size: 32px;
font-weight: 700;
color: #00b172;
margin: 0;
}
.features-item-text {
font-weight: 100;
font-size: 1.5rem;
line-height: 2rem;
letter-spacing: 1px;
margin-top: 10px;
}
.mockup-container {
background-color: #00b172;
margin: 2rem;
padding: 1rem;
display: flex;
justify-content: space-between;
align-items: center;
gap: 5rem;
padding: 2rem 5rem;
position: relative;
}
.img_mockup {
max-height: 40vw;
width: auto;
}
.img-spotifywhite {
width: 10vw;
height: auto;
}
.mockup-logowhite {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
max-width: 30%;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}
.mockup-image-block {
display: flex;
flex-direction: column;
justify-content: center;
align-items: flex-end;
gap: 2rem;
max-width: 25vw;
}
.mockup_text-block {
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: flex-start;
gap: 3rem;
margin: 3rem 0rem;
}

.mockup-title {
font-weight: 500;
font-size: 3vw;
color: #fff;
position: relative;
}
.mockup-title::after {
content: "";
height: 3px;
background-color: #fff;
position: absolute;
display: block;
width: 100%;
bottom: -10px;
}
.mockup-text-container {
max-width: 25vw;
}
.mockup-text-title {
font-size: 2vw;
font-weight: 700;
color: #fff;
margin-bottom: 1rem;
}
.mockup-text-description {
color: #fff;
font-size: 1.5vw;
font-weight: 100;
}

@media (max-width: 425px) {
.features-item-container {
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: flex-start;
gap: 5rem;
max-width: 90%;
}
.nav-links {
display: none;
}
.mockup-container {
background-color: #00b172;
margin: 2rem;
padding: 1rem;
display: flex;
flex-direction: column-reverse;
justify-content: space-between;
align-items: center;
gap: 5rem;
padding: 2rem 5rem;
position: relative;
}
.mockup-logowhite {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
max-width: 30%;
position: absolute;
left: 50%;
top: 37%;
transform: translate(-50%, -50%);
}
.mockup-text-title {
font-size: 5vw;
font-weight: 700;
color: #fff;
margin-bottom: 1rem;
}
.mockup-text-description {
color: #fff;
font-size: 3vw;
font-weight: 100;
}
.img_mockup {
max-height: 80vw;
width: auto;
}
.mockup-image-block {
align-items: center;
}
.mockup-title {
font-size: 5vw;
text-align: center;
}
.mockup_text-block {
align-items: center;
}
.mockup-text-container {
text-align: center;
max-width: 50vw;
}
}