-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
243 lines (206 loc) · 9.44 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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta property="og:image" content="/images/rawleaves.jpg">
<link rel="stylesheet" type="text/css" href="styles/reset.css">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
<!-- Slick CSS -->
<link rel="stylesheet" type="text/css" href="libraries/slick/slick.css"/>
<!-- Add the new slick-theme.css if you want the default styling -->
<link rel="stylesheet" type="text/css" href="libraries/slick/slick-theme.css"/>
<!-- cropperjs CSS CDN -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/cropperjs/1.5.9/cropper.css" integrity="sha512-949FvIQOibfhLTgmNws4F3DVlYz3FmCRRhJznR22hx76SKkcpZiVV5Kwo0iwK9L6BFuY+6mpdqB2+vDIGVuyHg==" crossorigin="anonymous" />
<!-- My CSS Files -->
<link rel="stylesheet" type="text/css" href="styles/base.css">
<link rel="stylesheet" type="text/css" href="styles/layout.css">
<link rel="stylesheet" type="text/css" href="styles/modules.css">
<title>The Taste of Tea</title>
<link rel="icon" type="image/png" href="images/mug-hot-solid.svg"/>
</head>
<body>
<header>
<!-- Section1: Top of page shows full window onload -->
<div id="topOfPage">
<div id="topImg"></div>
</div>
<div id="header-text">
<h1>The Taste of <em>Camellia Senensis</em></h1>
<p>Welcome to the one stop shop where tea lovers around the world can share their tasting notes on teas they're drinking. Help other tea lovers find great tea!</p>
</div>
</header>
<main>
<!-- section2: Select Tea Type Section -->
<section id="selectTeaType" class="py-md-3 greenbkgrnd">
<div class="section-title mb-4 my-md-5">
<h2 class="text-center py-md-5 text-fade">Select Tea Type</h2>
</div>
<div class="container-fluid">
<div class="row row-cols-3 mx-n1 mx-md-n3">
<div class="col px-1 px-md-3">
<div id="white" class="tea-button text-center" data-teatype="White">
<span>White</span>
</div>
</div>
<div class="col px-1 px-md-3">
<div id="green" class="tea-button text-center" data-teatype="Green">
<span>Green</span>
</div>
</div>
<div class="col px-1 px-md-3">
<div id="oolong" class="tea-button text-center" data-teatype="Oolong">
<span>Oolong</span>
</div>
</div>
</div>
<div class="row row-cols-3 mx-n1 mx-md-n3">
<div class="col px-1 px-md-3">
<div id="black" class="tea-button text-center" data-teatype="Black">
<span>Black</span>
</div>
</div>
<div class="col px-1 px-md-3">
<div id="raw" class="tea-button text-center" data-teatype="Raw Puer">
<span>Raw Pu’er</span>
</div>
</div>
<div class="col px-1 px-md-3">
<div id="ripe" class="tea-button text-center" data-teatype="Ripe Puer">
<span>Ripe Pu’er</span>
</div>
</div>
</div>
</div>
</section>
<!-- Section3: Handlebars Script / Review Cards -->
<div id="populateReviews">
<script id="handlebarReview" type="text/x-handlebars-template">
<div>
<div class="card mx-3 p-2">
<img src="{{imgUpload}}" class="d-block w-100" alt="...">
<div class="sectionTitle">
<h2>{{nameOfTea}}</h2>
</div>
<div id="reviewCard">
<p>Type: {{type}}</p>
<p>Tasting Notes: {{tastingNotes}}</p>
<p>Review By: {{nameOfUser}}</p>
{{#if shop}}
{{#if shopURL}}
<a href="{{shopURL}}" target="_blank">Purchased @ {{shop}}</a>
{{else}}
<p>Purchased at: {{shop}}</p>
{{/if}}
{{/if}}
</div>
</div>
</div>
</script>
</div>
<!-- Review Card Carousel -->
<section id="teaReviewSection" class="py-md-5 greenbkgrnd">
<!-- My dynamic Slick carousel -->
<div id="slick" class="loading">
</div>
</section>
<!-- Section4: Submit a tea review -->
<section class="pt-4 py-md-3">
<div class="section-title mb-3 my-md-5">
<h2 class="text-center py-md-5 text-fade">Add Your Tasting Notes to the Page!</h2>
</div>
<div id="reviewMain" class="container-fluid">
<div class="row mx-2">
<div id="uploadImg" class="col-md-5 p-3">
<label for="imgUpload">Do you have an image of this tea?</label><br>
<div id="img-wrapper">
<img id="img-preview" class="no-image" src="images/mug-hot-solid.svg" alt="">
</div>
<label class="btn btn-secondary" for="img-input">Select Tea Image</label>
<input type="file" id="img-input" accept="image/png, image/jpeg">
</div>
<div class="col-md-6 my-3 mx-md-3" id="reviewForm">
<form id="review">
<div class="form-group row">
<label for="userName" class="col-sm-4 col-form-label">Your Name:</label>
<div class="col-sm-8">
<input type="text" class="form-control" id="userName" name="userName" required>
</div>
</div>
<div class="form-group row">
<label for="nameOfTea" class="col-sm-4 col-form-label">Name of Tea:</label>
<div class="col-sm-8">
<input type="text" class="form-control" id="nameOfTea" name="nameOfTea" required>
</div>
</div>
<div class="form-group row">
<label for="typeOfTea" class="col-sm-4 col-form-label">Type of Tea:</label>
<div class="col-sm-8">
<select class="form-control" id="typeOfTea" name="typeOfTea">
<option value="White">White</option>
<option value="Green">Green</option>
<option value="Oolong">Oolong</option>
<option value="Black">Black</option>
<option value="Raw Puer">Raw Pu’er</option>
<option value="Ripe Puer">Ripe Pu’er</option>
</select>
</div>
</div>
<div class="form-group row">
<label for="shopName" class="col-sm-4 col-form-label">Name of Shop:</label>
<div class="col-sm-8">
<input type="text" class="form-control" id="shopName" name="shopName">
</div>
</div>
<div class="form-group row">
<label for="shopURL" class="col-sm-4 col-form-label">Shop URL:</label>
<div class="col-sm-8">
<input type="text" class="form-control" id="shopURL" name="shopURL">
</div>
</div>
<div class="form-group">
<label for="reviewText">Your tasting notes of this tea:</label>
<textarea class="form-control" id="reviewText" name="reviewText" rows="3" maxlength="300" onkeyup="charCount(this)" required></textarea>
<div id="displayCharNum"></div>
</div>
<div class="form-group">
<input class="btn btn-success" type="submit" id="reviewData" name="reviewData" value="Submit Review">
</div>
</form>
</div>
</div>
</div>
</section>
</main>
<footer class="greenbkgrnd">
<div id="footer-div" class="container-fluid">
<ul class="row row-cols-5 align-items-center py-3 justify-content-between">
<li class="col"> <a href="https://www.tiftaylor.com"><img class="social" src="images/id-card-regular.svg" alt="portfolio"></a></li>
<li class="col"> <a href="https://www.linkedin.com/in/tiftaylor/"><img class="social" src="images/linkedin-brands.svg" alt="linkedin"></a></li>
<li class="col"> <a href="https://github.com/tiftaylor"><img class="social" src="images/github-square-brands.svg" alt="github"></a></li>
<li class="col"> <a href="https://www.instagram.com/tifntea/"><img class="social" src="images/instagram-square-brands.svg" alt="instagram"></a></li>
<li class="col"> <a href="mailto:tiftaylorisrad@gmail.com"><img class="social" src="images/envelope-solid.svg" alt="email"></a></li>
</ul>
</div>
</footer>
<!-- Script Tags: jQuery, FBInsta, Handlebars, Popper/Bootstrap, Main -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<!-- CDN for jquery-cropper -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/cropperjs/1.5.9/cropper.min.js" integrity="sha512-9pGiHYK23sqK5Zm0oF45sNBAX/JqbZEP7bSDHyt+nT3GddF+VFIcYNqREt0GDpmFVZI3LZ17Zu9nMMc9iktkCw==" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-cropper/1.0.1/jquery-cropper.min.js" integrity="sha512-V8cSoC5qfk40d43a+VhrTEPf8G9dfWlEJgvLSiq2T2BmgGRmZzB8dGe7XAABQrWj3sEfrR5xjYICTY4eJr76QQ==" crossorigin="anonymous"></script>
<!-- <script src="INSERT FBINSTA API"></script> -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.7.6/handlebars.min.js" integrity="sha256-usTqAE1ywvdMtksWzdeWzD75MsfJN0h0U7y2NtZL3N0=" crossorigin="anonymous"></script>
<!-- Slick Script Tag -->
<script type="text/javascript" src="libraries/slick/slick.min.js"></script>
<!-- Bootstrap Script Tags -->
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script>
<!-- The core Firebase JS SDK is always required and must be listed first -->
<script src="https://www.gstatic.com/firebasejs/7.21.0/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.21.0/firebase-database.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.21.0/firebase-analytics.js"></script>
<!-- Main JS Script Tag -->
<script src="main.js" type="text/javascript"></script>
</body>
</html>