Skip to content
Open

git #491

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
38 changes: 36 additions & 2 deletions css/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,37 @@
h1 {
color: salmon;
* {
margin: 0;
box-sizing: border-box;
font-family: "Raleway", sans-serif;
color: #4b4c4e;

}

.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;
}

.images p{
position:absolute;
color: white;
font-weight: 600;
font-size: 40px;
}

button {
padding: 1rem 7rem;
}
60 changes: 58 additions & 2 deletions 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>
</body>
<link rel="stylesheet" type="text/css" href="css/style.css">

</head>
<body>
<!-- first card -->
<div class="card">

<section>
<h1>Meet Guidebooks</h1>
<p>Discover hundred of local spots recommended by AirBnB hosts</p>
</section>
<div class="images">
<section>
<img src="./img/san-francisco.jpg" alt="san francscio"/>
<p>San Francisco</p>
</section>
<section>
<img src="./img/new-york.jpg" alt="new york"/>
<p>New York</p>
</section>
<section>
<img src="./img/london.jpg" alt="london"/>
<p>London</p>
</section>
</div>
<button>See All Guidebooks</button>


<div class="card">
<section>
<h1>Just for the weekend</h1>
<p>Discover new, inspiring places close to home</p>
</section>
<div class="images">
<section>
<img src="./img/napa.jpg" alt="napa"/>
<p>Napa</p>
</section>
<section>
<img src="./img/sonoma.jpg" alt="sonoma"/>
<p>Sonoma</p>
</section>
<section>
<img src="./img/san-francisco-2.jpg" alt="san francscio"/>
<p>San Francisco</p>
</section>
<button>See all destinations</button>








</body>


</html>