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
64 changes: 62 additions & 2 deletions css/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,63 @@
h1 {
color: salmon;
* {
text-align: center;
font-family: Calibri, sans-serif;
margin: 0;
padding: 0;
}

body {
background-color: rgba(237, 239, 236, 1);
margin-top: 40px;
}

h1,
p {
color: rgba(86, 89, 92, 1);
}

.image-flex-container {
display: flex;
justify-content: center;
gap: 20px;
margin: 30px 0px;
}

.img-div {
position: relative;
display: flex;
justify-content: center;
align-items: center;
}

img {
width: 250px;
height: 280px;
object-fit: cover;
}

.img-div p {
position: absolute;
color: white;
font-size: 24px;
font-weight: bold;
}

button {
background-color: white;
color: rgba(90, 90, 90, 1);
width: 250px;
height: 40px;
font-size: 16px;
font-weight: bold;
border: 2px solid rgba(200, 200, 200, 1);
border-radius: 2px;
margin-bottom: 40px;
}

button:hover {
background-color: #eee;
}

button:active {
background-color: #ddd;
}
66 changes: 57 additions & 9 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,60 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="css/style.css">
<title>Hello Front-End</title>
</head>
<body>
<h1>Hello Front-End</h1>
</body>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<title>Hello Front-End</title>
</head>
<body>
<h1>Meet Guidebooks</h1>
<p>Discover hundreds of local spots recommended by Airbnb hosts</p>
<div class="image-flex-container">
<div class="img-div">
<img
src="img/san-francisco.jpg"
alt="Buildings in the hills of San Francisco."
/>
<p>San Francisco</p>
</div>
<div class="img-div">
<img
src="img/new-york.jpg"
alt="Spectator viewing the New York skyline from across the river."
/>
<p>New York</p>
</div>
<div class="img-div">
<img
src="img/london.jpg"
alt="London's Big Ben and Westminster from across the water."
/>
<p>London</p>
</div>
</div>
<button>See All Guidebooks</button>
<h1>Just for the weekend</h1>
<p>Discover new, inspiring places close to home.</p>
<div class="image-flex-container">
<div class="img-div">
<img src="img/napa.jpg" alt="Hot air balloons over a Napa vineyard." />
<p>Napa</p>
</div>
<div class="img-div">
<img
src="img/sonoma.jpg"
alt="A vineyard in Sonoma with rolling hills in the distance."
/>
<p>Sonoma</p>
</div>
<div class="img-div">
<img
src="img/san-francisco-2.jpg"
alt="A steep San Francisco hill surrounded by colorful buildings."
/>
<p>San Francisco</p>
</div>
</div>
<button>See All Destinations</button>
</body>
</html>