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
6 changes: 3 additions & 3 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

Please describe your comfort and completeness levels before submitting.

Comfort Level (1-5):
Comfort Level (1-5): 2

Completeness Level (1-5):
Completeness Level (1-5):4

Do you have any remaining questions about this deliverable?:
Do you have any remaining questions about this deliverable?: I had issues trying to use both CSS grid and flexbox at the same time. Need more practice
66 changes: 65 additions & 1 deletion css/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,67 @@

body {
background: grey;
align-content: center;
margin: 50px 300px;

}
div {
text-align: center;
}
h1 {
color: salmon;
color: rgb(41, 39, 39);
font-family: arial;
text-align: center;
font-size: 30px;
}
h3 {
color: rgb(41, 39, 39);
font-family: arial;
text-align: center;
font-size: 20px;
}
button {
font-size: 20px;
padding: 5px 10px;
}


.picture-group {
display: flex;
flex-direction: row;
text-align: center;
justify-content: space-between;


}
.background-pic {
height: 550px;
width: 400px;
padding: 5px 10px;
object-fit: none;
}

.location {
display: flex;
align-items:center;
flex-direction: row;
}
.text {
position: absolute;
display: inline-flex;
font-weight: bolder;
font-size: 30px ;
font-family: arial;
flex-direction: column;
color: white;
padding: 140px;

}








1 change: 1 addition & 0 deletions flex-vs-grid.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Flexbox and CSS grid can both be used to create structured pages that look nice and organized. The main difference that I see is that Flexbot can only arrange within a row or a column while CSS grid can work changing both at once. When moving the flexbox items they are one unit that can be wraped compressed and organized within the column or row area. The CSS grid creates a grid that can guide the items to their position anywhere on the website page.
52 changes: 49 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,55 @@
<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>
<title>AirBNB Throwback</title>
</head>
<body>
<h1>Hello Front-End</h1>
<html>
<body>
<div>
<h1>Meet the Guidebooks</h1>
<h3>Discover hundreds of local spots recommended by Airbnb hosts.</h3>
<div class="picture-group">
<div class= "location">
<img class="background-pic" src="img/san-francisco.jpg"/>
<div class="text">San Francisco</div>
</div>
<div class= "location">
<img class="background-pic" src="img/new-york.jpg"/>
<div class="text"> New York</div>
</div>
<div class= "location">
<img class="background-pic" src="img/london.jpg"/>
<div class="text">London</div>
</div>
</div>
<button>See All Guidebooks</button>
</div>

<div>
<h1>Just for the Weekend</h1>
<h3>Discover new, inspiring places close to home.</h3>
<div class= "picture-group">
<div class= "location">
<img class= "background-pic" src="img/napa.jpg"/>
<div class="text">Napa</div>
</div>
<div class= "location">
<img class="background-pic" src="img/sonoma.jpg"/>
<div class= "text">Sonoma</div>
</div>
<div class= "location">
<img class="background-pic"src="img/san-francisco-2.jpg"/>
<div class="text">San Francisco</div>
</div>
</div>
<button>See All Destinations</button>

</body>



</div>
</body>

</html>
</html>