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
109 changes: 108 additions & 1 deletion css/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,110 @@
h1 {
color: salmon;
color: #454545;
font-weight: 500;
font-size: 25px;
}
h4 {
color: #454545;
font-weight: 300;
font-size: 15px;
padding: 0px 0px 10px 0px;
}
body {
background-color: #ebf0ec;
font-family: 'Roboto', sans-serif;
margin: 0 auto;
text-align: center;
width: 50%;
max-width: 900px;
padding: 40px 0px 0px 0px;
}
.first-row .second-row {
display: flex;
flex-direction: row;
justify-content: space-around;
}
#sf {
background-image: url(/img/san-francisco.jpg);
height: 200px;
width: 200px;
color: white;
position: relative;
text-align: center;
font-weight: 500;
font-size: 25px;
}
#ny {
background-image: url(/img/new-york.jpg);
height: 200px;
width: 200px;
color: white;
position: relative;
text-align: center;
font-weight: 500;
font-size: 25px;
}
#lon {
background-image: url(/img/london.jpg);
height: 200px;
width: 200px;
color: white;
position: relative;
text-align: center;
font-weight: 500;
font-size: 25px;
}

.box1 {
font-weight: 400;
font-size: 12px;
color: #454545;
border: 1px solid darkgrey;
background-color: white;
margin: 1px 2px 3px 4px;
width: 300px;
margin: 0 auto;
padding: 5px 8px;
}

#napa {
background-image: url(/img/napa.jpg);
height: 200px;
width: 200px;
color: white;
position: relative;
text-align: center;
font-weight: 500;
font-size: 25px;
}
#sono {
background-image: url(/img/sonoma.jpg);
height: 200px;
width: 200px;
color: white;
position: relative;
text-align: center;
font-weight: 500;
font-size: 25px;
}
#sf2 {
background-image: url(/img/san-francisco-2.jpg);
height: 200px;
width: 200px;
color: white;
position: relative;
text-align: center;
font-weight: 500;
font-size: 25px;
}

.box2 {
font-weight: 400;
color: #454545;
font-size: 12px;
border: 1px solid darkgrey;
background-color: white;
margin: 1px 2px 3px 4px;
width: 300px;
margin: 0 auto;
padding: 5px 8px;
}
5 changes: 5 additions & 0 deletions flex-vs-grid.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Prompt: Write a paragraph or two comparing/contrasting flexbox and grid in this file. What did you learn about the two? How are they the same? How are they different?

Flexbox and grid are two modern CSS tools that both provide a solution to one of the challenges with layout (specifically alignment) consistency across varying browsers. They make website layout much more versatile and easier to write.

Beyond their similarities, flexbox is single-axis–oriented meaning it is useful for one-dimensional layout whereas grid, hence its namesake, supports two-dimension layouts. With grid, you're able to divide screens in rows and columns allowing for more sleek, versailte, and modern website layouts.
46 changes: 44 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,51 @@
<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>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400&display=swap" rel="stylesheet">
<title>Archived: Airbnb</title>
</head>
<body>
<h1>Hello Front-End</h1>
<h1>Meet Guidebooks</h1>
<h4>Discover hundreds of local spots recommended by Airbnb hosts</h4>

<div class="first-row">
<div id="sf">
<p>San Francisco</p>
</div>

<div id="ny">
<p>New York</p>
</div>

<div id="lon">
<p>London</p>
</div>
</div>

<div class="box1">
See All Guidebooks
</div>

<h1>Just for the weekend</h1>
<h4>Discover new, inspiring places close to home.</h4>

<div class="second-row">
<div id="napa">
<p>San Francisco</p>
</div>

<div id="sono">
<p>New York</p>
</div>

<div id="sf2">
<p>London</p>
</div>
</div>

<div class="box2">
See All Destinations
</div>

</body>
</html>