Skip to content

Commit 1c5a5cc

Browse files
authored
Update notes.html
Signed-off-by: Coding331 <[email protected]>
1 parent edae739 commit 1c5a5cc

File tree

1 file changed

+77
-24
lines changed

1 file changed

+77
-24
lines changed

notes.html

Lines changed: 77 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -9,76 +9,129 @@
99
margin: 0;
1010
padding: 0;
1111
box-sizing: border-box;
12-
font-family: Arial, sans-serif;
12+
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
1313
}
1414
body {
1515
display: flex;
1616
flex-direction: column;
1717
min-height: 100vh;
18+
background-color: #f4f4f4;
1819
}
1920
header {
20-
background: #333;
21+
background: #2d6e7f;
2122
color: white;
22-
padding: 20px;
23+
padding: 30px 20px;
2324
text-align: center;
25+
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
26+
}
27+
header h1 {
28+
font-size: 2.5em;
2429
}
2530
nav {
26-
background: #444;
27-
padding: 10px;
31+
background: #1e4f5b;
32+
padding: 15px;
2833
text-align: center;
34+
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
2935
}
3036
nav a {
3137
color: white;
3238
margin: 0 15px;
3339
text-decoration: none;
40+
font-size: 1.2em;
41+
transition: color 0.3s ease;
42+
}
43+
nav a:hover {
44+
color: #4CAF50;
3445
}
3546
.container {
3647
flex: 1;
3748
padding: 20px;
3849
max-width: 800px;
3950
margin: auto;
4051
}
41-
.note-list {
42-
list-style: none;
43-
padding: 0;
52+
h2 {
53+
margin-bottom: 20px;
54+
color: #2d6e7f;
4455
}
45-
.note-list li {
46-
background: #f4f4f4;
47-
margin: 10px 0;
56+
textarea {
57+
width: 100%;
58+
height: 300px;
4859
padding: 10px;
49-
border-left: 5px solid #333;
60+
font-size: 1.1em;
61+
border: 1px solid #ccc;
62+
border-radius: 5px;
63+
resize: vertical;
64+
}
65+
.button-container {
66+
display: flex;
67+
justify-content: space-between;
68+
margin-top: 10px;
69+
}
70+
.button {
71+
display: inline-block;
72+
background-color: #2d6e7f;
73+
color: white;
74+
text-align: center;
75+
padding: 10px 20px;
76+
font-size: 1em;
77+
cursor: pointer;
78+
border-radius: 5px;
79+
text-decoration: none;
80+
transition: background-color 0.3s;
81+
border: none;
82+
}
83+
.button:hover {
84+
background-color: #1e4f5b;
5085
}
5186
footer {
5287
background: #333;
5388
color: white;
5489
text-align: center;
55-
padding: 10px;
90+
padding: 20px;
5691
margin-top: auto;
92+
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
5793
}
5894
</style>
5995
</head>
6096
<body>
6197
<header>
62-
<h1>Notes</h1>
98+
<h1>Study Notes</h1>
6399
</header>
64100
<nav>
65101
<a href="index.html">Home</a>
66-
<a href="library.html">Library</a>
67-
<a href="notes.html">Notes</a>
68-
<a href="feedback.html">Feedback</a>
102+
<a href="library.html">Study Guides</a>
103+
<a href="physics.html">Physics</a>
104+
<a href="math.html">Mathematics</a>
69105
</nav>
70106
<div class="container">
71107
<h2>Your Notes</h2>
72-
<ul class="note-list">
73-
<li>Chapter 1 - Algebra Basics</li>
74-
<li>Chapter 5 - Newton's Laws</li>
75-
<li>WWII Summary Notes</li>
76-
<li>Microeconomics Key Concepts</li>
77-
<li>Shakespeare's Themes</li>
78-
</ul>
108+
<textarea id="notes" placeholder="Write your notes here..."></textarea>
109+
<div class="button-container">
110+
<button class="button" onclick="saveNotes()">Save Notes</button>
111+
<button class="button" onclick="clearNotes()">Clear Notes</button>
112+
</div>
79113
</div>
80114
<footer>
81115
<p>&copy; 2025 Study Hub. All rights reserved.</p>
82116
</footer>
117+
118+
<script>
119+
// Load saved notes from local storage
120+
document.addEventListener("DOMContentLoaded", function() {
121+
document.getElementById("notes").value = localStorage.getItem("userNotes") || "";
122+
});
123+
124+
function saveNotes() {
125+
localStorage.setItem("userNotes", document.getElementById("notes").value);
126+
alert("Notes saved!");
127+
}
128+
129+
function clearNotes() {
130+
if (confirm("Are you sure you want to clear your notes?")) {
131+
document.getElementById("notes").value = "";
132+
localStorage.removeItem("userNotes");
133+
}
134+
}
135+
</script>
83136
</body>
84137
</html>

0 commit comments

Comments
 (0)