-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
71 lines (65 loc) · 2.27 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="styles.css">
<title>Newspaper Template</title>
</head>
<body>
<!-- HTML Todos -->
<!-- 1 -->
<!-- Create a header main menu -->
<header>
<nav>
<ul class="menu">
<li><a href="#">Home</a></li>
<li><a href="#">About</a>
<ul class="submenu">
<li><a href="#">Our Team</a></li>
<li><a href="#">Our Mission</a></li>
<li><a href="#">Our History</a></li>
</ul>
</li>
<li><a href="#">Services</a>
<ul class="submenu">
<li><a href="#">Web Design</a></li>
<li><a href="#">Graphic Design</a></li>
<li><a href="#">Marketing</a></li>
</ul>
</li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
</header>
<!-- Create a button that opens a modal -->
<button id="open-modal">Open Modal</button>
<!-- Create a modal -->
<!-- The button above opens a modal that has a form -->
<!-- The form changes the background color from white to black -->
<!-- The form changes the text color from black to white -->
<!-- The form changes the font family to Arial -->
<!-- The form allows the user to change the font-size -->
<div class="modal">
<form action="">
<label for="background-color">Background Color</label>
<input type="color" name="background-color" id="background-color">
<label for="text-color">Text Color</label>
<input type="color" name="text-color" id="text-color">
<label for="font-family">Font Family</label>
<select name="font-family" id="font-family">
<option value="Arial">Arial</option>
<option value="Times New Roman">Times New Roman</option>
<option value="Courier New">Courier New</option>
</select>
<label for="font-size">Font Size</label>
<input type="range" name="font-size" id="font-size" min="10" max="50">
<input type="submit" value="Submit">
</form>
</div>
<!-- 2 -->
<!-- On css/styles.css style the navigation menu -->
<script src="main.js" type="module"></script>
</body>
</html>