Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
111 lines (95 loc) · 3.75 KB
/
Copy pathindex.html
File metadata and controls
111 lines (95 loc) · 3.75 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>XAYTHEON - Collaborative Innovation Platform</title>
<link rel="icon" href="assets/favicon.svg" type="image/svg+xml">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="canvas-container">
<canvas id="three-canvas"></canvas>
<div id="loading-screen" class="loading-screen">
<div class="loader"></div>
<p>Initializing XAYTHEON...</p>
</div>
</div>
<div class="content">
<nav class="navbar">
<div class="nav-container">
<a class="logo" href="index.html" aria-label="XAYTHEON home">
<img class="logo-img" src="assets/logo/thelogo.png" alt="XAYTHEON logo" />
</a>
<ul class="nav-menu">
<li><a class="nav-link" href="github.html">GitHub Dashboard</a></li>
<li><a class="nav-link" href="community.html">Community Highlights</a></li>
<li><a class="nav-link" href="explore.html">Explore by Topic</a></li>
<li><a class="nav-link" href="contributions.html">Contributions</a></li>
</ul>
<button id="theme-toggle" class="btn btn-primary" style="margin: 0px !important;"></button>
</div>
</nav>
<section id="home" class="hero">
<div class="hero-content">
<div id="xai-warning"
style="
display:none;
margin-bottom:20px;
padding:12px;
border-radius:8px;
background:#fff3cd;
color:#856404;
font-weight:bold;">
</div>
<h1 class="hero-title">
<span class="title-line">Welcome to</span>
<span class="title-main title-main--logo">
<img src="assets/logo/thelogo.png" alt="XAYTHEON" class="title-logo-img" />
</span>
<span class="title-subtitle">
Where <span class="accent-glow">INNOVATION</span> Meets
<span class="accent-glow">COLLAB</span>ORATION
</span>
</h1>
</div>
</section>
<footer class="footer">
<div class="container">
<div class="footer-content">
<div class="footer-brand">
<span class="logo-text">XAYTHEON</span>
<p>Empowering the next generation of innovators</p>
</div>
<span class="footer-label">XAYTHEON</span>
</div>
<div class="footer-bottom">
<p>© 2025 XAYTHEON. All rights reserved.</p>
</div>
</div>
</footer>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/three@0.128.0/examples/js/controls/OrbitControls.js"></script>
<script src="https://cdn.jsdelivr.net/npm/three@0.128.0/examples/js/loaders/GLTFLoader.js"></script>
<script src="script.js"></script>
<script>
const toggleBtn = document.getElementById('theme-toggle');
const savedTheme = localStorage.getItem('theme') ||
(window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light');
document.documentElement.setAttribute('data-theme', savedTheme);
updateButtonLabel(savedTheme);
toggleBtn.addEventListener('click', () => {
const currentTheme = document.documentElement.getAttribute('data-theme');
const newTheme = currentTheme === 'dark' ? 'light' : 'dark';
document.documentElement.setAttribute('data-theme', newTheme);
localStorage.setItem('theme', newTheme);
updateButtonLabel(newTheme);
console.log(currentTheme);
});
function updateButtonLabel(theme) {
toggleBtn.innerHTML = theme === 'dark' ? '☀️' : '🌙';
}
</script>
</body>
</html>