-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtg.html
39 lines (36 loc) · 1.71 KB
/
tg.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<title> Tiffany's Thanksgiving menu</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/cerulean/bootstrap.min.css">
</head>
<body class="container">
<h1>Thanksgiving menu</h1>
<div id="app">
<div v-if="!authenticationInitiated" class="form-group">
<label>Type in your passcode to access the menu</label>
<input v-model="passcode" placeholder="Your passcode" type="password" class="form-control"/>
<small>The menu will be public on Thanksgiving week</small>
<button @click="viewMenu" class="btn btn-primary form-control" v-show="passcode.length >= 1">View menu</button>
</div>
<div v-if="authenticationInitiated">
<ul class="list-group" v-if=" hasAccess || isThxGivingWeek">
<li v-for="entry in menu" class="list-group-item">
<figure>
<img v-bind:src="entry.url" style="max-width: 200px; max-height: 400px;" />
<figcaption>
<a v-if="entry.wikiLink" v-bind:href="entry.wikiLink" target="_blank">{{entry.name}}</a>
<span v-else>{{entry.name}}</span>
</figcaption>
</figure>
</li>
</ul>
<h2 v-else-if="passcode.length > 0">You don't have access. Please wait till Thanksgiving week to view the
menu.</h2>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.js"></script>
<script src="tg.js"></script>
</body>
</html>