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
72 changes: 64 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,70 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Spotify Clone</title>
<link rel="stylesheet" href="styles/style.css">
<!-- 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.
</body>
<body>
<!-- Navbar -->
<nav>
<img src="images/spotify-logo.png" alt="Spotify Logo">
<ul>
<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>

<!-- Hero -->
<section class="hero">
<img class="hero-image" src="images/landing.jpg" alt="Spotify Landing" />
<div class="hero-text">
<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>
</section>


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

<!-- Green Section -->
<section class="green-section">
<div class="text">
<h2>It’s as yeezy as Kanye West.</h2>

<p><strong>Search</strong><br>
Know what you want to listen to? Just search and hit play.</p>
<p><strong>Browse</strong><br>
Check out the latest charts, brand new releases and great playlists for right now.</p>
<p><strong>Discover</strong><br>
Enjoy new music every Monday with your own personal playlist. Or sit back and enjoy Radio.</p>
</div>
<img src="images/spotify-app.jpg" alt="Kanye West Player">
<img class="spotify-logo" src="images/spotify-icon-white.png" alt="Spotify Logo">
</section>
</body>
</html>
149 changes: 149 additions & 0 deletions styles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,152 @@ Green: #00B172
White: #FFF

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

body {
font-family: Arial, sans-serif;
line-height: 1.5;
}

/* Navbar */
nav {
position: fixed;
top: 0;
left: 0;
width: 100%;
background: white;
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 50px;
z-index: 1000;
border-bottom: 1px solid #ddd;
}

nav img {
height: 40px;
}

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

nav ul li {
display: inline;
}

nav ul li a {
text-decoration: none;
color: black;
font-weight: bold;
}

/* Hero section */
.hero {
display: grid;
grid-template-areas: "a";
align-items: center;
justify-items: center;
text-align: center;
color: white;
}

.hero img,
.hero-text {
grid-area: a;
}

.hero-image {
width: 100%;
height: 100%;
object-fit: cover;
}

.hero-text {
display: flex;
flex-direction: column;
gap: 20px;
align-items: center;
}

.hero-text h1 {
font-size: 3rem;
margin: 0;
}

.hero-text p {
font-size: 1.2rem;
max-width: 600px;
margin: 0 auto;
}



/* What’s on Spotify section */
.features {
padding: 50px;
display: flex;
justify-content: space-between;
text-align: center;
}

.feature {
flex: 1;
padding: 20px;
}

.feature h3 {
color: #1db954;
margin-bottom: 10px;
}

.image-icon img,
.high-icon img,
.device-icon img {
width: 70px;
height: auto;
}

/* Green Section */
.green-section {
background: #1db954;
color: white;
display: flex;
justify-content: space-between;
align-items: center;
padding: 50px;
position: relative;
}

.green-section .text {
flex: 1;
padding-right: 20px;
}

.green-section .text h2 {
margin-bottom: 20px ;
border-bottom: 5px solid white;
display: inline-block;
}
.green-section .text p {
margin-bottom: 10px;

}

.green-section .spotify-logo {
position: absolute;
left: 50%;
top: 20px;
height: 80px;
}

.green-section img {
height: 300px;
border-radius: 10px;
}