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
104 changes: 102 additions & 2 deletions css/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,103 @@
h1 {
color: salmon;
body {
background-color: #EDEFEC;
}

.page-header {
font-size: 36px;
color: #787A79;
text-align: center;
margin-bottom: 5px;
}

.page-subheader {
margin-top: 5px;
font-size: 16px;
color: #787A79;
text-align: center;
}

.block-photos {
display: flex;
justify-content: center;
}

.individual-block-photos-wording {
font-size: 24px;
color: white;
text-align: center;
margin-top: 0;
padding-top: 50%;
}

#new-york {
background-image: url("../img/new-york.jpg");
background-position: center;
background-repeat: no-repeat;
background-size: cover;
height: 250px;
width: 200px;
margin: 10px;
}

#sf1 {
background-image: url("../img/san-francisco.jpg");
background-position: center;
background-repeat: no-repeat;
background-size: cover;
height: 250px;
width: 200px;
margin: 10px;
}

#london {
background-image: url("../img/london.jpg");
background-position: center;
background-repeat: no-repeat;
background-size: cover;
height: 250px;
width: 200px;
margin: 10px;
}

#napa {
background-image: url("../img/napa.jpg");
background-position: center;
background-repeat: no-repeat;
background-size: cover;
height: 250px;
width: 200px;
margin: 10px;
}

#sonoma{
background-image: url("../img/sonoma.jpg");
background-position: center;
background-repeat: no-repeat;
background-size: cover;
height: 250px;
width: 200px;
margin: 10px;
}

#sf2 {
background-image: url("../img/san-francisco-2.jpg");
background-position: center;
background-repeat: no-repeat;
background-size: cover;
height: 250px;
width: 200px;
margin: 10px;
}

.see-link {
color: #787A79;
background-color: white;
text-decoration: none;
padding: 10px 20px;
border: 1px solid #787A79;
display: block;
width: 20%;
margin: 25px auto;
text-align: center;
font-weight: bold;
}
61 changes: 60 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,65 @@
<title>Hello Front-End</title>
</head>
<body>
<h1>Hello Front-End</h1>
<p class="page-header">
Meet Guidebooks
</p>

<p class="page-subheader">
Discover hundreds of local spots recommended by Airbnb hosts
</p>

<div class="block-photos" id="block-1">
<div class="individual-block-photos" id="new-york">
<p class="individual-block-photos-wording">
New York
</p>
</div>

<div class="individual-block-photos" id="sf1">
<p class="individual-block-photos-wording">
San Francisco
</p>
</div>

<div class="individual-block-photos" id="london">
<p class="individual-block-photos-wording">
London
</p>
</div>
</div>

<a href="#" class="see-link">See All Guidebooks</a>

<p class="page-header">
Just for the weekened
</p>

<p class="page-subheader">
Discover new, inspiring places close to home
</p>

<div class="block-photos" id="block-2">
<div class="individual-block-photos" id="napa">
<p class="individual-block-photos-wording">
Napa
</p>
</div>

<div class="individual-block-photos" id="sonoma">
<p class="individual-block-photos-wording">
Sonoma
</p>
</div>

<div class="individual-block-photos" id="sf2">
<p class="individual-block-photos-wording">
San Francisco
</p>
</div>
</div>

<a href="#" class="see-link">See All Guidebooks</a>

</body>
</html>