-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path06-restaurant-ratings.html
More file actions
85 lines (73 loc) · 1.67 KB
/
06-restaurant-ratings.html
File metadata and controls
85 lines (73 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<!DOCTYPE html>
<html lang="en">
<head>
<title>Restaurant Listing</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="css/base.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css"
integrity="sha512-KfkfwYDsLkIlwQp6LFnl8zNdLGxu9YAA1QvwINks4PhcElQSvqcyVLLD9aMhXd13uQjoXtEKNosOWaZqXgel0g=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<style type="text/css">
section {
background-color: #32343c;
padding: 1.5rem;
max-width: 28rem;
margin: 6rem auto;
display: grid;
grid-template-columns: auto 1fr auto;
gap: 1.5rem 1rem;
}
.info {
align-self: center;
}
.rating {
justify-self: end;
}
img {
display: block;
width: 4rem;
height: 4rem;
object-fit: cover;
}
h3 {
line-height: 1.2;
}
span {
font-size: 0.8rem;
opacity: 0.7;
}
i.fa {
font-size: 0.6rem;
color: orange;
}
</style>
</head>
<body>
<section>
<!-- Restaurant 1 -->
<img src="images/hamburguer.jpeg" alt="Cheese & Grill Restaurant" />
<div class="info">
<h3>Cheese & Grill Restaurant</h3>
<span>St. Marks Street</span>
</div>
<div class="rating">
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
</div>
<!-- Restaurant 2 -->
<img src="images/pasta.jpeg" alt="Momo Magic" />
<div class="info">
<h3>Momo Magic</h3>
<span>MG Road</span>
</div>
<div class="rating">
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
</div>
</section>
</body>
</html>