Skip to content
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
Binary file added estrella.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 37 additions & 0 deletions flex.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
* {
margin: 0;
padding: 0;
}
.main {
display: flex;
justify-content: center;
margin-top: 50px;
}
.box {
display: flex;
border: 1px solid #e9e9e9;
border-radius: 10px;
flex-wrap: wrap;
width: 540px;
}
.box img {
border-top-left-radius: 10px;
}
.box h1 {
height: 30px;
margin: 30px;
/* width: 270px; */
}
.box p {
display: flex;
margin-left: 30px;
color: #787878;
}
.rate {
display: flex;
border-top: 1px solid #e9e9e9;
height: 60px;
width: 600px;
align-items: center;
justify-content: space-around;
}
30 changes: 30 additions & 0 deletions flex.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Album</title>
<link rel="stylesheet" href="./flex.css">
</head>
<body>
<div class="main">
<div class="box">
<div>
<img width="200px" src="https://upload.wikimedia.org/wikipedia/commons/thumb/2/2c/Stone_Temple_Pilots_N%C2%BA_4.jpg/200px-Stone_Temple_Pilots_N%C2%BA_4.jpg" alt="portada">
</div>
<div>
<h1>Stone Temple Pilots</h1>
<p>No. 4 <br> (1999) </p>
</div>
<div class="rate">
<p>Rate this album</p>
<img width="20px" src="./estrella.png" alt="e">
<img width="20px" src="./estrella.png" alt="e">
<img width="20px" src="./estrella.png" alt="e">
<img width="20px" src="./estrella.png" alt="e">
<img width="20px" src="./estrella.png" alt="e">
</div>
</div>
</div>
</body>
</html>
84 changes: 84 additions & 0 deletions grid.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
* {
margin: 0;
padding: 0;
font-family: Arial, Helvetica, sans-serif;
}
.main {
max-width: 500px;
height: 200px;
margin: 50px auto 0 ;
border: 1px solid #e9e9e9;
border-top-right-radius: 10px;
border-top-left-radius: 10px;
}
.grid {
display: grid;
width: 500px;
height: 200px;
grid-template-columns: 200px 30px 270px;
grid-template-rows: 20px 60px 30px 90px;
}
.grid img{
grid-row: 1 / span 4;
border-top-left-radius: 10px;
}
.grid h1 {
grid-column: 3 / span 1;
grid-row: 2 ;
font-size: 25px;
}
.grid h2 {
grid-column: 3;
grid-row: 3;
font-size: 20px;
color: #929292;
}
.grid h3{
grid-column: 3;
grid-row: 4;
font-size: 15px;
color: #929292;
}
.rate {
max-width: 500px;
height: 100px;
margin: 0px auto ;
border: 1px solid #e9e9e9;
border-bottom-left-radius: 10px;
border-bottom-right-radius: 10px;
}
.rate p {
grid-column: 2 / span 6;
grid-row: 2;
margin: 0;
padding: 0;
color: #929292;
}
.rate__grid {
display: grid;
width: 500px;
height: 100px;
grid-template-columns: repeat(20, 1fr);
grid-row: 50% 50%;
align-content: center;
}
.uno {
grid-column: 14;
grid-row: 2;
}
.dos {
grid-column: 15;
grid-row: 2;
}
.tres {
grid-column: 16;
grid-row: 2;
}
.cuatro {
grid-column: 17;
grid-row: 2;
}
.cinco {
grid-column: 18;
grid-row: 2;
}
29 changes: 29 additions & 0 deletions grid.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="./grid.css">
</head>
<body>
<div class="main">
<div class="grid">
<img width="200px" src="https://upload.wikimedia.org/wikipedia/commons/thumb/2/2c/Stone_Temple_Pilots_N%C2%BA_4.jpg/200px-Stone_Temple_Pilots_N%C2%BA_4.jpg" alt="portada">
<h1>Stone Temple Pilots</h1>
<h2>No.4</h2>
<h3>(1996)</h3>
</div>
</div>
<div class="rate">
<div class="rate__grid">
<p>Rate this album</p>
<img class="uno" width="20px" src="./estrella.png" alt="1">
<img class="dos" width="20px" src="./estrella.png" alt="2">
<img class="tres" width="20px" src="./estrella.png" alt="3">
<img class="cuatro" width="20px" src="./estrella.png" alt="4">
<img class="cinco" width="20px" src="./estrella.png" alt="5">
</div>
</div>
</body>
</html>