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
Binary file added assets/map.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 assets/metal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
62 changes: 62 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>🐒 Trek</title>
<link rel="stylesheet" href="styles/foundation.css">
<link href="styles/main.css" media="screen" rel="stylesheet" type="text/css">
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore.js" integrity="sha256-SzKOQsVYGX1bmddyfPzGC6yXY/rWYGUSMOi6+T9gZ+0=" crossorigin="anonymous"></script>
<script src="trek.js" type="text/javascript"></script>
</head>
<body>
<main>
<div class="main-background">
<section id="message"></section>
<button class="button row" id="load-trips"> Explore! </button>

<ul id="trips"></ul>

<div class="popup-backdrop" id="popup">
<article class="popup">
<a id="close-popup" href="#">X</a>
<div id="trip-info"></div>
<button class="button" id="reserve-spot">Reserve Spot</button>
<form action="/reserve" method="post"></form>
</article>
</div>
</main>

<script id="trip-list-template" type="text/template">
<li id=<%- trip.id %>>
<h4><%- trip.name %></h4>
<p>Destination: <%- trip.continent %></p>
<p>Duration: <%- trip.weeks %> weeks</p>
</li>
</script>

<script id="single-trip-template" type="text/template">
<section id=<%- trip.id %>>
<h2><%- trip.name %></h2>
<p><span class="info-header"> Trek ID: </span><%- trip.id %></p>
<p><span class="info-header">Destination: </span><%- trip.continent %></p>
<p><span class="info-header">Duration: </span><%- trip.weeks %> weeks</p>
<p><span class="info-header">Cost: </span>$<%- trip.cost %></p>
<p><%- trip.about %></p>
</section>
</script>

<script id="reserve-spot-template" type="text/template">
<section>
<label>Name</label>
<input type="text" id="name" name="name"></input>
<label>Age</label>
<input type="text" id="age" name="age"></input>
<label>Email</label>
<input type="text" id="email" name="email"></input>
<button type="submit" class="button">Reserve Spot</button>
</section>
</script>

</body>
</html>
Loading