|
9 | 9 | margin: 0; |
10 | 10 | padding: 0; |
11 | 11 | box-sizing: border-box; |
12 | | - font-family: Arial, sans-serif; |
| 12 | + font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; |
13 | 13 | } |
14 | 14 | body { |
15 | 15 | display: flex; |
16 | 16 | flex-direction: column; |
17 | 17 | min-height: 100vh; |
| 18 | + background-color: #f4f4f4; |
18 | 19 | } |
19 | 20 | header { |
20 | | - background: #333; |
| 21 | + background: #2d6e7f; |
21 | 22 | color: white; |
22 | | - padding: 20px; |
| 23 | + padding: 30px 20px; |
23 | 24 | text-align: center; |
| 25 | + box-shadow: 0 4px 6px rgba(0,0,0,0.1); |
| 26 | + } |
| 27 | + header h1 { |
| 28 | + font-size: 2.5em; |
24 | 29 | } |
25 | 30 | nav { |
26 | | - background: #444; |
27 | | - padding: 10px; |
| 31 | + background: #1e4f5b; |
| 32 | + padding: 15px; |
28 | 33 | text-align: center; |
| 34 | + box-shadow: 0 2px 4px rgba(0,0,0,0.1); |
29 | 35 | } |
30 | 36 | nav a { |
31 | 37 | color: white; |
32 | 38 | margin: 0 15px; |
33 | 39 | text-decoration: none; |
| 40 | + font-size: 1.2em; |
| 41 | + transition: color 0.3s ease; |
| 42 | + } |
| 43 | + nav a:hover { |
| 44 | + color: #4CAF50; |
34 | 45 | } |
35 | 46 | .container { |
36 | 47 | flex: 1; |
37 | 48 | padding: 20px; |
38 | 49 | max-width: 800px; |
39 | 50 | margin: auto; |
40 | 51 | } |
41 | | - .note-list { |
42 | | - list-style: none; |
43 | | - padding: 0; |
| 52 | + h2 { |
| 53 | + margin-bottom: 20px; |
| 54 | + color: #2d6e7f; |
44 | 55 | } |
45 | | - .note-list li { |
46 | | - background: #f4f4f4; |
47 | | - margin: 10px 0; |
| 56 | + textarea { |
| 57 | + width: 100%; |
| 58 | + height: 300px; |
48 | 59 | 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; |
50 | 85 | } |
51 | 86 | footer { |
52 | 87 | background: #333; |
53 | 88 | color: white; |
54 | 89 | text-align: center; |
55 | | - padding: 10px; |
| 90 | + padding: 20px; |
56 | 91 | margin-top: auto; |
| 92 | + box-shadow: 0 2px 4px rgba(0,0,0,0.1); |
57 | 93 | } |
58 | 94 | </style> |
59 | 95 | </head> |
60 | 96 | <body> |
61 | 97 | <header> |
62 | | - <h1>Notes</h1> |
| 98 | + <h1>Study Notes</h1> |
63 | 99 | </header> |
64 | 100 | <nav> |
65 | 101 | <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> |
69 | 105 | </nav> |
70 | 106 | <div class="container"> |
71 | 107 | <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> |
79 | 113 | </div> |
80 | 114 | <footer> |
81 | 115 | <p>© 2025 Study Hub. All rights reserved.</p> |
82 | 116 | </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> |
83 | 136 | </body> |
84 | 137 | </html> |
0 commit comments