Skip to content

Exerciser done by Ana Fdez Minguela. 16/06 ironhack BCN #3577

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 3 commits 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
112 changes: 96 additions & 16 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,18 +1,98 @@
<!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" />
<link href="https://fonts.cdnfonts.com/css/regencie" rel="stylesheet" />

<!-- don't forget to link your styles -->
</head>

<body>
<header>
<nav class="navbar">
<img class="spotify-logo" src="./images/spotify-logo.png" alt="spotify logo" />

<ul>
<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>

<section class="hero">
<h1>Music for everyone</h1>
<p>
Spotify is now free on mobile, tablet and computer. Listen to the
right music, wherever you are.
</p>
</section>
</header>
<main>
<section class="features">
<h2>What’s on Spotify?</h2>

<div class="features-container">
<div class="feature-div">
<img class="feature__img" src="./images/music-icon.png" alt="music" />
<h3>Millions of Songs</h3>
<p>There are millions of songs on Spotify</p>
</div>
<div class="feature-div">
<img class="feature__img" src="./images/high-quality-icon.png" alt="hd music" />
<h3>HD Music</h3>
<p>Listen to music as if you were listening live</p>
</div>
<div class="feature-div">
<img class="feature__img" src="./images/devices-icon.png" alt="Devices" />
<h3>Stream Everywhere</h3>
<p>Stream music on your smartphone, tablet or computer</p>
</div>
</div>
</section>
<section>



</section>
<section class="greener">
<div class="greener-text">
<h2>It’s as yeezy as Kanye West.</h2>
<article class="greener__article">
<h3>Search</h3>
<p>Know what you want to listen to? Just
search and hit play.</p>
</article>

<article class="greener__article">
<h3>Browse</h3>
<p>Check out the latest charts, brand new
releases and great playlists for right now.</p>
</article>

<article class="greener__article">
<h3>Discover</h3>
<p>Enjoy new music every
Monday with your own personal playlist. <br>Or sit back and enjoy Radio.</p>
</article>

</div>
<div class="greener__div">
<img class="greener-img" src="./images/spotify-app.jpg" alt="imgen de la app de spotify">
</div>


</section>




</main>
</body>

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

*/
:root {
--text: #1a1a1a;
--green: #00b172;
--white: #fff;
}

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: "regencie";
}

.navbar {
display: flex;
flex-direction: row;
justify-content: space-between;
position: sticky;
margin: 10px;
padding-left: 20px;
padding-right: 20px;
align-items: center;
}

.spotify-logo {
width: 145px;
}

.navbar ul {
display: flex;
flex-direction: row;
list-style: none;
gap: 20px;
justify-content: space-around;
}

a {
color: var(--text);
text-decoration: none;
text-decoration-color: black;
}

.hero {
background-image: url("../images/landing.jpg");
height: 505px;
background-position: center;
background-size: cover;
align-content: center;
text-align: center;
color: white;
padding-left: 90px;
padding-right: 90px;
}

.hero h1 {
font-size: 3rem;
margin-bottom: 20px;
}

.hero p {
font-size: 17px;
margin-left: 200px;
margin-right: 200px;
}

.features {
display: flex;
flex-direction: column;
justify-content: center;
}

.features h2 {
margin-top: 20px;
text-align: center;
text-decoration: underline 3px var(--green);
text-underline-position: below;
text-underline-offset: 10px;
}

.features-container {
display: flex;
flex-direction: row;
justify-content: center;
}

.feature-div {
display: flex;
flex-direction: column;
width: 280px;
justify-content: space-around;
}

.feature__img {
transform: scale(35%);
object-fit: scale-down;
}

.feature-div > h3 {
color: var(--green);
font-family: Arial, Helvetica, sans-serif;
text-align: center;
transform: translateY(-90px);
}

.feature-div:nth-child(even) > h3 {
margin-top: 40px;
}

.feature-div:last-child > h3 {
margin-top: 30px;
}

.feature-div:last-child p {
transform: translateY(-70px);
}

.feature-div p {
transform: translateY(-80px);
padding-left: 50px;
padding-right: 50px;
text-align: center;
}

.greener {
background-color: var(--green);
background-image: url(../images/spotify-icon-white.png);
background-repeat: no-repeat;
background-position: center;
background-size: 75px 75px;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
justify-content: space-around;
padding: 50px 50px;
align-items: center;
flex-wrap: nowrap;
}
.greener-text {
display: flex;
flex-direction: column;
justify-content: right;
color: var(--white);
gap: 30px;
}
.greener-text > h2 {
text-decoration: underline 3px var(--white);
text-underline-position: below;
text-underline-offset: 10px;
font-size: 25px;
margin-bottom: 20px;
}
.greener__article {
display: flex;
flex-direction: column;
row-gap: 20px;
gap:30px;
}

.greener__article h3 {
font-family: Arial, Helvetica, sans-serif;
}
.greener__article p {
width: 63%;
font-size: small;
}
.greener__div {
justify-content: right;
margin-left: 130px;
padding-top: 30px;
}
.greener-img {
width: 90%;
}