Skip to content

Resolución LAB 4 #3556

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
117 changes: 110 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,119 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="Toda la Música. Encuentra toda tu música en Spotify" />
<meta keywords="Música, Canciones, Top-Chart, Top-40" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Spotify Clone</title>
<!-- don't forget to link your styles -->
<link rel="stylesheet" type="text/css" 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>
<img class="img" src="images/spotify-logo.png" alt="Spotify Logo" />
<nav>
<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>
</header>

<main>
<section class="block1">
<img class="img" src="images/landing.jpg" alt="Hands in the air" />
<div class="texto-superpuesto">
<h1>Music for everyone.</h1>
<p>
Spotify is now free on mobile, tablet and computer.<br />Listen to
the right music, wherever you are.
</p>
</div>
</section>

<section class="block2">
<h2>What’s on Spotify?</h2>
<article>
<table>
<thead>
<tr>
<th>
<img
class="img"
src="images/music-icon.png"
alt="Speaker-icon"
/>
</th>
<th>
<img
class="img"
src="images/high-quality-icon.png"
alt="High-quality-icon"
/>
</th>
<th>
<img
class="img"
src="images/devices-icon.png"
alt="Devices-icon"
/>
</th>
</tr>
</thead>
<tbody>
<tr>
<td><h3>Millions of Songs</h3></td>
<td><h3>HD Music</h3></td>
<td><h3>Stream Everywhere</h3></td>
</tr>
<tr class="align-row">
<td><p>There are millions of songs on Spotify</p></td>
<td><p>Listen to music as if you were listening live</p></td>
<td>
<p>Stream music on your smartphone, tablet or computer</p>
</td>
</tr>
</tbody>
</table>
</article>
</section>
<article class="green-back">
<div>
<h2>It’s as yeezy as Kanye West.</h2>
</div>
<section class="block3">
<div class="block3-text">
<h3>Search</h3>
<p>Know what you want to listen to? Just search and hit play.</p>
<h3>Browse</h3>
<p>
Check out the latest charts, brand new releases and great
playlists for right now.
</p>
<h3>Discover</h3>
<p>
Enjoy new music every Monday with your own personal playlist. Or
sit back and enjoy Radio.
</p>
</div>
<div class="block3-img-1">
<img
class="img"
src="images/spotify-app.jpg"
alt="Spotify-app-capture"
/>
</div>
<div class="block3-img-2">
<img
class="img"
src="images/spotify-icon-white.png"
alt="Logo-icon-white"
/>
</div>
</section>
</article>
</main>
</body>
</html>
1 change: 1 addition & 0 deletions lab-css-spotify-clone
Submodule lab-css-spotify-clone added at 764388
196 changes: 190 additions & 6 deletions styles/style.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,192 @@
/*
Colors:
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

body{
font-family: 'Circular', 'Gotham', 'Proxima Nova', 'Montserrat', sans-serif;
font-size: 1.5rem;
margin: 0;
padding: 0;
width: 100%; /* En lugar de max-width */
display: flex;
flex-direction: column;
}

header {
position: fixed;
display:flex;
top: 0; /* Se mantiene pegado arriba */
left: 0;
width: 100vw; /* Ocupa todo el ancho */
height: 10vh;
z-index: 1000; /* Asegura que quede sobre otros elementos */
background-color: white;
padding: 0;
margin: 0;
flex-direction: row;
flex-wrap: nowrap;
align-content: center;
justify-content: space-between;
align-items: center;
}

header img {
width: 10rem;
height: auto;
margin-right: auto;
padding: 0% 0% 0% 3%;
margin: 0;
}

nav ul {
display: flex; /* Coloca los elementos en línea */
gap: 2rem; /* Espacio entre cada palabra */
list-style: none; /* Quita los puntos de la lista */
padding: 0% 10% 0% 0%;
margin: 0; /* Elimina márgenes innecesarios */
justify-content: flex-end;
}

nav a {
text-decoration: none; /* Quita el subrayado de los enlaces */
color: black; /* Color de los enlaces */
font-size: 1.2rem; /* Tamaño del texto */
margin: auto 0;
}

nav a:hover {
color: blue; /* Cambia de color al pasar el mouse */
}

.block1 {
position: relative; /* Contenedor relativo para que el texto se posicione dentro de él */
width: 100vw;
height: 100vh;
}

.block1 img {
width: 100vw;
height: 100vh;
object-fit: cover; /* Ajusta la imagen sin deformarla */
}

.texto-superpuesto {
position: absolute; /* Se posiciona sobre la imagen */
top: 50%; /* Centra verticalmente */
left: 50%; /* Centra horizontalmente */
transform: translate(-50%, -50%); /* Ajuste perfecto al centro */
color: white; /* Color del texto para contraste */
text-align: center;
}

h1 {
font-size: 4rem;
font-weight: 700;
padding: 0;
margin-bottom: 5%;
}

.block2 {
position: relative;
display: flex;
flex-wrap: nowrap;
flex-direction: column;
align-content: center;
justify-content: center;
align-items: center;
}

h2 {
font-size: 2.5rem;
font-weight: 600;
text-decoration: underline;
padding: 0;
margin: 0;
}

.block2 article {
position: relative;
display: flex;
padding: 5%;
}

.block2 h2 {
text-decoration-color: #1DB954;
padding: 5% 0% 0% 0%;
}

.block2 table {
table-layout: fixed;
width: 90vw;
text-align: center;
}

.block2 table td, th {
width: 33vw;
padding: 0% 5% 0% 5%;
}

.block2 img {
width: 8vw;
}

.block2 h3 {
color: #1DB954;
}

.align-row td{
vertical-align: top;
text-align: center;
}

.green-back {
background-color: #1DB954;
margin: 3%;
padding: 5%;
}

.green-back h2 {
color: white;
}

.block3 {
position: relative;
display: flex;
flex-direction: row;
flex-wrap: nowrap;
align-items: center;
align-content: center;
justify-content: space-between;
}

.block3-text {
width: 27vw;
height: auto;
color: white;
}

.block3-text h3{
color: white;
padding-bottom: 5%;
margin: 0;
}

.block3-text p{
padding-bottom: 10%;
margin: 0;
}

.block3-img-1 img {
width: 23vw;
height: auto;
margin-left: 22rem;
}

.block3-img-2 img {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 10vw;
height: auto;
}

Text: 1A1A1A
Green: #00B172
White: #FFF

*/