-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
143 lines (125 loc) · 3.03 KB
/
Copy pathindex.html
File metadata and controls
143 lines (125 loc) · 3.03 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Solar Group - JLU</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
:root {
--bg-light: #ffffff;
--bg-dark: #111111;
--text-light: #000000;
--text-dark: #eeeeee;
--accent: #0077cc;
}
body {
margin: 0;
font-family: sans-serif;
transition: background-color 0.3s, color 0.3s;
}
body.light-mode {
background-color: var(--bg-light);
color: var(--text-light);
}
body.dark-mode {
background-color: var(--bg-dark);
color: var(--text-dark);
}
header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 2rem;
background-color: var(--accent);
color: white;
}
header img {
height: 40px;
margin-right: 1rem;
}
nav a {
margin: 0 1rem;
text-decoration: none;
color: white;
font-weight: bold;
}
nav a:hover {
text-decoration: underline;
}
main {
padding: 2rem;
max-width: 800px;
margin: auto;
}
button.toggle-mode {
padding: 0.5rem 1rem;
font-size: 1rem;
margin-bottom: 2rem;
cursor: pointer;
}
ul {
padding-left: 1.2rem;
}
</style>
</head>
<body>
<header>
<div style="display: flex; align-items: center;">
<img src="Images/Avatar.jpg" alt="Logo" style="height: 40px; margin-right: 1rem;">
<h1>JLU Solar Group</h1>
</div>
<nav>
<a href="#projects">Projects</a>
<a href="#members">Members</a>
<a href="#contact">Contact</a>
</nav>
</header>
<main>
<button class="toggle-mode" onclick="toggleMode()">🌗 切换亮/暗模式</button>
<section>
<h2>About Us</h2>
<p>
<strong>Solar Group</strong>, School of Artificial Intelligence,<br>
Jilin University, Changchun City, Jilin Province, China.
</p>
</section>
<section>
<h2>Research Fields</h2>
<ul>
<li>Spiking Neural Network</li>
<li>Prompts Optimization</li>
<li>Large Language Models</li>
<li>Computer Vision</li>
<li>Natural Language Processing</li>
</ul>
</section>
<section id="projects">
<h2>Projects</h2>
<p>Coming soon...</p>
</section>
<section id="members">
<h2>Members</h2>
<p>Coming soon...</p>
</section>
<section id="contact">
<h2>Contact</h2>
<p>Email: cokosuyogs@outlook.com</p>
<p>Github Page: https://github.com/JLU-Solar</p>
</section>
</main>
<script>
// 检测系统主题
const prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
const body = document.body;
if (prefersDark) {
body.classList.add('dark-mode');
} else {
body.classList.add('light-mode');
}
function toggleMode() {
body.classList.toggle("dark-mode");
body.classList.toggle("light-mode");
}
</script>
</body>
</html>