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
91 changes: 75 additions & 16 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,18 +1,77 @@
<!DOCTYPE html>
<html lang="en">
<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 -->
</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>
</html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Spotify Clone</title>
<link rel="stylesheet" href="styles/style.css">
</head>
<body>
<nav class="navbar">
<a class="brand" href="#">
<img src="images/spotify-logo.png" alt="Spotify logo">
</a>
<ul class="nav-list">
<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 class="hero">
<div class="hero-content">
<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>
</div>
</header>

<section class="features">
<h2>What’s on Spotify?</h2>
<div class="features-container">
<div class="feature">
<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="feature">
<img src="images/high-quality-icon.png" alt="High quality icon">
<h3>HD Music</h3>
<p>Listen to music as if you were listening live</p>
</div>
<div class="feature">
<img src="images/devices-icon.png" alt="Devices icon">
<h3>Stream Everywhere</h3>
<p>Stream music on your smartphone, tablet or computer</p>
</div>
</div>
</section>

<section class="green-section">
<div class="green-content">
<div class="text-content">
<h2>It’s as yeezy as Kanye West.</h2>
<div class="feature-item">
<h3>Search</h3>
<p>Know what you want to listen to? Just search and hit play.</p>
</div>
<div class="feature-item">
<h3>Browse</h3>
<p>Check out the latest charts, brand new releases and great playlists for right now.</p>
</div>
<div class="feature-item">
<h3>Discover</h3>
<p>Enjoy new music every Monday with your own personal playlist. Or sit back and enjoy Radio.</p>
</div>
</div>
<div class="image-content">
<img src="images/spotify-app.jpg" alt="Spotify app" class="spotify-app">
</div>
<img src="images/spotify-icon-white.png" alt="Spotify icon" class="spotify-icon">
</div>
</section>
</body>
</html>
198 changes: 192 additions & 6 deletions styles/style.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,194 @@
/*
Colors:

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

*/

.navbar {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 64px;
background: #ffffff;
align-items: center;
justify-content: space-between;
padding: 0 24px;
border-bottom: 1px solid #ddd;
z-index: 1000;
}


.brand img {
height: 40px;
display: block;
}


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

.nav-list a {
text-decoration: none;
color: #000;
font-weight: 500;
}

.nav-list a:hover {
color: #1db954;
}


.page {
padding-top: 96px;
max-width: 1100px;
margin: 0 auto;
}


.hero {
height: 90vh;
background-image: url("../images/landing.jpg");
background-size: cover;
background-position: center;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
color: white;
padding: 0 20px;
}

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

.hero-content p {
font-size: 20px;
line-height: 1.5;
}

.features {
padding: 80px 20px;
text-align: center;
}

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

.features-container {
display: flex;
justify-content: center;
gap: 60px;
max-width: 1000px;
margin: 0 auto;
}

.feature {
flex: 1;
max-width: 250px;
}

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

.feature h3 {
font-size: 20px;
color: #1db954;
margin-bottom: 15px;
}

.feature p {
font-size: 16px;
line-height: 1.5;
}

.green-section {
background-color: #1db954;
color: white;
padding: 80px 40px;
position: relative;
}

.green-content {
display: flex;
justify-content: space-between;
align-items: center;
max-width: 1100px;
margin: 0 auto;
position: relative;
}

.text-content {
flex: 1;
max-width: 400px;
}

.text-content h2 {
font-size: 32px;
margin-bottom: 40px;
text-decoration: underline;
text-underline-offset: 10px;
}

.feature-item {
margin-bottom: 30px;
}

.feature-item h3 {
font-size: 20px;
margin-bottom: 10px;
}

.feature-item p {
font-size: 16px;
line-height: 1.5;
}

.image-content {
flex: 1;
text-align: center;
}

.spotify-app {
width: 300px;
height: auto;
}

.spotify-icon {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 100px;
height: 100px;
opacity: 0.2;
}

.navbar {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 64px;
background: #ffffff;
display: flex; /* ¡Falta esto! */
align-items: center;
justify-content: space-between;
padding: 0 24px;
border-bottom: 1px solid #ddd;
z-index: 1000;
}