-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhome.html
More file actions
72 lines (72 loc) · 2.27 KB
/
home.html
File metadata and controls
72 lines (72 loc) · 2.27 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>NoteTaking App - Home</title>
<style>
body {
font-family: Arial, sans-serif;
background: #f7fafc;
margin: 0;
padding: 0;
display: flex;
min-height: 100vh;
align-items: center;
justify-content: center;
}
.container {
background: #fff;
padding: 2rem 3rem;
border-radius: 12px;
box-shadow: 0 4px 24px rgba(0,0,0,0.08);
text-align: center;
min-width: 320px;
}
h2 {
color: #2d3748;
margin-bottom: 1.2em;
}
label {
font-size: 1rem;
color: #4a5568;
margin-bottom: 0.5em;
display: block;
}
select {
padding: 0.5em 1em;
border-radius: 6px;
border: 1px solid #cbd5e1;
font-size: 1rem;
background: #f7fafc;
margin-bottom: 1.5em;
width: 100%;
box-sizing: border-box;
}
</style>
</head>
<body>
<div class="container">
<h2>What would you like to do?</h2>
<form id="actionForm" action="#" method="post">
<label for="actionSelect">Choose an action:</label>
<select id="actionSelect" name="action">
<option value="view">View Notes</option>
<option value="create">Create New Note</option>
<option value="delete">Delete Note</option>
<option value="update">Update Note</option>
</select>
<button type="submit" style="margin-top: 1em; padding: 0.5em 1.5em; border-radius: 6px; border: none; background: #3182ce; color: #fff; font-size: 1rem; cursor: pointer;">
Submit
</button>
</form>
<script>
document.getElementById('actionForm').addEventListener('submit', function(e) {
e.preventDefault();
const value = document.getElementById('actionSelect').value;
window.location.href = '/home/' + value;
});
</script>
</div>
</body>
</html>