-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuog_notes_website (1).html
188 lines (162 loc) · 5.1 KB
/
uog_notes_website (1).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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>UOG Notes</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f9;
color: #333;
}
header {
background-color: #333;
color: #fff;
text-align: center;
padding: 1rem 0;
}
nav ul {
list-style: none;
padding: 0;
display: flex;
justify-content: center;
}
nav ul li {
margin: 0 15px;
}
nav ul li a {
color: #fff;
text-decoration: none;
font-weight: bold;
}
.container {
max-width: 1200px;
margin: 20px auto;
padding: 20px;
background-color: #fff;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.search-bar {
margin: 20px 0;
}
.search-bar input {
width: 100%;
padding: 10px;
font-size: 16px;
border: 1px solid #ccc;
border-radius: 4px;
}
.note {
background-color: #e2e2e2;
margin: 10px 0;
padding: 15px;
border-radius: 5px;
}
.login-form, .register-form {
display: flex;
flex-direction: column;
}
.login-form input, .register-form input {
margin: 10px 0;
padding: 10px;
font-size: 16px;
}
.btn {
background-color: #333;
color: #fff;
border: none;
padding: 10px;
font-size: 16px;
cursor: pointer;
}
.btn:hover {
background-color: #555;
}
</style>
</head>
<body>
<header>
<h1>Welcome to UOG Notes</h1>
<nav>
<ul>
<li><a href="#home">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#notes">Notes</a></li>
<li><a href="#contact">Contact</a></li>
<li><a href="#login">Login</a></li>
</ul>
</nav>
</header>
<section id="home" class="container">
<h2>Home</h2>
<p>Welcome to UOG Notes, your one-stop platform for IT student notes, guides, and tutorials.</p>
</section>
<section id="about" class="container">
<h2>About</h2>
<p>UOG Notes is designed to help IT students access notes, guides, and tutorials easily in one place.</p>
</section>
<section id="notes" class="container">
<h2>Notes</h2>
<div class="search-bar">
<input type="text" id="search" placeholder="Search for notes...">
</div>
<div class="note">Note 1: Introduction to Programming</div>
<div class="note">Note 2: Data Structures and Algorithms</div>
<div class="note">Note 3: Database Systems</div>
</section>
<section id="contact" class="container">
<h2>Contact Us</h2>
<p>If you have any questions, feel free to reach out!</p>
<form>
<input type="text" placeholder="Your Name" required>
<input type="email" placeholder="Your Email" required>
<textarea placeholder="Your Message" rows="4" required></textarea>
<button class="btn" type="submit">Send Message</button>
</form>
</section>
<section id="login" class="container">
<h2>Login</h2>
<form class="login-form">
<input type="text" placeholder="Roll Number" required>
<input type="password" placeholder="Password" required>
<button class="btn" type="submit">Login</button>
</form>
<p>Don't have an account? <a href="#register">Register here</a></p>
</section>
<section id="register" class="container">
<h2>Register</h2>
<form class="register-form">
<input type="text" placeholder="Roll Number" required>
<input type="password" placeholder="Set Password" required>
<button class="btn" type="submit">Register</button>
</form>
</section>
<script>
// Simple search functionality
document.getElementById('search').addEventListener('input', function(e) {
const term = e.target.value.toLowerCase();
const notes = document.querySelectorAll('.note');
notes.forEach(note => {
const text = note.textContent.toLowerCase();
note.style.display = text.includes(term) ? 'block' : 'none';
});
});
// Dummy login functionality (for demonstration purposes only)
const loginForm = document.querySelector('.login-form');
loginForm.addEventListener('submit', function(e) {
e.preventDefault();
alert('Login successful (dummy functionality)');
});
// Dummy register functionality (for demonstration purposes only)
const registerForm = document.querySelector('.register-form');
registerForm.addEventListener('submit', function(e) {
e.preventDefault();
alert('Registration successful (dummy functionality)');
});
</script>
</body>
</html>