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
106 changes: 104 additions & 2 deletions css/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,105 @@
h1 {
color: salmon;
body {
font-family: 'Nunito', sans-serif;
background-color: #f7f7f7;
}
.header {
text-align: center;
color: #636363;
font-size: 20px;
font-weight: bold;
}

.subheader {
text-align: center;
color: #636363;
font-size: 10px;
margin-top: -20px;
}

.information {
display: grid;
grid-template-columns: 24.5% 16% 1.5% 16% 1.5% 16% 23%;
grid-template-rows: 90% 10% 10%
}

.sanfran {
grid-area: 1 / 2 / 1 / 2
}

.newyork {
grid-area: 1 / 4 / 1 / 4
}

.london {
grid-area: 1 / 6 / 1 / 6
}

.sanfrantext {
grid-area: 1 / 2 / 1 / 2;
margin-left: 50px;
margin-top: 110px;
color: white;
font-weight: bold;
font-size: 20px
}

.newyorktext {
grid-area: 1 / 4 / 1 / 4;
margin-top: 110px;
margin-left: 75px;
color: white;
font-weight: bold;
font-size: 20px
}

.londontext {
grid-area: 1 / 6 / 1 / 6;
margin-left: 80px;
margin-top: 100px;
color: white;
font-weight: bold;
font-size: 20px
}

button {
background-color: white;
border: 1px solid #636363;
color: #636363;
grid-area: 3 / 4 / 3 / 4;
font-weight: bold;
font-size: 11px;
}

.napa {
grid-area: 1 / 2 / 1 / 2
}
.napatext {
grid-area: 1 / 2 / 1 / 2;
margin-left: 90px;
margin-top: 100px;
color: white;
font-weight: bold;
font-size: 20px
}
.sonoma {
grid-area: 1 / 4 / 1 / 4
}
.sonomatext {
grid-area: 1 / 4 / 1 / 4;
margin-left: 75px;
margin-top: 100px;
color: white;
font-weight: bold;
font-size: 20px
}
.sanfranb {
grid-area: 1 / 6 / 1 / 6
}
.sanfranbtext {
grid-area: 1 / 6 / 1 / 6;
margin-left: 50px;
margin-top: 100px;
color: white;
font-weight: bold;
font-size: 20px
}
7 changes: 7 additions & 0 deletions flex-vs-grid.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## Part 3:

Use the [command line](https://tmdarneille.gitbook.io/seirfx/01-workflow/01readme) to create a new file in this repository called `flex-vs-grid.md`. 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 is a CSS tool that allows for the manipulation of the position of items on your webpage. Using display:flex and its various commands allows the user to align items to specific parts of the page or change the spacing between or around them.
CSS Grid allows the user to divide their webpage into grids, making the placement of items on their webpage more streamlined. Using Grid, the user can divide their page into an unlimited amount/size of rows and columns to help place their items in the desired position.
Both are similar in that they result in style and postiion manipulation, but flexbox requires the user to specify if they are placing objects in a row or column orientation while Grid allows the user to manipulate the grid/item using both the row and column orientation.
File renamed without changes
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=Nunito:wght@400;700&display=swap" rel="stylesheet">
<title>Taylor Schmidt's AirBnb Copy</title>
</head>

<body>
<h1>Hello Front-End</h1>
<p class="header">Meet Guidebooks</p>
<p class='subheader'>Discover hundreds of local spots recommended by Airbnb hosts</p>

<div class="information">
<div class="sanfran">
<img src = "https://i.imgur.com/ztVoLZU.jpg" width= 235px height= 250px/>
</div>
<div class="newyork">
<img src= "https://i.imgur.com/ldPmHAS.jpg" width= 235px height= 250px />
</div>
<div class="london">
<img src= "https://i.imgur.com/fuA6zUD.jpg" width= 235px height= 250px />
</div>
<div class="sanfrantext">San Fransisco</div>
<div class="newyorktext">New York</div>
<div class="londontext">London</div>
<button>See All Guidebooks</button>
</div>

<br><br>

<p class="header">Just for the weekend</p>
<p class='subheader'>Discover new, inspiring places close to home.</p>


<div class="information">
<div class="napa">
<img src = "https://i.imgur.com/DAqA8oA.jpg" width= 235px height= 250px/>
</div>
<div class="sonoma">
<img src= "https://i.imgur.com/cObxCbH.jpg" width= 235px height= 250px />
</div>
<div class="sanfranb">
<img src= "https://i.imgur.com/dML8Fgj.jpg" width= 235px height= 250px />
</div>
<div class="napatext">Napa</div>
<div class="sonomatext">Sonoma</div>
<div class="sanfranbtext">San Fransisco</div>
<button>See All Destinations</button>
</div>

</body>
</html>