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
79 changes: 72 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,79 @@
<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.
<header class="position-fixed background-white">
<div class="display-flex aling-items-center justify-content-between padding-header">
<div class="spotify-logo background-settings"></div>
<nav >
<ul class="display-flex list-style-settings element-gap">
<li><a href="#" class="color-text">Premium</a></li>
<li><a href="#" class="color-text">Discover</a></li>
<li><a href="#" class="color-text">Help</a></li>
<li><a href="#" class="color-text">Download</a></li>
</ul>
</nav>
</div>
</header>

<section class="section-move">
<div class="landing-image background-settings display-flex aling-items-center flex-direction-column justify-content-center aling-items-center element-gap">
<h1 class="h1-font-size color-white">Music for everyone.</h1>
<h2 class="h2-font-size color-white font-weight-lighter text-align-center">Spotify is now free on mobile, tablet and computer. <br>Listen to the right music, wherever you are.</h2>
</div>
</section>

<section class="section-move margin-title-section-two">
<div>
<h3 class="margin-auto width-fit-content border-bottom-green padding-bottom-border border-font-size">What’s on Spotify?</h3>

<div class="display-flex justify-content-around aling-items-center text-align-center padding-section-two">
<div class="justify-items-center margin-right-elements-section-two width-boxes-section-two">
<div class="music-icon-image background-settings sizing-section-two"></div>
<p class="color-green font-weight-bold bold-font-size padding-section-two-text">Millions of Songs</p>
<p class="color-text text-font-size">There are millions of songs on Spotify</p>
</div>

<div class="justify-items-center margin-right-elements-section-two width-boxes-section-two">
<div class="high-quality-image background-settings sizing-section-two"></div>
<p class="color-green font-weight-bold bold-font-size padding-section-two-text">HD Music</p>
<p class="color-text text-font-size">Listen to music as if you were listening live</p>
</div>

<div class="justify-items-center width-boxes-section-two">
<div class="devices-icon-image background-settings sizing-section-two"></div>
<p class="color-green font-weight-bold bold-font-size padding-section-two-text">Stream Everywhere</p>
<p class="color-text text-font-size">Stream music on your smartphone, tablet or computer</p>
</div>
</div>
</div>
</section>

<section class="background-green padding-section-three margin-section-three section-move">
<div class="display-flex justify-content-between aling-items-center">
<div class="flex-direction-column height-title-section-three">
<div class="color-white font-weight-bold width-fit-content border-bottom-white padding-bottom-border border-font-size margin-bottom-section-three">It’s as yeezy as Kanye West.</div>
<div class="display-flex color-white aling-items-center justify-content-between width-spotify-white-box width-spotify">
<div class="display-flex flex-direction-column justify-content-between height-text-section-two">
<p class="font-weight-bold padding-text-section-three bold-font-size">Search</p>
<p class="text-font-size">Know what you want to listen to? <br>Just search and hit play.</p>
<p class="font-weight-bold padding-text-section-three bold-font-size">Browse</p>
<p class="text-font-size">Check out the latest charts, <br> brand new releases and great <br> playlists for right now.</p>
<p class="font-weight-bold padding-text-section-three bold-font-size">Discover</p>
<p class="text-font-size">Enjoy new music every Monday <br>with your own personal playlist. <br> Or sit back and enjoy Radio.</p>
</div>

<div class="spotify-white background-settings"></div>

</div>

</div>

<div class="spotify-app background-settings"></div>
</div>
</section>

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

*/

* {
box-sizing: border-box;
padding: 0;
margin: 0;
font-family: Arial, Helvetica, sans-serif;
}

/* List elements settings */

a {
text-decoration: none;
font-size: 1.5rem;
}

/* Color settings */

.color-text {
color: #1A1A1A;
}

.color-white {
color: #FFF;
}

.color-green {
color: #00B172;
}

.background-green {
background-color: #00B172;
}

.background-white {
background-color: #FFF;
width: 100%;
}

/* List style settings */

.list-style-settings {
list-style: none;
}

/* Border settings */

.border-bottom-green {
border-bottom: 3px solid #00B172;
}

.border-bottom-white {
border-bottom: 3px solid #FFF;
}

/* Font settings */

.h1-font-size {
font-size: 5rem;
}

.h2-font-size {
font-size: 2rem;
}

.border-font-size {
font-size: 2.25rem;
}

.bold-font-size {
font-size: 1.75rem;;
}

.text-font-size {
font-size: 1.5rem;;
}

.font-weight-lighter {
font-weight: lighter;
}

.font-weight-bold {
font-weight: bold;
}

/* Element positioning */

.display-flex {
display: flex;
}

.flex-direction-column {
flex-direction: column;
}

.position-fixed {
position: fixed;
}

.section-move {
position: relative;
top: 125px;
z-index: -1;
}

.aling-items-center {
align-items: center;
}

.justify-content-center {
justify-content: center;
}

.justify-content-between {
justify-content: space-between;
}

.justify-content-around {
justify-content: space-around;
}

.element-gap {
gap: 45px;
}

.justify-items-center {
justify-items: center;
}

.text-align-center {
text-align: center;
}

/* Images */

.spotify-logo {
background-image: url(/images/spotify-logo.png);
width: 250px;
height: 75px;
}

.landing-image {
background-image: url(/images/landing.jpg);
width: 100%;
height: 90vh;
}

.music-icon-image {
background-image: url(/images/music-icon.png);
}

.high-quality-image {
background-image: url(/images/high-quality-icon.png);
}

.devices-icon-image {
background-image: url(/images/devices-icon.png);
}

.sizing-section-two {
width: 75px;
height: 75px;
}

.spotify-white {
background-image: url(/images/spotify-icon-white.png);
width: 10vw;
height: 20vh;
}

.width-spotify-white-box {
width: 38vw;
}

.spotify-app {
background-image: url(/images/spotify-app.jpg);
width: 20vw;
height: 72vh;
}

.background-settings {
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}

/* Padding settings */

.padding-header {
padding: 25px 50px 25px 50px;
}

.padding-section-two {
padding: 100px 50px 50px 50px;
}

.padding-section-two-text {
padding: 20px;
}

.padding-section-three {
padding: 110px;
}

.padding-text-section-three {
padding: 25px 0;
}

.padding-bottom-border {
padding-bottom: 8px;
}

/* Margin settings */

.margin-auto {
margin: auto;
}

.margin-right-elements-section-two {
margin-right: 50px;
}

.margin-title-section-two {
margin: 40px;
}

.margin-section-three {
margin: 0 50px 50px 50px;
}

.margin-bottom-section-three {
margin-bottom: 30px;
}

/* Height settings */

.height-text-section-two {
height: 65vh;
}

.height-title-section-three {
height: 80vh;
}


/* Width settings */

.width-fit-content {
width: fit-content;
}

.width-boxes-section-two {
width: 300px;
}

.width-spotify {
width: 45vw;
}