-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
93 lines (84 loc) · 3.61 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="css/style.css">
<title>The Homebody Index</title>
</head>
<body>
<header>
<nav>Hamburger menu to the left</nav>
<h1>The Homebody Index (HBI)</h1>
</header>
<main>
<section>
<header>Step 1: Calculating your astrological sign</header>
<form id="birthday-form">
<fieldset>
<legend>Birthday</legend>
<label for="birth-month">Month:</label>
<input type="number" id="birth-month" name="birth-month">
<label for="birth-day">Day:</label>
<input type="number" id="birth-day" name="birth-day">
</fieldset>
<input type="submit" value="submit">
</form>
<!-- Placeholder to display astrological sign after api fetch -->
<div id="astrological-sign"></div>
<!-- Placeholder for horoscope -->
<div id="horoscope-result"></div>
</section>
<section>
<header>Step 2: Fetching your current weather</header>
<form id="weather-form">
<!-- Temp toggle -->
<div class="container">
<input type="checkbox" id="check">
<label for="check" class="toggle-Button"></label>
</div>
<!-- User location -->
<label for="location">Enter your zipcode, postcode, or city name:</label><br>
<input type="text" id="location" name="location" title="zip or postcode / city name">
<input type="submit" value="Submit">
</form>
<!-- Placeholder to display weather data after api fetch -->
<div id="weather-forecast"></div>
</section>
<section>
<header>Step 3: Evaluating your mood regarding the weather forcast</header>
<!-- Possible emoji slider here. Will need javascript -->
<form>
<label for="feelings">How do you feel about today's weather?</label><br>
<input type="range" id="feelings" name="feelings" min="1" max="3" value="2">
<div id="feelings-labels">
<span>1. Devastated</span>
<span>2. Meh</span>
<span>3. Pure Happiness</span>
</div>
<input type="submit" value="Submit">
</form>
</section>
<section>
<header>Step 4: Analyzing today's horoscope </header>
<button id="sentiment-button">Analyze horoscope!</button>
<h4>Sentiment analysis result: </h4>
<!-- Placeholder for sentiment analysis -->
<div id="sentiment-result"></div>
</section>
<section>
<header>Step 5: Calculating your HBI: </header>
<h3>Your HBI score:</h3>
<!-- Placeholder for some kind of photo? -->
<!-- Add a marquee to display what the user should do -->
<!-- The actual words can be added via js logic. -->
<div class="marquee">
<p id="stay-at-home-message">Probably best to stay at home today!</p>
<p id="user-choice">You are the boss, you can decide!</p>
<p id="go-outside-message">The HBI indicates it is a good day to be outside!</p>
</div>
</section>
</main>
<script type="module" src="script.js"></script>
</body>
</html>