Skip to content

first commit #3544

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
96 changes: 90 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,97 @@
<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.
<header>
<div class="nav-bar">
<img src="./images/spotify-logo.png" alt="Spotify logo" />
<nav>
<ul class="nab-bar-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>
<div class="header-content">
<h1>Music for everyone.</h1>
<h4>Spotify is now free on mobile, tablet and computer.</h4>
<h4>Listen to the right music, wherever you are.</h4>
</div>
</header>

<main>
<section class="cards-section">
<div class="cards-title">
<h2>What’s on Spotify?</h2>
<div class="line"></div>
</div>

<div class="cards">
<article>
<img src="./images/music-icon.png" alt="sound 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="sound waves" />
<h3>HD Music</h3>
<p>Listen to music as if you were listening live</p>
</article>
<article>
<img src="./images/devices-icon.png" alt="devises icon" />
<h3>Stream Everywhere</h3>
<p>Stream music on your smartphone, tablet or computer</p>
</article>
</div>
</section>

<section class="content-section">
<div class="content-bottom">
<div class="flex-content-bottom">
<h3 class="h3-bottom">It’s as yeezy as Kanye West.</h3>
<ul class="list-bottom">
<li>
<h4 class="h4-bottom">Search</h4>
<p class="p-bottom">
Know what you want to listen to?<br />Just search and hit
play.
</p>
</li>
<li>
<h4 class="h4-bottom">Browse</h4>
<p class="p-bottom">
Check out the latest charts,<br />brand new releases and
great<br />playlists for right now.
</p>
</li>
<li>
<h4 class="h4-bottom">Discover</h4>
<p class="p-bottom">
Enjoy new music every Monday<br />with your own personal
playlist.<br />Or sit back and enjoy Radio.
</p>
</li>
</ul>
</div>

<div class="flex-content-bottom-img">
<img
src="./images/spotify-app.jpg"
alt="Kanye West's Spotify page"
/>
</div>
</div>

<img
class="spotify-logo"
src="./images/spotify-icon-white.png"
alt="Spotify logo"
/>
</section>
</main>
</body>
</html>
247 changes: 247 additions & 0 deletions styles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,250 @@ Green: #00B172
White: #FFF

*/

* {
box-sizing: border-box;
margin: 0;
padding: 0;
color: #1a1a1a;
font-family: sans-serif;
font-weight: 300;
letter-spacing: 0.5px;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
margin: 0;
padding: 0;
}

header {
background-image: url("../images/landing.jpg");
background-repeat: no-repeat;
background-size: cover;
background-position: center;
display: flex;
flex-direction: column;
height: 600px;
position: relative;
}

.nav-bar {
background-color: white;
height: 60px;
display: flex;
justify-content: space-between;
padding: 10px;
align-content: space-around;
flex-wrap: wrap;
/* max-height: 20px; */
}

.nav-bar nav {
display: flex;
align-content: space-around;
flex-wrap: wrap;
}

@media (max-width: 462px) {
.nab-bar-list {
margin-bottom: 3%;
}
}

.nav-bar img {
height: 100%;
width: auto;
margin: 5px;
margin-left: 20px;
}

.nab-bar-list {
list-style: none;
display: flex;
}

.nab-bar-list li a {
text-decoration: none;
margin: 5px;
}

.header-content {
display: flex;
flex-direction: column;
align-items: center;
position: absolute;
top: 35%;
align-self: center;
text-align: center;
}

.header-content h1,
.header-content h4 {
color: #fff;
}

.header-content h1 {
font-size: 3em;
margin: 20px;
}

.cards-section {
padding-left: 40px;
padding-right: 40px;
padding-bottom: 10px;
display: flex;
position: relative;
flex-direction: column;
}

.cards-title {
text-align: center;
position: relative;
}

.cards-title h2 {
font-size: 1.5em;
font-weight: 500;
margin-top: 30px;
}

.line {
position: absolute;
left: 50%;
margin-top: 5px;
border: 2px #00b172 solid;
width: 206px;
transform: translate(-50%, -50%);
}

.cards {
display: flex;
height: 100%;
flex-wrap: wrap;
}

.cards article {
flex: 1;
display: flex;
flex-direction: column;
margin: 30px;
text-align: center;
align-items: center;
}

.cards article img {
height: auto;
width: 50px;
margin: 5%;
}

.cards article h3 {
margin-top: 10px;
margin-bottom: 15px;
color: #00b172;
font-weight: 900;
}

.cards article p {
color: #1a1a1a;
font-weight: 100;
}

.content-bottom {
background-color: #00b172;
margin-left: 3%;
margin-right: 3%;
margin-bottom: 3%;
display: flex;
}

.flex-content-bottom {
flex: 1;
margin-left: 5%;
margin-top: 5%;
margin-bottom: 5%;
padding-left: 20px;
}

.flex-content-bottom-img {
flex: 1;
margin-right: 8%;
margin-top: 10%;
margin-bottom: 5%;
text-align: end;
}

.flex-content-bottom-img img {
width: 60%;
}

.flex-content-bottom h3,
p,
h4 {
color: #fff;
}

.h3-bottom {
font-size: 1.4em;
display: inline;
border-bottom: 2px white solid;
padding-bottom: 6px;
line-height: 1.6em;
font-weight: 500;
}

@media (min-width: 1000px) {
.h3-bottom {
font-size: 2.3em;
}
}

.list-bottom {
list-style: none;
display: flex;
flex-direction: column;
justify-content: space-around;
padding-top: 10%;
}

.h4-bottom {
font-size: 1.1rem;
font-weight: 600;
margin-bottom: 5%;
margin-top: 5%;
}

@media (min-width: 1000px) {
.h4-bottom {
font-size: 1.8em;
}
}

.p-bottom {
font-weight: 100;
font-size: 14px;
}
@media (min-width: 1000px) {
.p-bottom {
font-size: 1.2em;
}
}

.content-section {
position: relative;
}

.spotify-logo {
position: absolute;
width: 10%;
height: auto;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}