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
47 changes: 47 additions & 0 deletions airbnb.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<!DOCTYPE html>
<html>
<head>
<title>Airbnb Emulation</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="head">
<div class="line1">Meet guidebooks</div>
<div class ="line2">Discover hundreds of local spots recommended by Airbnb hosts</div>
</div>
<div id="images1">
<div class="container">
<img src="img/san-francisco.jpg"/>
<div class="imgtext">San Francisco</div>
</div>
<div class="container">
<img src="img/new-york.jpg"/>
<div class="imgtext">New York</div>
</div>
<div class="container">
<img src="img/london.jpg"/>
<div class="imgtext">London</div>
</div>
</div>
<button type=button id="button1">See all guidebooks</button>
<div id="mid">
<div class="line1">Just for the weekend</div>
<div class="line2">Discover new, inspiring places close to home</div>
</div>
<div id="images2">
<div class="container">
<img src="img/napa.jpg"/>
<div class="imgtext">Napa</div>
</div>
<div class="container">
<img src="img/sonoma.jpg"/>
<div class="imgtext">Sonoma</div>
</div>
<div class="container">
<img src="img/san-francisco-2.jpg"/>
<div class="imgtext">San Francisco</div>
</div>
</div>
<button type="button" id="button2">See all destinations</button>
</body>
</html>
3 changes: 3 additions & 0 deletions flex-vs-grid.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Flexbox is used to evenly distribute items with relation to their parent element. You can also use to allow for wrapping.
Grid is used to divide the browser page into sections. You have as much freedom as you can get in two dimensions.

55 changes: 55 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans&display=swap');

body {
min-height: 100vh;
margin: 0 auto;
display: flex;
flex-direction: column;
justify-content: space-around;

font-family: 'Noto Sans', sans-serif;
background-color: #DCDCDC
}

.line1 {
text-align: center;
font-size: 18px;
}

.line2 {
text-align: center;
font-size: 10px;
}

.container {
position: relative;
text-align: center;
}

button {
width: 175px;
margin: 0 auto;
}

#images1, #images2 {
display: flex;
justify-content: space-between;
margin: 0 auto;
}

.imgtext {
position: absolute;;
top: 30%;
left: 30%;
color: white;
font-size: 20px;
font-style: bold;
}

img {
width: 175px;
height: 200px;
padding: 7px;
}