[go: nahoru, domu]

Skip to content

Commit

Permalink
template html files
Browse files Browse the repository at this point in the history
  • Loading branch information
ch3lla committed Oct 11, 2023
1 parent 758117c commit e526438
Show file tree
Hide file tree
Showing 5 changed files with 376 additions and 0 deletions.
78 changes: 78 additions & 0 deletions web_dynamic/templates/0-hbnb.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="../static/styles/4-common.css?{{ cache_id }}">
<link rel="stylesheet" type="text/css" href="../static/styles/3-header.css?{{ cache_id }}">
<link rel="stylesheet" type="text/css" href="../static/styles/3-footer.css?{{ cache_id }}">
<link rel="stylesheet" type="text/css" href="../static/styles/6-filters.css?{{ cache_id }}">
<link type="text/css" rel="stylesheet" href="../static/styles/8-places.css?{{ cache_id }}">
<link rel="icon" href="../static/images/icon.png" />
<title>AirBnb Clone</title>
</head>
<body>
<header>
<div class="logo"></div>
</header>
<div class="container">
<section class="filters">
<div class="locations">
<h3>States</h3>
<h4>&nbsp;</h4>
<div class="popover">
<ul>
{% for state in states %}
<li>
<h2>{{ state[0].name }}:</h2>
<ul>
{% for city in state[1] %}
<li>{{ city.name }}</li>
{% endfor %}
</ul>
</li>
{% endfor %}
</ul>
</div>
</div>
<div class="amenities">
<h3>Amenities</h3>
<h4>&nbsp;</h4>
<div class="popover">
<ul>
{% for amenity in amenities %}
<li>{{ amenity.name }}</li>
{% endfor %}
</ul>
</div>
</div>
<button type="button">Search</button>
</section>
<div class="placesh1"><h1>Places</h1></div>
<section class="places">
<!-- <h1>Places</h1> -->
{% for place in places %}
<article>
<div class="title_box">
<h2>{{ place.name }}</h2>
<div class="price_by_night">${{ place.price_by_night }}</div>
</div>
<div class="information">
<div class="max_guest">{{ place.max_guest }} Guest{% if place.max_guest != 1 %}s{% endif %}</div>
<div class="number_rooms">{{ place.number_rooms }} Bedroom{% if place.number_rooms != 1 %}s{% endif %}</div>
<div class="number_bathrooms">{{ place.number_bathrooms }} Bathroom{% if place.number_bathrooms != 1 %}s{% endif %}</div>
</div>
<div class="user">
<b>Owner:</b> {{ place.user.first_name }} {{ place.user.last_name }}
</div>
<div class="description">
{{ place.description | safe }}
</div>
</article>
{% endfor %}
</section>
</div>
<footer>
<p>Holberton School</p>
</footer>
</body>
</html>
84 changes: 84 additions & 0 deletions web_dynamic/templates/1-hbnb.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="../static/styles/4-common.css?{{ cache_id }}">
<link rel="stylesheet" type="text/css" href="../static/styles/3-header.css?{{ cache_id }}">
<link rel="stylesheet" type="text/css" href="../static/styles/3-footer.css?{{ cache_id }}">
<link rel="stylesheet" type="text/css" href="../static/styles/6-filters.css?{{ cache_id }}">
<link type="text/css" rel="stylesheet" href="../static/styles/8-places.css?{{ cache_id }}">
<link rel="icon" href="../static/images/icon.png" />

<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="../static/scripts/1-hbnb.js?{{ cache_id }}"></script>

