Skip to content

Lab Finalizado #3582

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 5 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
97 changes: 90 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,97 @@
<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>
<div class="header">
<div class="logo">
<a href="#"
><img src="./images/spotify-logo.png" alt="Spotify Logo"
/></a>
</div>
<nav class="nav">
<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">Dowload</a></li>
</ul>
</nav>
</div>
</header>

<section class="hero">
<div>
<h1>Music for everyone.</h1>
<h2>
Spotify is now free on mobile, tablet and computer. <br />
Listen to the right music, wherever you are.
</h2>
</div>
</section>

<main>
<section class="whatsOnSpotify">
<h2>What's on Spotify?</h2>
<div class="insideSpotify">
<div>
<img src="./images/music-icon.png" alt="Music icon" />
<h3>Millions of Songs</h3>
<p>There are millions of songs on Spotify</p>
</div>
<div>
<img src="./images/high-quality-icon.png" alt="HD Music icon" />
<h3>HD Music</h3>
<p>Listen to music as if you were listening live</p>
</div>
<div>
<img src="./images/devices-icon.png" alt="Devices icon" />
<h3>Stream Everywhere</h3>
<p>Stream music on your smartphone, tablet or computer</p>
</div>
</div>
</section>

<section class="greenSection">
<!-- La sección con fondo verde -->
<h2>It's as yeezy as Kanye West.</h2>
<div class="greenLayout">
<article>
<div>
<h4>Search</h4>
<p>Know what you want to listen to? Just search and hit play.</p>
</div>
<div>
<h4>Browse</h4>
<p>
Check out the latest charts, brand new releases and great
playlists for right now.
</p>
</div>
<div>
<h4>Discover</h4>
<p>
Enjoy new music every Monday with your own personal laylist. Or
sit back and enjoy Radio.
</p>
</div>
</article>

<article>
<div class="whiteLogo">
<img src="./images/spotify-icon-white.png" alt="Spotify Logo" />
</div>
</article>

<article>
<div class="screenshot">
<img src="./images/spotify-app.jpg" alt="Spotify app" />
</div>
</article>
</div>
</section>
</main>
</body>
</html>
184 changes: 178 additions & 6 deletions styles/style.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,180 @@
/*
Colors:
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

Text: 1A1A1A
Green: #00B172
White: #FFF
:root {
--text-color: #1a1a1a;
--green-color: #00b172;
--white-color: #fff;
--font-main: Roboto;
}

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

html,
body {
width: 100%;
font-family: var(--font-main);
background-color: var(--white-color);
color: var(--text-color);
line-height: 1.6;
scroll-behavior: smooth;
}

.header {
display: flex;
align-content: center;
flex-wrap: nowrap;
justify-content: space-between;
align-items: center;
margin: 1rem;
margin-inline: 2rem;
}

.logo img {
width: 200px;
}

.nav ul {
display: flex;
list-style: none;
}

.nav a {
color: var(--text-color);
text-decoration: none;
font-weight: 300;
font-size: 1.5rem;
margin-left: 2rem;
padding: 1rem;
}

.nav a:hover {
background-color: var(--green-color);
}

.hero {
background-image: url(/images/landing.jpg);
background-repeat: no-repeat;
height: 800px;
background-position: center;
background-size: cover;
color: var(--white-color);
display: flex;
flex-direction: column;
flex-wrap: nowrap;
align-content: center;
justify-content: center;
align-items: center;
}

.hero h1 {
font-size: 5rem;
font-weight: 450;
text-align: center;
}

.hero h2 {
font-size: 1.75rem;
font-weight: 250;
text-align: center;
}

.whatsOnSpotify {
margin-top: 2rem;
margin-bottom: 3rem;
}

.whatsOnSpotify h2 {
font-size: 2.25rem;
text-align: center;
font-weight: 500;
text-decoration-line: underline;
text-decoration-color: var(--green-color);
text-underline-offset: 15px;
margin-bottom: 4rem;
}

.insideSpotify div {
display: flex;
flex-direction: column;
flex-wrap: nowrap;
align-content: center;
justify-content: flex-start;
align-items: center;
width: 300px;
min-height: 300px;
padding-top: 1rem;
box-sizing: border-box;
}

.insideSpotify {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
align-content: center;
justify-content: space-evenly;
align-items: center;
}

.insideSpotify img {
width: 100px;
height: 85px;
margin-bottom: 1rem;
}

.insideSpotify h3 {
margin: 0;
padding-bottom: 0.5rem;
color: var(--green-color);
font-size: 1.75rem;
text-align: center;
}

.insideSpotify p {
text-align: center;
font-size: 1.5rem;
font-weight: 250;
}

.greenSection {
background-color: var(--green-color);
color: var(--white-color);
padding: 4.5rem;
margin: 2rem;
}

.greenSection h2 {
font-size: 2.25rem;
text-align: left;
font-weight: 500;
text-decoration-line: underline;
text-underline-offset: 15px;
}

.greenLayout {
display: grid;
grid-template-columns: 2fr 1fr 2fr;
justify-items: center;
align-items: center;
}

.greenLayout h4 {
font-size: 1.75rem;
margin-block: 1rem;
}

.greenLayout p {
font-size: 1.5rem;
font-weight: lighter;
}

.whiteLogo img {
width: 120px;
}

.screenshot img {
width: 300px;
}