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
76 changes: 69 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,18 +1,80 @@
<!DOCTYPE html>
<html lang="en">
<head>
<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,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap" rel="stylesheet">
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link rel="stylesheet" href="./styles/style.css">
<title>Spotify Clone</title>
<!-- don't forget to link your styles -->
</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.
<header class="nav--items">
<nav class="nav--bar">
<img src="./images/spotify-logo.png" alt="logo" class="logo">
<ul>
<li>Premium</li>
<li>Discover</li>
<li>Help</li>
<li>Download</li>
</ul>
</nav>
</header>
<main class="landing--page">
<div class="message">
<h2>Music for everyone.</h2>
<p>Spotify is now free on mobile, tablet and computer.</p>
<p>Listen to the right music, wherever you are.</p>
</div>
</main>
<section class="content">
<section class="info--cards">
<h2>What’s on Spotify?</h2>
<div class="cards">
<div class="card music--card">
<img src="./images/music-icon.png" alt="music icon" class="card--img">
<h4>Millions of Songs</h4>
<p>There are millions of songs on Spotify</p>
</div>
<div class=" card hd">
<img src="./images/high-quality-icon.png" alt=" HD music icon" class="card--img">
<h4>HD Music</h4>
<p>Listen to music as if you were listening live</p>
</div>
<div class="card stream">
<img src="./images/devices-icon.png" alt=" HD music icon" class="card--img">
<h4>Stream Everywhere</h4>
<p>Stream music on your smartphone, tablet or computer</p>
</div>
</div>
</section>
<section class="spotify--details">
<div class="info">
<h3>It’s as yeezy as Kanye West.</h3>
<div class="info--details">
<div class="search--detail">
<h4>Search</h4>
<p>Know what you want to listen to? Just search and hit play.</p>
</div>
<div class="browse--detail">
<h4>Browse</h4>
<p>Check out the
latest charts, brand new releases and great playlists for right now.</p>
</div>
<div class="discover--details">
<h4>Discover</h4>
<p>Enjoy new music every Monday with your
own personal playlist. Or sit back and enjoy Radio.</p>
</div>
</div>
</div>
<img src="./images/spotify-icon-white.png" id="spotify--white" srcset="">
<div class="spotify--app">
<img src="./images/spotify-app.jpg" alt="app" srcset="">
</div>
</section>
</section>
</body>
</html>
220 changes: 214 additions & 6 deletions styles/style.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,216 @@
/*
Colors:
:root {
--text: #1A1A1A;
--green: #00B172;
--white: #FFF
}

Text: 1A1A1A
Green: #00B172
White: #FFF
* {
margin: 0;
padding: 0;
box-sizing: border-box;
text-decoration: none;
list-style: none;
}

*/
body {
width: 100%;
font-family: "Poppins", sans-serif;
}

p {
font-size: 1.3rem;
}

/* navigation bar */

.nav--items {
position: relative;
}

.nav--bar {
display: flex;
justify-content: space-between;
align-items: center;
position: fixed;
width: 100%;
background-color: var(--white);
height: 11vh;
z-index: 100;
padding: 1.5em 1.5em;
}

.nav--bar ul {
display: flex;
gap: 1em;
}

.nav--bar ul li {
cursor: pointer;
}

.logo {
width: 9em;
}

/* landing--page */
.landing--page {
background: url(../images/landing.jpg) center center / cover no-repeat;
height: 85vh;
color: #fff;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
}

.message h2 {
font-size: 4rem;
font-weight: 700;
margin-bottom: .2em;
}

.message p {
font-size: 1.2rem;
}


/* content */
/* info cards */

.content {
display: flex;
flex-direction: column;
gap: 2em; padding: 1.5em;
}
.info--cards {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 2em;
}

.info--cards h2 {
font-size: 2rem;
}

.info--cards h2::after {
content: '';
display: block;
width: 100%;
height: 4px;
margin-top: 5px;
background: var(--green);
}

.cards {
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
gap: 1em;
}

.card {
width: 100%;
padding: 4em;
border: 5px solid rgb(243, 243, 66);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: .5em;
text-align: center;
}

.card p {
font-weight: 300;
}

.card h4 {
font-size: 1.5rem;
color: var(--green);
}

.card--img {
width: 8em;
height: auto;
}

.card.hd {
padding: 4.5em;
}

.card.stream {
height: 339px;

}

/* footer */

.spotify--details {
width: 100%;
background: var(--green);
height: 120vh;
display: flex;
justify-content: space-between;
padding: 3em 6em;
gap: 20em;
color: white;
position: relative;
}

#spotify--white {
width: 100px;
position: absolute;
top: 50%;
left: 55%;
transform: translate(-100%, -100%);
}

.spotify--app {
width: 463px;

margin-top: 3em;
}

.spotify--app img {
width: 100%;
}

.info {
display: flex;
flex-direction: column;
gap: 1em;
width: 50%;
}

.info h3 {
font-size: 1.8rem;
}

.info h3::after {
content: '';
display: block;
width: 100%;
height: 4px;
margin-top: .2em;
background: var(--white);
}

.info--details {
margin-top: 1.2em;
width: 350px;
display: flex;
flex-direction: column;
gap: 2em;
justify-content: space-between;
font-weight: 300;
font-size: .8rem;
}

.info--details h4 {
font-size: 1.3rem;
font-weight: 600;
margin-bottom: 1em;
}