Skip to content

lab-3-1-2 done #3583

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
78 changes: 71 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,78 @@
<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="header">
<img class="logo-img" src="images/spotify-logo.png" alt="logo spotify" />
<nav class="navbar">
<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">Download</a></li>
</ul>
</nav>
</header>
<main>
<section id="hero" class="hero">
<h2>Music for everyone.</h2>
<p class="p1">Spotify is now free on mobile, tablet and computer.</p>
<p class="p2">Listen to the right music, wherever you are.</p>
</section>
<section id="content" class="content">
<h3>What’s on Spotify?</h3>
<div class="content-box">
<div class="part1">
<img src="images/music-icon.png" alt="icono musica" />
<h4>Millions of Songs</h4>
<p>There are millions of songs on Spotify</p>
</div>
<div class="part2">
<img src="images/high-quality-icon.png" alt="imagen hifi" />
<h4>HD Music</h4>
<p>Listen to music as if you were listening live</p>
</div>
<div class="part3">
<img src="images/devices-icon.png" alt="imagenes moviles" />
<h4>Stream Everywhere</h4>
<p>Stream music on your smartphone, tablet or computer</p>
</div>
</div>
</section>
<section class="container">
<div class="grid">
<div class="item1">It’s as yeezy as Kanye West.</div>
<div class="item2">
<h5>Search</h5>
<p>Know what you want to listen to? Just search and hit play.</p>
</div>
<div class="item3">
<h5>Browse</h5>
<p>
Check out the latest charts, brand new releases and great
playlists for right now.
</p>
</div>
<div class="item4">
<h5>Discover</h5>
<p>
Enjoy new music every Monday with your own personal playlist. Or
sit back and enjoy Radio.
</p>
</div>
<div class="item5">
<img
src="images/spotify-icon-white.png"
alt="imagen icono spotify"
/>
</div>
<div class="item6">
<img src="images/spotify-app.jpg" alt="imagen app spotify" />
</div>
</div>
</section>
</main>
</body>
</html>
199 changes: 193 additions & 6 deletions styles/style.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,195 @@
/*
Colors:
:root {
--text-color: #1A1A1A;
--bg4-color: #00B172;
--bg3-color: #FFF;
}

Text: 1A1A1A
Green: #00B172
White: #FFF
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

*/
header {
position: fixed;
display: flex;
flex-direction: row;
padding: 10px;
width: 100%;
background-color: white;
z-index: 999;
}

.logo-img {
width: 200px;
margin-left: 20px;
}

.navbar {
align-items: center;
margin-left: auto;
line-height: 3;
}

.navbar ul {
display: flex;
flex-direction: row;
gap: 30px;
}

li {
list-style-type: none;
}

.navbar a {
color: var(--text-color);
font-size: 1.7rem;
text-decoration: none;
}

.hero {
width: 100%;
background-image: url("../images/landing.jpg");
background-size: cover;
background-repeat: no-repeat;
background-position: center;
aspect-ratio: 3 / 2;
position: relative;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
color: white;
}

.hero h2 {
font-size: 5rem;
margin-bottom: 20px;
transform: translateY(-20px);
}

.hero .p1,
.hero .p2 {
font-family: system-ui;
font-size: 2rem;
font-weight: 200;
}

.content img {
width: 150px;
height: auto;
display: block;
margin: 0 auto 10px;
margin-bottom: 20px;
}

.content .part2 img {
height: 125px;
}

.content > h3 {
text-align: center;
padding: 30px;
color: var(--text-color);
text-decoration: underline;
font-size: 2.5rem;
margin-bottom: 30px;
}

.content-box {
justify-content: center;
align-items: stretch;
display: flex;
flex-direction: row;
margin-bottom: 50px;
}

.content-box > div {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
}

.content-box h4 {
font-size: 2rem;
margin-bottom: 10px;
color: rgb(22, 189, 130);
}

.content-box p {
max-width: 250px;
text-align: center;
font-size: 1.6rem;
min-height: 60px;
}

.container {
background-color: var(--bg4-color);
height: 850px;
margin-left: 30px;
margin-right: 30px;
}

.grid {
display: grid;
grid-template-columns: 1fr, 1fr, 1fr;
grid-template-areas:
"item1 item1 item6"
"item2 item5 item6"
"item3 item5 item6"
"item4 item5 item6";
/* align-items: center;
text-align: center; */
gap: 20px;
}

.item1 { grid-area: item1;
margin-top: 20px;
text-decoration: underline;
color: white;
transform: translateY(50px);
font-size: 2.5rem;
margin-left: 150px;
}
.item2 { grid-area: item2;
margin-top: 70px;
color: white;
margin-left: 150px;
max-width: 200px;
}

.item3 { grid-area: item3;
color: white;
margin-left: 150px;
max-width: 200px;
}
.item4 { grid-area: item4;
color: white;
margin-left: 150px;
max-width: 200px;
}
.item5 { grid-area: item5;
align-content: center;
}
.item6 { grid-area: item6; }

.grid h5 {
font-size: 29px;
margin-top: 40px;
margin-bottom: 30px;
}

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

.item5 img {
height: 150px;
}

.item6 img {
height: 650px;
transform: translateY(150px);
}