-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
74 lines (69 loc) · 2.93 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
<!DOCTYPE html>
<html lang="en">
<head>
<!--meta data -->
<title>Inner Garden</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="reset.css">
<link rel="stylesheet" href="style.css">
<!--the scripts goes here -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/bodymovin/5.5.9/lottie.js"></script>
<script src="garden.js"></script>
</head>
<!--the content of the website -->
<body>
<!--the animations positioning (animation 1-4) -->
<div class="anim-container">
<div id="anim1"></div>
<div id="anim2"></div>
<div id="anim3"></div>
<div id="anim4"></div>
<!--the form feild -->
<form id="forms">
<h1><span class="h1-style">Welcome to your inner garden<span></h1>
<!--the animations positioning (animation 5-8) -->
<div id="anim5"></div>
<div id="anim6"></div>
<div id="anim7"></div>
<div id="anim8"></div>
<label for="text-field" class="text-field"><h2>...Write something <span class="h2-style">nice</span> about yourself and watch your <span class="h2-style">happiness</span> grow:</h2>
<label>
<!--the container for the form -->
<div class="form-container">
<!--the label division -->
<!--the text area division (</textarea> has to be on the same line or placeholder text won't show) -->
<div class="textarea">
<textarea id="text-field" placeholder="I did amazing just by waking up today..."></textarea>
</div>
<!--the button division -->
<div class="button-div">
<button id="button-click" type="button" onclick="showAnimation();">Make it grow</button>
</div>
</div>
</div>
</form>
<!--the end of the form -->
<!-- start pop-up window harvest -->
<div class="popup" id="popup-1">
<div class="overlay"></div>
<div class="content">
<div class="close-btn" onclick="togglePopup()">×</div>
<h1 class="title-pop">Great job!</h1>
<p>Now that you have planted the seeds of happiness, you get to harvest the fruit of success.</p>
</div>
</div>
<!-- end pop-up window harvest -->
<!-- start pop-up window reminder -->
<div class="popup" id="popup-2">
<div class="overlay"></div>
<div class="content">
<div class="close-btn" onclick="togglePopup2()">×</div>
<h1 class="title-pop">Reminder</h1>
<p class="text">Please write something nice about yourself in the text box!</p>
</div>
</div>
<!-- end pop-up window reminder -->
</body>
<!--the end of the content of the website -->
</html>