-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
about.html
73 lines (61 loc) · 2.22 KB
/
about.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>CommuniSphere - About</title>
<link rel="stylesheet" href="Style.css">
</head>
<body>
<header>
<nav>
<div class="button-container">
<button id="home-button" onclick="window.location.href = 'index.html'">Home</button>
<button id="login-link" onclick="window.location.href ='login.html'">Login</button>
</div>
<ul>
<li><a href="index.html">Newsfeed</a></li>
<li><a href="profile.html">Profile</a></li>
<li><a href="friends.html">Friends</a></li>
<li><a href="messages.html">Messages</a></li>
<li><a href="settings.html">Settings</a></li>
<li><a href="register.html">Register</a></li>
<li><a href="about.html">About</a></li>
</ul>
</nav>
</header>
<main>
<h1>About CommunitySphere</h1>
<p>CommunitySphere is a social media platform designed to bring people closer together, emphasized on security and efficiency.</p>
<p>Created by Son (David) Nguyen, est. 2023</p>
</main>
<div id="login-modal" class="modal">
<div class="modal-content">
<span class="close">×</span>
<h2>Login</h2>
<form id="login-form">
<label for="username">Username:</label>
<input type="text" id="username" name="username" required />
<label for="password">Password:</label>
<input type="password" id="password" name="password" required />
<button type="submit">Login</button>
</form>
</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', () => {
const theme = localStorage.getItem('theme') || 'light';
applyTheme(theme);
});
function applyTheme(theme) {
const themedElements = document.querySelectorAll('body, header, nav, main, footer, #post-form, .post');
themedElements.forEach(element => {
if (theme === 'dark') {
element.classList.add('dark');
} else {
element.classList.remove('dark');
}
});
}
</script>
<script src="theme.js"></script>
</body>
</html>