Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

done #3508

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

done #3508

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
69 changes: 61 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,69 @@
<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.
<nav>
<div class="logo"><img src="./images/spotify-logo.png" /></div>
<div class="nav-links">
<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>
</div>
</nav>

<div class="hero">
<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>

<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="text">
<h2>It’s as yeezy as Kanye West.</h2>
<p>
<strong>Search</strong> Know what you want to listen to?<br />
search and hit play.
</p>
<p>
<strong>Browse</strong> Check out the latest charts, brand-new
releases, and great playlists for right now.
</p>
<p>
<strong>Discover</strong> Enjoy new music every Monday with your own
personal playlists.<br />
Or sit back and enjoy Radio.
</p>
</div>
<img src="./images/spotify-app.jpg" alt="Spotify Player" />
</section>
</body>
</html>
161 changes: 161 additions & 0 deletions styles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,164 @@ Green: #00B172
White: #FFF

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

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

nav {
position: fixed;
top: 0;
left: 0;
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
background-color: #fff;
padding: 10px 20px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
z-index: 1000;
}

.logo img {
width: 170px;
margin: 5px 0px;
}

.nav-links ul {
display: flex;
list-style: none;
}

.nav-links ul li {
margin: 0 15px;
}

.nav-links ul li a {
text-decoration: none;
color: #1a1a1a;
}

.hero {
height: 100vh;
background: url("../images/landing.jpg") no-repeat center center/cover;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
color: white;
padding: 0 20px;
}

.hero h1 {
font-size: 5rem;
margin-bottom: 20px;
}

.hero p {
font-size: 1.5rem;
font-weight: 100;
line-height: 2rem;
}

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

.features h2 {
margin-bottom: 30px;
text-decoration: underline;
text-underline-offset: 10px;
text-decoration-color: #1db954;
font-size: 2rem;
}
.features img {
width: 150px;
height: auto;
object-fit: cover;
}

.features-container {
display: flex;
justify-content: center;
flex-wrap: wrap;
}

.feature {
flex: 1 1 22%;
max-width: 22%;
margin: 10px;
text-align: center;
}
.feature h2 {
border-bottom: 2px solid #1db954;
margin-bottom: 15px;
}

.feature h3 {
font-size: 1.5em;
color: #00b172;
margin-top: 15px;
margin-bottom: 15px;
}

.feature p {
font-size: 1.5em;
color: #1a1a1a;
padding: 0 40px;
}

.green-section {
background: url("../images/spotify-icon-white.png") no-repeat center
center/10%;
background-color: #00b172;
color: white;
padding: 50px 20px;
display: flex;
justify-content: center;
align-items: center;
gap: 20px;
margin: 0 30px;
}

.green-section .text {
flex: 1;
max-width: 50%;
}

.green-section .text h2 {
font-size: 2.5em;
margin-bottom: 70px;
text-decoration: underline;
text-underline-offset: 15px;
line-height: 1.3;
}

.green-section .text p {
font-size: 1.2em;
margin-bottom: 20px;
line-height: 1.6;
max-width: 400px;
}

.green-section .text strong {
display: block;
margin-bottom: 10px;
font-size: 1.3em;
font-weight: bold;
}

.green-section img {
flex: 1;
max-width: 300px;
height: auto;
border-radius: 10px;
}