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
66 changes: 64 additions & 2 deletions css/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,65 @@
h1 {
color: salmon;

body {
width: 960px;
margin: auto;
background-color: rgb(238, 237, 237);
}
.header {
color: black;
font-size: 24px;
text-align:center;
margin: auto;
width: 65%;
padding-top: 10px;
}

.message {
width: 65%;
font-size: 12px;
color: rgb(77, 74, 74);
text-align:center;
margin: auto;
padding-bottom: 10px;
padding-top: 5px;
/* margin-top: 5px;
margin-bottom: 5px; */
}

.img-list-container {
display: inline-block;
position: relative;
width: 300px;
height: 300px;
}

.img-list-imgs {
display: block;
width: 280px;
height: 280px;
padding: 10px 10px;

}

.button {
width: 180px;
font-size: 12px;
text-align:center;
margin: 20px auto;
padding-top: 5px;
padding-bottom: 5px;
background-color: white;
}

.overlay {
position: absolute;
top: 40%;
bottom: 0;
left: 25%;
right: 0;
color: white;
font-weight: 900;
font-size: 24px;
line-height: 24px;
height: 24px;
width: 180px;
}
68 changes: 59 additions & 9 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,62 @@
<!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>
<div>
<h1 class="header">Meet Guidebooks</h1>

<p class="message">
Discover hundreds of local spots recommended by Airbnb hosts
</p>

<div class="img-list">
<div class="img-list-container">
<img
class="img-list-imgs"
src="img/san-francisco.jpg"
alt="San Francisco"
/>
<div class="overlay">San Francisco</div>
</div>
<div class="img-list-container">
<img class="img-list-imgs" src="img/new-york.jpg" alt="New York" />
<div class="overlay">New York</div>
</div>
<div class="img-list-container">
<img class="img-list-imgs" src="img/london.jpg" alt="" />
<div class="overlay">London</div>
</div>
</div>

<p class="button">See All Guidebooks</p>
</div>

<div>
<h1 class="header">Just for the weekend</h1>

<p class="message">Discover new, inspiring places close to home.</p>

<div class="img-list">
<div class="img-list-container">
<img class="img-list-imgs" src="img/napa.jpg" alt="Napa" />
<div class="overlay">Napa</div>
</div>
<div class="img-list-container">
<img class="img-list-imgs" src="img/sonoma.jpg" alt="Sonoma" />
<div class="overlay">Sonoma</div>
</div>
<div class="img-list-container">
<img class="img-list-imgs" src="img/san-francisco-2.jpg" alt="" />
<div class="overlay">San Francisco</div>
</div>
</div>

<p class="button">See All Destinations</p>
</div>
</body>
</html>