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
44 changes: 42 additions & 2 deletions css/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,43 @@
h1 {
color: salmon;
* {
margin: 0;
box-sizing: border-box;
font-family: "Raleway", sans-serif;
color: #4b4c4e;
}

body {
background-color: rgb(236, 240, 236);

}

.card {
display: flex;
flex-direction: column;
flex-wrap: wrap;
align-items: center;
text-align: center;
}

.images {
display: flex;
}

.images section {
display: flex;
justify-content: center;
align-items: center;
padding: 20px;
}

.images p {
position: absolute;
color: white;
font-family: 'Roboto', sans-serif;
font-weight: 600;
font-size: 36px;
}

button {
padding: .5rem 5rem;
border: 1px solid rgb(196, 196, 196);
}
63 changes: 62 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,73 @@
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto&display=swap" rel="stylesheet">
<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>
<!-- First Card -->
<!-- First card -->
<div class="card">
<!-- first row -->
<section>
<h1>Meet Guidebooks</h1>
<p>Discover hundreds of local spots recommended by Airbnbn hosts</p>
</section>
<!-- second row -->
<div class="images">
<!-- first image -->
<section>
<img src="./img/san-francisco.jpg" alt="san francisco">
<p>San Francisco</p>
</section>
<!-- second image -->
<section>
<img src="./img/new-york.jpg" alt="new york">
<p>New York</p>
</section>
<!-- third image -->
<section>
<img src="./img/london.jpg" alt="london">
<p>London</p>
</section>
</div>
<!-- third row -->
<button>See All Guidebooks</button>
</div>



<div class="card">
<!-- first row -->
<section>
<h1>Just for the weekend</h1>
<p>Discover new inspiring places close to home</p>
</section>
<!-- second row -->
<div class="images">
<!-- first image -->
<section>
<img src="./img/napa.jpg" alt="napa">
<p>Napa</p>
</section>
<!-- second image -->
<section>
<img src="./img/sonoma.jpg" alt="sonoma">
<p>Sonoma</p>
</section>
<!-- third image -->
<section>
<img src="./img/san-francisco-2.jpg" alt="san fransisco">
<p>San Fransisco</p>
</section>
</div>
<!-- third row -->
<button>See All Destinations</button>
</div>
</body>
</html>