Skip to content

(Kateryna Soloviova) Lab CSS Spotify clone #3579

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
107 changes: 91 additions & 16 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,18 +1,93 @@
<!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" />
<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>
<header>
<nav>
<img src="./images/spotify-logo.png" alt="Spotify Logo">
<span class="space"></span>

<ul>
<li><a href="#premium">Premium</a> </li>
<li><a href="#discover">Discover</a></li>
<li><a href="#help">Help</a></li>
<li><a href="#download">Download</a></li>
</ul>
</nav>
</header>

<section class="top-image">
<h1> Music for everyone.</h1>
<div>
Spotify is now free on mobile, tablet and computer. Listen to the
right music, wherever you are.
</div>
<img src="./images/landing.jpg" alt="Landing Image">
</section>

<section class="spotify-features">
<h3 class="text-title">What’s on Spotify?</h3>
<div id="features-list">
<article>
<img src="./images/music-icon.png" alt="Music Icon">
<h4>Millions of Songs</h4>
<p>There are millions of songs on Spotify</p>
</article>

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

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

<section class="kanye-west">
<div>
<h3 class="text-title">It’s as yeezy as Kanye West.</h3>
<div>
<div class="two-colomns">
<ul>
<li>
<p>Search</p>
<div>Know what you want to listen to? Just search and hit play.</div>
</li>

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

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

<img id="small-logo" src="./images/spotify-icon-white.png" alt="Spotify Icon">
</div>
</div>
</div>
<div>
<img id="app-screenshot" src="./images/spotify-app.jpg" alt="Spotify App Icon">
</div>
</section>

</body>

</html>
160 changes: 160 additions & 0 deletions styles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,163 @@ Green: #00B172
White: #FFF

*/

body {
font-family: system-ui, sans-serif;
color: #1A1A1A;
}

/*
Header
*/
header {
max-height: 40px;
}

nav {
display: flex;
justify-content: stretch;
}

nav ul {
display: flex;
justify-content: space-evenly;
width: 100px;
list-style: none;
}

nav a {
color: #1A1A1A;
text-decoration: none;
}

li {
padding-right: 10px;
}

nav img {
max-height: 30px;
}

.space {
width: 500px;
}

/*
Top image
*/

.top-image {
position: relative;
text-align: center;
color: #FFF;
margin-left: 20px;
margin-bottom: 40px;
}


.top-image h1 {
position: absolute;
top: 30%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 30pt;
}

.top-image div {
position: absolute;
top: 55%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 12pt;
}

.top-image img {
height: 400px;
width: 1000px;
object-fit: cover;
}

/*
******
*/

.text-title {
font-weight: bold;
text-decoration: underline #00B172 2pt;
text-underline-offset: 10px;
}

.spotify-features {
text-align: center;

}

article img {
height: 60px;

}

article h4 {
font-weight: bold;
color: #00B172;
}

article p {
font-size: smaller;
color: grey;
padding-right: 25px;
padding-left: 25px;
}

#features-list {
display: flex;
padding-top: 30px;
}

.kanye-west {
background-color: #00B172;
color: #FFF;
padding-top: 25px;
padding-left: 35px;
margin-top: 40px;
display: flex;
}

.kanye-west h3 {
text-decoration: underline #FFF 2pt;
}


.kanye-west p {
font-weight: bold;
}

.kanye-west ul {
list-style: none;
padding-left: 0px;
padding-right: 40px;
}

#small-logo {
height: 70px;
margin-right: 60px;
margin-top: 70px;
margin-left: 60px;
}

.two-colomns {
display: flex;
}

#app-screenshot {
width: 180px;
margin-right: 50px;
margin-top: 30px;
margin-bottom: 5px;
}

.kanye-west li div {
font-size: 10pt;
font-weight: lighter;
}