<title>AirBnb Clone</title>
</head>
<body>
<header>
<div class="logo"></div>
</header>
<div class="container">
<section class="filters">
<div class="locations">
<h3>States</h3>
<h4>&nbsp;</h4>
<div class="popover">
<ul>
{% for state in states %}
<li>
<h2>{{ state[0].name }}:</h2>
<ul>
{% for city in state[1] %}
<li>{{ city.name }}</li>
{% endfor %}
</ul>
</li>
{% endfor %}
</ul>
</div>
</div>
<div class="amenities">
<h3>Amenities</h3>
<h4>&nbsp;</h4>
<div class="popover">
<ul>
{% for amenity in amenities %}
<li>
<input type="checkbox" data-id="{{ amenity.id }}" data-name="{{ amenity.name }}">{{ amenity.name }}
</li>
{% endfor %}
</ul>
</div>
</div>
<button type="button">Search</button>
</section>
<div class="placesh1"><h1>Places</h1></div>
<section class="places">
<!-- <h1>Places</h1> -->
{% for place in places %}
<article>
<div class="title_box">
<h2>{{ place.name }}</h2>
<div class="price_by_night">${{ place.price_by_night }}</div>
</div>
<div class="information">
<div class="max_guest">{{ place.max_guest }} Guest{% if place.max_guest != 1 %}s{% endif %}</div>
<div class="number_rooms">{{ place.number_rooms }} Bedroom{% if place.number_rooms != 1 %}s{% endif %}</div>
<div class="number_bathrooms">{{ place.number_bathrooms }} Bathroom{% if place.number_bathrooms != 1 %}s{% endif %}</div>
</div>
<div class="user">
<b>Owner:</b> {{ place.user.first_name }} {{ place.user.last_name }}
</div>
<div class="description">
{{ place.description | safe }}
</div>
</article>
{% endfor %}
</section>
</div>
<footer>
<p>Holberton School</p>
</footer>
</body>
</html>
84 changes: 84 additions & 0 deletions web_dynamic/templates/2-hbnb.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="../static/styles/4-common.css?{{ cache_id }}">
<link rel="stylesheet" type="text/css" href="../static/styles/3-header.css?{{ cache_id }}">
<link rel="stylesheet" type="text/css" href="../static/styles/3-footer.css?{{ cache_id }}">
<link rel="stylesheet" type="text/css" href="../static/styles/6-filters.css?{{ cache_id }}">
<link type="text/css" rel="stylesheet" href="../static/styles/8-places.css?{{ cache_id }}">
<link rel="icon" href="../static/images/icon.png" />

<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="../static/scripts/2-hbnb.js?{{ cache_id }}"></script>

<title>AirBnb Clone</title>
</head>
<body>
<header>
<div id="api_status"></div>
</header>
<div class="container">
<section class="filters">
<div class="locations">
<h3>States</h3>
<h4>&nbsp;</h4>
<div class="popover">
<ul>
{% for state in states %}
<li>
<h2>{{ state[0].name }}:</h2>
<ul>
{% for city in state[1] %}
<li>{{ city.name }}</li>
{% endfor %}
</ul>
</li>
{% endfor %}
</ul>
</div>
</div>
<div class="amenities">
<h3>Amenities</h3>
<h4>&nbsp;</h4>
<div class="popover">
<ul>
{% for amenity in amenities %}
<li>
<input type="checkbox" data-id="{{ amenity.id }}" data-name="{{ amenity.name }}">{{ amenity.name }}
</li>
{% endfor %}
</ul>
</div>
</div>
<button type="button">Search</button>
</section>
<div class="placesh1"><h1>Places</h1></div>
<section class="places">
<!-- <h1>Places</h1> -->
{% for place in places %}
<article>
<div class="title_box">
<h2>{{ place.name }}</h2>
<div class="price_by_night">${{ place.price_by_night }}</div>
</div>
<div class="information">
<div class="max_guest">{{ place.max_guest }} Guest{% if place.max_guest != 1 %}s{% endif %}</div>
<div class="number_rooms">{{ place.number_rooms }} Bedroom{% if place.number_rooms != 1 %}s{% endif %}</div>
<div class="number_bathrooms">{{ place.number_bathrooms }} Bathroom{% if place.number_bathrooms != 1 %}s{% endif %}</div>
</div>
<div class="user">
<b>Owner:</b> {{ place.user.first_name }} {{ place.user.last_name }}
</div>
<div class="description">
{{ place.description | safe }}
</div>
</article>
{% endfor %}
</section>
</div>
<footer>
<p>Holberton School</p>
</footer>
</body>
</html>
65 changes: 65 additions & 0 deletions web_dynamic/templates/3-hbnb.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="../static/styles/4-common.css?{{ cache_id }}">
<link rel="stylesheet" type="text/css" href="../static/styles/3-header.css?{{ cache_id }}">
<link rel="stylesheet" type="text/css" href="../static/styles/3-footer.css?{{ cache_id }}">
<link rel="stylesheet" type="text/css" href="../static/styles/6-filters.css?{{ cache_id }}">
<link type="text/css" rel="stylesheet" href="../static/styles/8-places.css?{{ cache_id }}">
<link rel="icon" href="../static/images/icon.png" />

