Skip to content
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

[wdptsep24es] David Rojas LAB | CSS Spotify clone #3468

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
83 changes: 77 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,85 @@
<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" type="text/css" href="styles/style.css">
<!-- 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.
<div class="header">
<section>
<img src="images/spotify-logo.png" alt="spotify-logo" class="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>
</section>

<div class="container">
<img src="images/landing.jpg" alt="landing" class="landing" />
<div class="texto-centrado">
<h1>Music for everyone.</h1>
<p>Spotify is now free on mobile, tablet and computer.</p>
<p>Listen to the right music, wherever you are.</p>
</div>
</div>
</div>

<div class="container2">
<h1>What’s on Spotify?</h1>
<section>
<div>
<img src="images/music-icon.png" alt="music-icon">
<h2>Millions of Songs</h2>
<p>There are millions of songs on Spotify</p>
</div>

<div>
<img src="images/high-quality-icon.png" alt="high-quality-icon">
<h2>HD Music</h2>
<p>Listen to music as if you were listening live</p>
</div>

<div>
<img src="images/devices-icon.png" alt="devices-icon">
<h2>Stream Everywhere</h2>
<p>Stream music on your smartphone, tablet or computer</p>
</div>
</section>
</div>

<div class="container3">
<h1>It’s as yeezy as Kanye West.</h1>
<section>
<div class="subContainer3">
<div>
<h2>Search</h2>
<p>Know what you want to listen to? Just search and hit play.</p>
</div>

<div>
<h2>Browse</h2>
<p>Check out the latest charts, brand new releases and great playlists for right now.</p>
</div>

<div>
<h2>Discover</h2>
<p>Enjoy new music every Monday with your own personal playlist. Or sit back and enjoy Radio.</p>
</div>
</div>

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

<div class="subContainer3_3">
<img src="images/spotify-app.jpg" alt="spotify-app" class="rightImage">
</div>
</section>
</div>

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

*/

.header {
background-color: transparent; /* Color de fondo del header */
width: 100%; /* Establece la anchura máxima del header */
max-width: 100%; /* Evita que el header se desborde */
margin: 0 auto; /* Centra el header horizontalmente */
padding: 20px; /* Agrega un padding para separar el contenido */
box-sizing: border-box; /* Incluye el padding en la anchura total */
}

.header section {
display: flex; /* Establecemos un layout flexible */
justify-content: space-between; /* Distribuimos los elementos en el eje horizontal */
align-items: center; /* Centramos los elementos en el eje vertical */
margin-bottom: 20px; /* Espacio entre la sección y la imagen */
}

.logo {
width: 120px; /* Ancho del logotipo */
height: 40px; /* Alto del logotipo */
margin-right: 20px; /* Espacio entre el logotipo y la navegación */
}

nav ul {
list-style: none; /* Quitamos los puntos de la lista */
margin: 0; /* Quitamos el margen de la lista */
padding: 0; /* Quitamos el padding de la lista */
display: flex; /* Establecemos un layout flexible para la lista */
}

nav li {
margin-right: 20px; /* Espacio entre los elementos de la lista */
}

nav a {
color: #1A1A1A; /* Color del texto de los enlaces */
text-decoration: none; /* Quitamos la decoración de los enlaces */
}

nav a:hover {
color: #1A1A1A; /* Color del texto de los enlaces al pasar el mouse */
}

.landing {
width: 100%; /* Ancho de la imagen */
height: 600px; /* Alto de la imagen */
object-fit: cover; /* Ajustamos la imagen al tamaño del contenedor */
margin-top: 20px; /* Espacio entre la sección y la imagen */
}

.container {
position: relative;
width: 100%;
max-width: 100%;
margin: 0 auto;
box-sizing: border-box;
height: 100vh; /* ajusta el alto según sea necesario */
}

.landing {
width: 100%;
height: auto;
object-fit: cover;
}

.texto-centrado {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
color: #fff; /* ajusta el color según sea necesario */
}

.texto-centrado h1 {
font-size: 72px; /* Aumenta el tamaño del título */
margin-bottom: 10px; /* Reduce el espacio entre el título y el párrafo */
}

.texto-centrado p {
font-size: 20px;
margin-bottom: 1px; /* Reduce el espacio entre párrafos */
}

.container2 {
display: flex;
flex-direction: column;
align-items: center;
margin-top: 260px;
flex-wrap: wrap;
justify-content: space-between;
}

.container2 section {
display: flex; /* Establecemos un layout flexible */
justify-content: space-between; /* Distribuimos los elementos en el eje horizontal */
align-items: center; /* Centramos los elementos en el eje vertical */
margin-bottom: 20px; /* Espacio entre la sección y la imagen */
}

.container2 img {
width: 125px;
}

.container2 div {
margin-left: 165px;
margin-right: 150px;
display: flex; /* Establece un layout flexible */
flex-direction: column; /* Establece la dirección de la flexbox como columna */
justify-content: center; /* Centra el contenido horizontalmente */
align-items: center; /* Centra el contenido verticalmente */
text-align: center; /* Centra el texto horizontalmente */
}

.container2 h1 {
font-size: 42px; /* Aumenta el tamaño del título */
margin-bottom: 60px; /* Reduce el espacio entre el título y el párrafo */
text-decoration: underline; /* Subraya el título */
text-decoration-color: #00B172; /* Establece el color de la subraya */
}

.container2 h2 {
color: #00B172;
}

.container2 p {
font-size: 20px;
}

.container3 {
background-color: #00B172; /* fondo de color #00B172 */
color: #FFFFFF; /* texto en letras blancas */
}

.container3 h1 {
border-bottom: 3px solid #FFFFFF; /* línea blanca debajo del h1 */
max-width: 33%;
margin-left: 5%;
padding-top: 5%;
}

.whiteLogo {
width: 120px; /* Ancho del logotipo */
height: 120px; /* Alto del logotipo */
}

.container3 section {
display: flex; /* Establecemos un layout flexible */
justify-content: space-between; /* Distribuimos los elementos en el eje horizontal */
align-items: center; /* Centramos los elementos en el eje vertical */
margin-bottom: 20px; /* Espacio entre la sección y la imagen */
}

.rightImage {
width: 500px; /* Ancho de la img */
height: 800px; /* Alto de la img */
}

.subContainer3 {
margin-right: 5%;
margin-left: 5%;
}

.subContainer3_2 {
margin-right: 5%;
}

.subContainer3_3 {
margin-right: 5%;
margin-bottom: 5%;
}