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

solve lab #3384

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
72 changes: 65 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,72 @@
<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.
<section id="landing">
<header>
<img src="images/spotify-logo.png" alt="spotify-logo" />
<nav>
<ul>
<li>Premium</li>
<li>Discover</li>
<li>Help</li>
<li>Download</li>
</ul>
</nav>
</header>
<div id="main-section">
<h1>Music for everyone.</h1>
<h3>
Spotify is now free on mobile, tablet and computer.<br />
Listen to the right music, wherever you are.
</h3>
</div>
</section>
<section id="product-details">
<h2>What's on Spotify?</h2>
<div class="blocks">
<article>
<img src="images/music-icon.png" alt="music-icon" />
<h3>Millions of Songs</h3>
<p>There are millions of songs on Spotify</p>
</article>
<article>
<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>
</article>
<article>
<img src="images/devices-icon.png" alt="devices-icon" />
<h3>Stream Everywhere</h3>
<p>Stream music on your smartphone, tablet or computer</p>
</article>
</div>
</section>
<section id="kanye">
<div>
<h2>It’s as yeezy as Kanye West.</h2>
<article>
<h3>Search</h3>
<p>Know what you want to listen to? Just search and hit play.</p>
</article>
<article>
<h3>Browse</h3>
<p>
Check out the latest charts, brand new releases and great playlists
for right now.
</p>
</article>
<article>
<h3>Discover</h3>
<p>
Enjoy new music every Monday with your own personal playlist. Or sit
back and enjoy Radio.
</p>
</article>
</div>
<img src="images/spotify-app.jpg" alt="spotify-app" />
</section>
</body>
</html>
150 changes: 149 additions & 1 deletion styles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,153 @@ Colors:
Text: 1A1A1A
Green: #00B172
White: #FFF

*/

html,
body {
padding: 0;
margin: 0;
font-family: arial;
font-size: 16px;
color: #1a1a1a;
}

/* Header */
header {
background-color: #fff;
color: #1a1a1a;
display: flex;
justify-content: space-between;
align-items: center;
padding: 1em 2em;
height: 10vh;
position: fixed;
min-width: 100%;
}

header img {
height: 70px;
}

header ul {
list-style: none;
display: flex;
}

header li {
margin-left: 1em;
font-size: 1.5em;
}

#landing {
min-height: 100vh;
background-image: url("../images/landing.jpg");
background-repeat: no-repeat;
background-position: 0 100;
background-size: cover;
display: flex;
flex-direction: column;
}

#main-section {
height: 90vh;
display: flex;
color: #fff;
justify-content: center;
flex-direction: column;
align-items: center;
align-content: center;
min-height: auto;
}

h1 {
font-size: 5em;
text-align: center;
margin-bottom: 1.5rem;
padding-bottom: 0;
}

h2 {
font-size: 2.5em;
}

h3 {
font-size: 2em;
text-align: center;
}

#product-details {
min-height: 60vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}

#product-details img {
max-height: 5em;
}

#product-details h2 {
text-decoration: underline;
text-decoration-color: #00b172;
text-underline-offset: 0.5em;
}

.blocks {
display: flex;
flex-direction: row;
justify-content: space-around;
min-width: 100%;
padding: 2em 0;
}

#product-details article {
display: flex;
flex-direction: column;
align-items: center;
padding: 1em;
}

#product-details h3 {
color: #00b172;
margin: 0.5em 0;
}

#product-details p {
font-size: 1.2em;
margin: 0.5em 0;
}

#kanye {
min-height: 80vh;
display: flex;
justify-content: space-between;
align-items: center;
padding: 4em;
background-color: #00b172;
color: white;
background-image: url("../images/spotify-icon-white.png");
background-repeat: no-repeat;
background-size: 8em;
background-position: center;
}

#kanye img {
max-height: 70vh;
}

#kanye h2 {
text-decoration: underline;
text-decoration-color: white;
text-underline-offset: 0.5em;
}

#kanye h3 {
text-align: left;
}

#kanye p {
max-width: 50%;
font-size: 1.5em;
}