<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="../static/scripts/3-hbnb.js?{{ cache_id }}"></script>

<title>AirBnb Clone</title>
</head>
<body>
<header>
<div id="api_status"></div>
</header>
<div class="container">
<section class="filters">
<div class="locations">
<h3>States</h3>
<h4>&nbsp;</h4>
<div class="popover">
<ul>
{% for state in states %}
<li>
<h2>{{ state[0].name }}:</h2>
<ul>
{% for city in state[1] %}
<li>{{ city.name }}</li>
{% endfor %}
</ul>
</li>
{% endfor %}
</ul>
</div>
</div>
<div class="amenities">
<h3>Amenities</h3>
<h4>&nbsp;</h4>
<div class="popover">
<ul>
{% for amenity in amenities %}
<li>
<input type="checkbox" data-id="{{ amenity.id }}" data-name="{{ amenity.name }}">{{ amenity.name }}
</li>
{% endfor %}
</ul>
</div>
</div>
<button type="button">Search</button>
</section>
<div class="placesh1"><h1>Places</h1></div>
<section class="places">
<!-- <h1>Places</h1> -->
</section>
</div>
<footer>
<p>Holberton School</p>
</footer>
</body>
</html>
65 changes: 65 additions & 0 deletions web_dynamic/templates/4-hbnb.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="../static/styles/4-common.css?{{ cache_id }}">
<link rel="stylesheet" type="text/css" href="../static/styles/3-header.css?{{ cache_id }}">
<link rel="stylesheet" type="text/css" href="../static/styles/3-footer.css?{{ cache_id }}">
<link rel="stylesheet" type="text/css" href="../static/styles/6-filters.css?{{ cache_id }}">
<link type="text/css" rel="stylesheet" href="../static/styles/8-places.css?{{ cache_id }}">
<link rel="icon" href="../static/images/icon.png" />

<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="../static/scripts/4-hbnb.js?{{ cache_id }}"></script>

<title>AirBnb Clone</title>
</head>
<body>
<header>
<div id="api_status"></div>
</header>
<div class="container">
<section class="filters">
<div class="locations">
<h3>States</h3>
<h4>&nbsp;</h4>
<div class="popover">
<ul>
{% for state in states %}
<li>
<h2>{{ state[0].name }}:</h2>
<ul>
{% for city in state[1] %}
<li>{{ city.name }}</li>
{% endfor %}
</ul>
</li>
{% endfor %}
</ul>
</div>
</div>
<div class="amenities">
<h3>Amenities</h3>
<h4>&nbsp;</h4>
<div class="popover">
<ul>
{% for amenity in amenities %}
<li>
<input type="checkbox" data-id="{{ amenity.id }}" data-name="{{ amenity.name }}">{{ amenity.name }}
</li>
{% endfor %}
</ul>
</div>
</div>
<button type="button">Search</button>
</section>
<div class="placesh1"><h1>Places</h1></div>
<section class="places">
<!-- <h1>Places</h1> -->
</section>
</div>
<footer>
<p>Holberton School</p>
</footer>
</body>
</html>

0 comments on commit e526438

Please sign in to comment.