-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
146 lines (137 loc) · 7.71 KB
/
index.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="Carey & Joe's Wedding">
<title>Carey & Joe</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.1/css/bootstrap.min.css" integrity="sha256-Md8eaeo67OiouuXAi8t/Xpd8t2+IaJezATVTWbZqSOw=" crossorigin="anonymous" />
<link rel="stylesheet" href="starter-template.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous" defer></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha256-98vAGjEDGN79TjHkYWVD4s87rvWkdWLHPs5MC3FvFX4=" crossorigin="anonymous" defer></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.1/js/bootstrap.min.js" integrity="sha256-xaF9RpdtRxzwYMWg4ldJoyPWqyDPCRD0Cv7YEEe6Ie8=" crossorigin="anonymous" defer></script>
<script src="main.js" defer></script>
</head>
<body data-spy="scroll" data-target="#navbarContent" data-offset="56">
<header>
<nav class="navbar fixed-top navbar-expand-lg navbar-light bg-light" id="navbar">
<a class="navbar-brand" href="#">Carey & Joe</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarContent" aria-controls="navbarContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarContent">
<ul class="navbar-nav mx-auto">
<li class="nav-item">
<a class="nav-link" href="#ourStory">Our Story</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#whenAndWhere">When and Where</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#registry">Registry</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#rsvp">RSVP</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#faq">FAQ</a>
</li>
</ul>
</div>
</nav>
</header>
<div class="container-fluid">
<main>
<section>
<div class="row">
<div id="usContainer" class="col">
<div>
<h2 id="us" class="text-uppercase text-center">Carey & Joe</h2>
</div>
</div>
</div>
</section>
<section>
<div class="row">
<div id="ourStoryContainer" class="col">
<h2 id="ourStory" class="text-uppercase">Our Story</h2>
</div>
</div>
</section>
<section>
<div class="row">
<div id="whenAndWhereContainer" class="col">
<h2 id="whenAndWhere" class="text-uppercase text-center">When and Where</h2>
</div>
</div>
</section>
<section>
<div class="row">
<div id="registryContainer" class="col">
<h2 id="registry" class="text-uppercase text-center">Registry</h2>
</div>
</div>
</section>
<section>
<div class="row">
<div id="rsvpContainer" class="col">
<h2 id="rsvp" class="text-uppercase text-center">RSVP</h2>
<div class="container">
<form method="post" id="nameLookupForm">
<div class="form-row">
<div class="col">
<input type="text" class="form-control" name="firstName" placeholder="First name" required>
</div>
<div class="col">
<input type="text" class="form-control" name="lastName" placeholder="Last name" required>
</div>
<div class="col-auto">
<button type="submit" formaction="/database/getInfo" class="btn btn-primary mb-2">Lookup Guest</button>
</div>
</div>
</form>
<form method="post" id="rsvpEditForm" disabled style="display: none;">
<div class="form-group">
<label for="numGuestsInput">Number of Guests</label>
<input type="number" class="form-control" id="numGuestsInput" name="numGuests" min="0" max="2" value="0">
</div>
<fieldset>
<legend>Attendance</legend>
<div class="form-check">
<input class="form-check-input" type="checkbox" name="presentForDay1" value="1" id="attendingDay1Check">
<label class="form-check-label" for="attendingDay1Check">Attending Day 1</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" name="presentForDay2" value="1" id="attendingDay2Check">
<label class="form-check-label" for="attendingDay2Check">Attending Day 2</label>
</div>
</fieldset>
<fieldset>
<legend>Vegetarian</legend>
<div class="form-check">
<input class="form-check-input" type="radio" name="vegetarian" value="1" id="vegetarianYes">
<label class="form-check-label" for="vegetarianYes">Yes</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="vegetarian" value="0" id="vegetarianNo">
<label class="form-check-label" for="vegetarianNo">No</label>
</div>
</fieldset>
<button type="submit" formaction="/database/updateInfo" class="btn btn-primary mb-2">Update Info</button>
</form>
</div>
</div>
</div>
</section>
<section>
<div class="row">
<div id="faqContainer" class="col">
<h2 id="faq" class="text-uppercase text-center">FAQ</h2>
</div>
</div>
</section>
</main>
</div>
</body>
</html>