Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

solution airBnB #14

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
1 change: 1 addition & 0 deletions src/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# AirBnB
Empty file removed src/fonts/.gitkeep
Empty file.
Binary file added src/fonts/Avenir-Book.ttf
Binary file not shown.
Binary file added src/fonts/Avenir-Heavy.ttf
Binary file not shown.
Binary file added src/fonts/Avenir-Medium.ttf
Binary file not shown.
Binary file removed src/fonts/Roboto-Regular-webfont.woff
Binary file not shown.
Empty file removed src/images/.gitkeep
Empty file.
Binary file added src/images/Ellipse.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/Image.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/Rectangle 2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
56 changes: 56 additions & 0 deletions src/images/burger.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
56 changes: 56 additions & 0 deletions src/images/cross.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
171 changes: 161 additions & 10 deletions src/index.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,164 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Title</title>
<link rel="stylesheet" href="./styles/main.css">
</head>
<body>
<h1>Hello Mate Academy</h1>
<script type="text/javascript" src="scripts/main.js"></script>
</body>

<head>
<link rel="stylesheet" href="./styles/styles.css">
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@700&display=swap" rel="stylesheet">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AirBnB</title>
</head>

<body>
<header class="header">
<img class="header__logo" src="./images/Rectangle 2.jpg" alt="Logo AirBnB">

<input class="header__toggler" type="checkbox" id="header__toggler">
<label class="header__label" for="header__toggler"></label>
<nav class="header__nav">
<a class="header__link" href="#">
Become a host
</a>
<a class="header__link" href="#">
Trips
</a>
<a class="header__link" href="#">
Messages
</a>


</nav>
<img class="header__photo" src="./images/Ellipse.jpg" alt="User Photo">
</header>

<section class="promo">
</section>

<main class="content">
<form class="booking-form" action="" method="POST">
<p class="booking-form__price">25$ per night</p>
<input class="booking-form__input" placeholder="Date" onfocus="(type='date')">
<input class="booking-form__input" placeholder="Guests" type="number">
<button class="booking-form__button" type="submit">Book</button>
</form>

<h1 class="content__primary-title">Quiet apartment</h1>
<p class="content__subtitle">Entire apartment</p>
<p class="content__condition">4 guests</p>
<p class="content__condition">1 bed</p>
<p class="content__condition">1 bath</p>

<p class="content__description">City Apartment is newly renovated in the hear
t of Budapest, right in the city center. Lor
em ipsum dolor sit amet, consectetur adipi
scing elit, sed do eiusmod tempor incid
idunt ut labore et dolore magna aliqua. Ut en
im ad minim veniam.
</p>

<a class="content__links" href="">
Contact host
</a>

<div class="content__amenities amenities">
<h3>Amenities</h3>
<p class="amenities__amenity">
Elevator
</p>
<p class="amenities__amenity">
Hair dryer
</p><br>
<p class="amenities__amenity">
Washer
</p>
<p class="amenities__amenity">
Kitchen
</p><br>
<a class="content__links" href="">
Show All Amenities
</a>
</div>

<div class="reviews content__reviews">
<h2 class="reviews__title">
Reviews
</h2>
<article class="reviews__block">
<div class="reviews__container">
<p class="reviews__circle"></p>
<div class="reviews__subcontainer">
<p class="reviews__name">
John
</p>
<p class="reviews__date">
September 2016
</p>
</div>
</div>
<p class="reviews__review">
Lorem ipsum dolor sit amet, consectetur
adipiscing elit, sed do
eiusmod tempor incididunt ut labore
et dolore magna aliqua. Ut enim ad minim veniam.
</p>
</article>

<article class="reviews__block">
<div class="reviews__container">
<p class="reviews__circle"></p>
<div class="reviews__subcontainer">
<p class="reviews__name">
John
</p>
<p class="reviews__date">
September 2017
</p>
</div>
</div>
<p class="reviews__review">
Sed do eiusmod tempor incididunt ut labore et
dolore magna aliqua. Ut enim ad minim veniam.
</p>
</article>
</div>

<article class="hosted content__hosted">
<h2 class="hosted__title">Hosted by Jane</h2>
<p class="hosted__were">Budapest, Hungary</p>
<p class="hosted__article">
Lorem ipsum dolor sit amet, consectetur adipiscing
elit, sed do eiusmod tempor incididunt ut labore
et magna aliqua.
</p>
<button class="hosted__button">
Contact host
</button>
</article>

</main>

<footer class="footer" id="footer">
<div class="footer__container">
<div class="footer__subcontainer">
<h3 class="footer__title">Airbnb</h3>
<a class="footer__link" href="">About</a>
<a class="footer__link" href="">Press</a>
<a class="footer__link" href="">Help</a>
</div>
<div class="footer__subcontainer">
<h3 class="footer__title">Discover</h3>
<a class="footer__link" href="">Travel credit</a>
<a class="footer__link" href="">Business</a>
<a class="footer__link" href="">Guidebooks</a>
</div>
<div class="footer__subcontainer">
<h3 class="footer__title">Hosting</h3>
<a class="footer__link" href="">Why host</a>
<a class="footer__link" href="">Hospitality</a>
<a class="footer__link" href="">Community</a>
</div>
</div>
</footer>

</body>
</html>
76 changes: 76 additions & 0 deletions src/styles/booking-form.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@

.booking-form {
height: 319px;
width: 330px;
border: 1px solid #e1e7ed;
border-radius: 3px;
box-sizing: border-box;
background-color: white;
padding: 30px;
position: sticky;
top: 60px;
display: flex;
flex-direction: column;
align-items: stretch;
float: right;
z-index: 0;

@media screen and (max-width: 840px) {
float: none;
position: relative;
top: 0;
left: calc(50% - 165px);
}

@media screen and (max-width: 345px) {
width: calc(100vw - 30px);
margin: 0 auto;
left: 0;
}

&__price {
margin-bottom: 23px;
}

&__input {
border: 1px solid #e1e7ed;
border-radius: 3px;
box-sizing: border-box;
background-color: white;
display: block;
height: 50px;
right: 0;
left: 0;
margin-top: 16px;
padding-left: 10px;
outline: none;
transition: box-shadow 0.5s;
&:hover,
&:focus {
box-shadow: 0 0 5px 5px #fd5c63;
}
}

&__button {
background-color: #fd5c63;
border-radius: 4px;
color: white;
display: block;
height: 50px;
margin-top: 24px;
transition: background-color 0.5s, color 0.5s;
font-size: 20px;
outline: none;

&:focus {
box-shadow: 0 0 5px 5px #fd5c63;
background-color: white;
color: #fd5c63;
}

&:hover {
background-color: white;
color: #fd5c63;
}
}
}
Loading