-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
166 lines (142 loc) · 8.1 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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Setting the character set, and important responsive design and viewport stuff -->
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Set the tab Title and The favicon shown -->
<title>The 7 new wonders of the world</title>
<link rel="shortcut icon" href="./icons/web-logo.png" type="image/x-icon">
<!-- Adding font "Cormorant" from Google Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300;0,400;0,700;1,500&display=swap" rel="stylesheet">
<!-- Linking all files -->
<link rel="stylesheet" href="./styles/general.css">
<link rel="stylesheet" href="./styles/landing.css">
<link rel="stylesheet" href="./styles/index.css">
<link rel="stylesheet" href="./styles/form.css">
<!-- JavaScript -->
<script>
function formCompletionMessage(event) {
event.preventDefault();
let date = document.getElementById('date').value;
let comparedate = new Date(date);
const today = new Date();
if (comparedate > today) {
window.alert("Invalid Date, retry");
} else {
let fname = document.getElementById('fname').value;
let lname = document.getElementById('lname').value;
let email = document.getElementById('email').value;
let wonder = document.getElementById('wonder-option').value;
let story = document.getElementById('story').value;
let message = `Confirm Your Details:
First Name: ${fname} \n
Last Name: ${lname} \n
Email: ${email} \n
Date: ${date} \n
Wonder: ${wonder} \n \n
Your Story: ${story}
`
window.confirm(message)
}
}
</script>
</head>
<body>
<section id="landing">
<div id="landing-grid">
<!-- Creating a grid so i can create a left and a right segment -->
<div class="vertical-1">
<nav id="arc-nav">
<div style="height: 4rem;"></div>
<!-- This spaces the nav buttons lower as it was too high -->
<div class="arc-nav-button" id="nav1" onclick="location.href = 'wonders/pyramid-of-giza.html'">
<img src="./icons/giza.svg" class="arc-nav-icons">
</div>
<div class="arc-nav-button" id="nav2" onclick="location.href = 'wonders/great-wall-of-china.html'">
<img src="./icons/china.svg" class="arc-nav-icons">
</div>
<div class="arc-nav-button" id="nav3" onclick="location.href = 'wonders/petra.html'">
<img src="./icons/petra.svg" class="arc-nav-icons">
</div>
<div class="arc-nav-button" id="nav4">
<img src="./icons/colosseum.svg" class="arc-nav-icons" onclick="location.href = 'wonders/colosseum.html'">
</div>
<div class="arc-nav-button" id="nav5">
<img src="./icons/itza.svg" class="arc-nav-icons" onclick="location.href = 'wonders/chichen-itza.html'">
</div>
<div class="arc-nav-button" id="nav6">
<img src="./icons/pichu.svg" class="arc-nav-icons" onclick="location.href = 'wonders/machu-picchu.html'">
</div>
<div class="arc-nav-button" id="nav7">
<img src="./icons/taj.svg" class="arc-nav-icons" onclick="location.href = 'wonders/taj-mahal.html'">
</div>
<div class="arc-nav-button" id="nav8" onclick="location.href = 'wonders/christ-the-redeemer.html'">
<img src="./icons/christ.svg" class="arc-nav-icons">
</div>
</nav>
<span id="big-seven">7</span>
<div id="container-new-wonders">
<p class="intro-title" id="nw-line1">New Wonders</p>
<p class="intro-title" id="nw-line2">of the</p>
<p class="intro-title" id="nw-line3">World</p>
<!-- Using different lines so I can, position them differently -->
</div>
</div>
<div class="vertical-2">
<span id="about-website-small">The significance of these seven unique structures is such that their history must be known. This website serves the purpose of educating on how they came to be and their historical, religious and cultural relevance.</span>
</div>
</div>
<img src="./images/fancy-vertical-divider.png" id="divider-1-image">
<!-- A simple divider -->
</section>
<section id="project-background">
<p id="project-background-text">
The Seven Wonders of the World incorporate some of the most culturally significant and historically iconic man-made structures that still stand to this day. It is an updated version of the original list of the Seven Wonders that was created in the second to first century BCE, now referred to as the Seven Wonders of the Ancient World. Mostly web voting that begun in 2001 sought to elect seven new wonders as to update the list, accounting for the fact that most of the ancient wonders had been destroyed. As a result of a total of 100 million votes, the voting conclusions were revealed in 2007. The seven winners are made up by the Pyramids of Giza, the only surviving wonder of the ancient world, The Great Wall of China, Petra, the Colosseum, Chichén Itzá, Machu Picchu, the Taj Mahal, and Christ the Redeemer.
</p>
<img src="./images/fancy-divider.png" id="divider-2-image">
</section>
<!-- The form -->
<section id="form-section">
<form action="" id="hpage-form" method="post">
<div class="names-input-grid">
<label for="fname" class="form-label">First Name:</label> <br>
<input type="text" id="fname" name="fname" required>
<label for="lname" class="form-label">Last Name:</label> <br>
<input type="text" id="lname" name="lname" required>
</div>
<div>
<label for="email" class="form-label">Email:</label> <br>
<input type="email" id="email" name="email" required>
</div>
<div>
<label for="wonder-option" class="form-label">Which of the wonders did you visit?</label> <br>
<select id="wonder-option" name="wonder-option" required>
<option value="giza">Pyramids of Giza (honorary)</option>
<option value="china">Great Wall of China</option>
<option value="petra">Petra</option>
<option value="colosseum">The colosseum</option>
<option value="chichen-itza">Chichen Itza</option>
<option value="machu-picchu">Machu Picchu</option>
<option value="taj-mahal">Taj Mahal</option>
<option value="christ-the-redeemer">Christ the Redeemer</option>
</select>
<br>
<label for="date" class="form-label" required>Date of Visit:</label> <br>
<input type="date" name="date" id="date">
</div>
<div>
<label for="story" class="form-label">Tell us your story!</label> <br>
<input name="story" id="story" type="text" value="Submit your experience" required>
</div>
<div>
<!-- Submits the page info -->
<button onclick="formCompletionMessage(event)">Check data Entered</button>
</div>
</form>
</section>
</body>
</html>