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
75 changes: 67 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,75 @@
<head>
<meta charset="UTF-8" />
<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.
<!-- Navbar -->
<header class="navbar">
<img src="images/spotify-logo.png" alt="Spotify logo" class="logo" />
<nav>
<ul class="nav-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>
</header>

<!-- Hero Section -->
<section class="hero">
<img src="images/landing.jpg" alt="landing img" />
<h1>Music for everyone.</h1>
<p>
Spotify is now free on mobile, tablet and computer.<br />
Listen to the right music, wherever you are.
</p>
</section>

<!-- Features Section -->
<section class="features">
<h2>What’s on Spotify?</h2>
<div class="feature-cards">
<div class="card">
<img src="images/music-icon.png" alt="Music icon" />
<h3>Millions of Songs</h3>
<p>There are millions of songs on Spotify</p>
</div>
<div class="card">
<img src="images/high-quality-icon.png" alt="HD icon" />
<h3>HD Music</h3>
<p>Listen to music as if you were listening live</p>
</div>
<div class="card">
<img src="images/devices-icon.png" alt="Device icon" />
<h3>Stream Everywhere</h3>
<p>Stream music on your smartphone, tablet or computer</p>
</div>
</div>
</section>

<!-- Kanye Section -->
<section class="kanye">
<div class="kanye-text">
<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 class="kanye-logo">
<img src="images/spotify-icon-white.png" alt="Spotify logo" />
</div>

<div class="kanye-img">
<img src="images/spotify-app.jpg" alt="Spotify app Kanye West" />
</div>
</section>

</body>
</html>
143 changes: 136 additions & 7 deletions styles/style.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,137 @@
/*
Colors:
body {
font-family: Arial, sans-serif;
margin: 0;
color: #222;
}

.navbar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px;
background: white;
}

.logo {
height: 40px;
}

.nav-links {
list-style: none;
display: flex;
gap: 20px;
}

.nav-links a {
text-decoration: none;
color: black;
}

.hero {
position: relative;
text-align: center;
color: white;
}

.hero img {
width: 100%;
height: auto;
display: block;
}

.hero h1 {
position: absolute;
top: 40%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 3rem;
font-weight: bold;
}

.hero p {
position: absolute;
top: 55%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 1.2rem;
line-height: 1.5;
}


.features {
text-align: center;
padding: 50px 20px;
background: white;
}

.features h2 {
font-size: 32px;
margin-bottom: 40px;
text-decoration: underline;
text-decoration-color: #1db954;
}

.feature-cards {
display: flex;
justify-content: center;
gap: 40px;
flex-wrap: wrap;
}

.card {
width: 200px;
}

.card img {
height: 50px;
margin-bottom: 10px;
}

.card h3 {
color: #1db954;
}

Text: 1A1A1A
Green: #00B172
White: #FFF

*/
.kanye {
background-color: #1db954;
color: white;
padding: 50px 0;
}

.kanye-text,
.kanye-logo,
.kanye-img {
flex: 1;
padding: 20px;
}

.kanye-logo img {
width: 80px;
display: block;
margin: 0 auto;
}

.kanye-text {
max-width: 300px;
padding-left: 100px;
}

.kanye-img img {
height: 300px;
}

.kanye {
display: flex;
justify-content: center;
align-items: center;
max-width: 1200px;
margin: 0 auto;
flex-wrap: wrap;
}

.kanye-text h2 {
border-bottom: 2px solid white;
display: inline-block;
padding-bottom: 5px;
margin-bottom: 20px;
}