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
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"liveServer.settings.port": 5502
}
84 changes: 76 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,82 @@
<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.
<body class="container">
<nav>
<div class="logo">
<img
src="./images/spotify-logo.png"
alt="Spotify Logo"
/>
</div>
<ul class="nav-links">
<li>Premium</a></li>
<li>Discover</a></li>
<li>Help</a></li>
<li>Download</a></li>
</ul>
</nav>

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

<section class="sub-container">
<h2>What's on Spotify?</h2>

<div class="features">
<div class="feature-card">
<img src="./images/music-icon.png" alt="Music Icon" class="feature-icon" />
<h3>Millions of Songs</h3>
<p>There are millions of songs on Spotify</p>
</div>

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

<div class="feature-card">
<img src="./images/devices-icon.png" alt="Devices Icon" class="feature-icon" />
<h3>Stream Everywhere</h3>
<p>Stream music on your smartphone, tablet or computer</p>
</div>
</div>
</section>
<section class="popular-section">
<div class="popular-content">
<h2>It's as yeezy as Kanye West.</h2>

<div class="popular-features">
<div class="popular-text">
<h3>Search</h3>
<p>Know what you want to listen to?<br>Just search and hit play.</p>

<h3>Browse</h3>
<p>Check out the latest charts,<br>brand new releases and great<br>playlists for right now.</p>

<h3>Discover</h3>
<p>Enjoy new music every Monday<br>with your own personal playlist.<br>Or sit back and enjoy Radio.</p>
</div>

<div class="popular-image">
<img src="./images/spotify-icon-white.png" alt="Spotify Icon" class="spotify-icon" />
</div>
<div class="popular-app-image">
<img src="./images/spotify-app.jpg" alt="Spotify App" class="app-screenshot" />
</div>
</div>
</div>
</section>
<footer>
<p>© 2024 Spotify Clone. All rights reserved.</p>
</footer>
</body>
</html>
179 changes: 179 additions & 0 deletions styles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,182 @@ Green: #00B172
White: #FFF

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

body {
font-family: "Arial", "Helvetica", sans-serif;
color: #1a1a1a;
margin: 0;
padding: 0;
}

nav {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 40px;
position: fixed;
top: 0;
left: 0;
right: 0;
background-color: #fff;
z-index: 1000;
}

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

.nav-links {
cursor: pointer;
display: flex;
list-style: none;
gap: 30px;
}

.hero {
background-image: url("../images/landing.jpg");
background-size: cover;
background-position: center;
height: 600px;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
color: #fff;
margin-top: 80px;
}

.hero-content h1 {
font-size: 60px;
margin-bottom: 20px;
font-weight: bold;
}

.hero-content p {
font-size: 20px;
margin: 5px 0;
}

.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}

.sub-container {
padding: 60px 40px;
text-align: center;
background-color: #fff;
}

.sub-container h2 {
font-size: 36px;
margin-bottom: 10px;
text-decoration: underline;
text-decoration-color: #00B172;
text-decoration-thickness: 3px;
text-underline-offset: 8px;
}

.features {
display: flex;
justify-content: center;
gap: 30px;
margin-top: 40px;
flex-wrap: wrap;
}

.feature-card {
padding: 40px 30px;
width: 300px;
text-align: center;
}

.feature-icon {
height: 80px;
margin-bottom: 20px;
}

.feature-card h3 {
color: #00B172;
font-size: 22px;
margin-bottom: 15px;
}

.feature-card p {
color: #434343;
font-size: 16px;
}

.popular-section {
background-color: #00b172;
padding: 60px 40px;
color: white;
}

.popular-content h2 {
font-size: 36px;
margin-bottom: 40px;
text-decoration: underline;
text-underline-offset: 8px;
}

.popular-features {
display: flex;
justify-content: space-between;
align-items: center;
}

.popular-text {
flex: 1;
}

.popular-text h3 {
font-size: 24px;
margin-bottom: 10px;
margin-top: 30px;
}

.popular-text h3:first-child {
margin-top: 0;
}

.popular-text p {
font-size: 16px;
line-height: 1.6;
margin-bottom: 20px;
}

.popular-image {
flex: 1;
position: relative;
display: flex;
align-items: center;
justify-content: center;
min-height: 400px;
}

.spotify-icon {
height: 150px;
position: absolute;
top: 50%;
transform: translateY(-50%);
}

.app-screenshot {
height: 400px;
border-radius: 10px;
margin-left: 100px;
}

.popular-app-image {
flex: 1;
display: flex;
justify-content: flex-end;
}