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
105 changes: 95 additions & 10 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,99 @@
<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" />
<body>
<header class="hero"></header>
<nav class="navbar">
<a class="logo" 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>
<div class="hero-image">
</div>

<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">
<div class="container">
<h2>What’s on Spotify?</h2>

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

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

<article class="feature">
<img src="images/devices-icon.png" alt="" />
<h3>Stream Everywhere</h3>
<p>Stream music on your smartphone, tablet or computer</p>
</article>
</div>
</div>
</section>

<section class="find-info">
<h3>
It's as yeezy as Kanye West.
</h3>
<nav class="finder">


<div class="finder-list">
<li>Search</li>
<p>
Know what you want to listen to? <br>
Just search and hit play.
</p>
<li class="browse-section">
<div class="browse-text">
<h4>Browse</h4>
<p>
Check out the latest charts.<br>
brand new releases and<br>
great playlists for right now
</p>
</div>
<div class="image-grid">
<article class="image1">
<img src="images/spotify-icon-white.png" alt="Spotify Logo" />
</article>
</div>
<div class="image3">
<article class="image2">
<img src="images/spotify-app.jpg" alt="Ye Screenshot" />
</article>
</div>
</li>
<li>Discover</li>
<p>Enjoy new music every Monday <br> with your own personal playlist <br> Or sit back and enjoy Radio</p>
</ul>
</nav>
</section>



</body>
</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>
242 changes: 236 additions & 6 deletions styles/style.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,238 @@
/*
Colors:
.navbar {
display: flex;
align-items: center;
justify-content: space-between;
border: 1px solid green;
padding: 10px;
box-shadow: 0 0 0 3px #800080;
}

Text: 1A1A1A
Green: #00B172
White: #FFF
.navbar img {
width: 18%;
height: auto;
}
.navbar img:hover {
width: 30%;
}

*/
.nav-list {
list-style: none;
display: flex;
gap: 28px;
margin: 0;
padding: 8px 12px;
border: 1px solid green;
border-radius: 4px;
}

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

}
.nav-list a:hover {
color: green;
font-weight: bold;

}
.hero-image img {
width: 100%;
height: auto;
display: block;
border: none;

}
.hero-content {
background: url("../images/landing.jpg") no-repeat center/cover;
background-size: cover;
height: 50vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
color: white;
text-align: center;
position: relative;
font-size: 25px;
margin: 0;
box-shadow: 0 0 0 3px #800080;


}
.hero::before {
content: "";
position: absolute;
top: 0; left: 0;
width: 100%; height: 100%;



}

.hero-content {
position: relative;
z-index: 1; /* ensures text stays above overlay */
}
.hero-content h1 {
margin-bottom: 10px;
}
/* layout wrapper (optional) */
.container {
max-width: 1100px;
margin: 0 auto;
padding: 0 16px;
box-sizing: border-box;
}

/* section */
.features {
background: #fff;
padding: 48px 0 56px;
border: 3px solid red;

}

/* heading with subtle underline */
.features h2 {
text-align: center;
font-size: 28px;
margin: 0 0 28px;
position: relative;
}
.features h2::after {
content: "";
display: block;
width: 220px;
height: 2px;
background: #1db954;
margin: 10px auto 0;

}

/* the 3 cards */
.feature-grid {
display: flex;
gap: 16px;
/* display: grid;
grid-template-columns: repeat(3, minmax(220px, 1fr));
gap: 24px; */
border: 3px solid orange;
padding: 40px;
margin: 0 auto;
/* width: 100%;
overflow-x: scroll; */
}

.feature {
background: #fff;
border: 2px solid rgb(204, 204, 0);
padding: 24px 18px;
text-align: center;
width: 100%;

}

.feature img {
width: 56px;
height: auto;
display: block;
margin: 0 auto 12px;
}

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

.feature p {
margin: 0;
color: #444;
line-height: 1.35;
font-size: 14px;
}
.find-info {

/*margin-left: 70px*/
background-color: #1db954;
width: 100%;
margin:auto;
padding-top: 3%;
padding-bottom: 10%;
max-width: 95%;
/*position: relative;
padding: 420px;*/
}
.finder-list li {
display: flex;
margin-left: 50px;
color: white;
font-weight: bolder;
padding-top: 20px;
max-width: 50%;
border: none;

}
.finder-list p {
margin-left: 50px;
text-decoration:none;
color: white;
font-size: 14px;
max-width: 50%;
border: none;
}
h3{
display: inline-block;
margin-left: 50px;
border-bottom: 2px solid white;
padding-bottom: 5px;
color: white;
}
/* Layout for the row */
.browse-section {
display: flex;
align-items: center; /* center the logo with the text block */
justify-content: space-between;
margin-left: 50px; /* keep same left gutter */
}

/* Make the heading and paragraph stack and reset margins */
.browse-text {
flex: 1;
display: flex;
flex-direction: column;
}

.browse-section .browse-text h4 {
margin: 0 0 8px 0; /* no left offset */
}

.browse-section .browse-text p {
margin: 0; /* <-- removes the 50px left margin from .finder-list p */
max-width: none; /* <-- ignore the global 50% width if you set one */
color: white;
font-weight: 200;
}

/* Logo size and spacing */
.image1 img {
max-width: 80px;
height: auto;
margin-right: 40px;
}

.image3 img{
position: absolute;
right: 70px; /* adjust gap from the right edge */
/*top: 50%*/
transform: translateY(-55%);
width: 183px; /* or whatever size you want */
height: auto;
display: block;
margin-left: 25%;
padding-bottom: 10px;

}