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
45 changes: 43 additions & 2 deletions css/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,44 @@
h1 {
color: salmon;
* {
/* browser css reset */
margin: 0;
box-sizing: border-box;
/* set some basic font styling */
font-family: "Raleway", sans-serif;
/* use digital color picker to get hex values */
color: #4b4c4e;
}
body {
background-color: #E9EBE7;
}

button {
padding: 1rem 7rem;
}

.card {
display:flex;
flex-direction: column;
flex-wrap: wrap;
align-items: center;
padding: 20px;
text-align: center;
}

.images {
display: flex;
}

.images section {
display: flex;
justify-content: center;
align-items: center;
padding: 20px;
}

.images p {
/* border: yellow 2px solid; */
position: absolute;
color: white;
font-weight: 600;
font-size: 36px;
}
58 changes: 57 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,62 @@
<title>Hello Front-End</title>
</head>
<body>
<h1>Hello Front-End</h1>
<!-- First card -->
<div class="card">
<!-- first row -->
<section>
<h1>Meet Guidebooks</h1>
<p>Discover hundreds of local spots recommended by Airbnbn hosts</p>
</section>
<!-- second row -->
<div class="images">
<!-- first image -->
<section>
<img src="./img/san-francisco.jpg" alt="san francisco">
<p>San Francisco</p>
</section>
<!-- second image -->
<section>
<img src="./img/new-york.jpg" alt="new york">
<p>New York</p>
</section>
<!-- third image -->
<section>
<img src="./img/london.jpg" alt="london">
<p>London</p>
</section>
</div>
<!-- third row -->
<button>See All Guidebooks</button>
</div>

</body>
</html>
<!-- <div id="top photos">
<h1 id="san-francisco">San Francisco</h1>
<img class="photos" src="./img/san-francisco.jpg" alt= "Picture of San Francisco">
<h1 id="new-york">New York</h1>
<img class="photos" src="./img/new-york.jpg" alt="Picture of New york's skyskrapers ">
<h1 id="london">London</h1>
<img class="photos" src="./img/london.jpg" alt="Picture of the big ben clock">
</div>
<div id="guidebooks-button">
<button id="top-button">See All Guidebooks</button>
</div>
<h1><strong>Just for the weekend</strong></h1>
<h2>Discover new, inspiring places close to home</h2>
<div id="bottom-photos">
<h1 id="Napa">Napa</h1>
<img class="photos" src="./img/napa.jpg" alt= "Picture of Napa">
<h1 id="sonoma">Sonoma</h1>
<img class="photos" src="./img/sonoma.jpg" alt="Picture of sonoma's fields ">
<h1 id="san-francisco-2">San Francisco</h1>
<img class="photos" src="./img/san-francisco-2.jpg" alt="Picture of San Francisco's houses">
</div>
<div id="detination-button">
<button id="bottom-button">See All Destinations</button>
</div> -->


</body>
</html>