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
15 changes: 15 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "pwa-chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}"
}
]
}
19 changes: 17 additions & 2 deletions css/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
h1 {
color: salmon;
body {
background-color:gray;
}
h2 {
color: black;
}
h3 {
color:black;
}
#title-top {
text-align:center;
}
.centered-images {
text-align: center;
}
button {
text-align:center;
}
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 uses the justify-content property to align items horizontally, and the align-items property to align items vertically
### however, when the flex direction is a column, justify-content changes to the vertical and align-items to the horizontal.
## they both involve layout or moving elements around the document; they both are optimized to maintain layout across browsers
23 changes: 22 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,27 @@
<title>Hello Front-End</title>
</head>
<body>
<h1>Hello Front-End</h1>

<div id = "title-top">
<h2>Meet Guidebooks</h2>
<h3>Discover hundreds of local spots recommended by Airbnb hosts</h3>
</div>

<div class = "centered-images">
<img src = "san-francisco.jpg">
<img src = "new-york.jpg">
<img src = "london.jpg">
</div>
<button>See All Guidebooks</button>
<div id = "title-top">
<h2>Just for the weekend</h2>
<h3>Discover new, inspiring places close to home</h3>
</div>
<div class = "centered-images">
<img src = "napa.jpg">
<img src = "sonoma.jpg">
<img src = "san-francisco-2.jpg">
</div>
<button>See All Destinations</button>
</body>
</html>