-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWebsite.HTML
More file actions
154 lines (145 loc) · 6.05 KB
/
Copy pathWebsite.HTML
File metadata and controls
154 lines (145 loc) · 6.05 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
144
145
146
147
148
149
150
151
152
153
154
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>JavaDocs</title>
<style>
:root{
--bg:#d1d1d1;
--nav:#000000;
--nav-contrast:#fff;
--muted:#6b7280;
--card:linear-gradient(135deg,rgb(255, 0, 0),#9900ff);
--shadow: 0 2px 6px rgba(8,26,56,0.08);
--radius:8px;
}
*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial;background:var(--bg);color:#ffffff}
/* Top toolbar */
.topbar{
display:flex;
align-items:center;
justify-content:space-between;
gap:1rem;
padding:0.5rem .5rem;
background:var(--nav);
color:var(--nav-contrast);
box-shadow:var(--shadow);
position:sticky;
top:0;
z-index:50;
}
.brand{
display:flex;
align-items:center;
gap:0.75rem;
text-decoration:none;
color:inherit;
}
.brand .logo{
width:36px;height:36px;border-radius:7px;background:linear-gradient(135deg,rgb(118, 1, 252),#00a2ff);display:flex;align-items:center;justify-content:center;
color:var(--nav);font-weight:600;
}
.brand h1{font-size:1rem;margin:0}
nav{display:flex;align-items:center;gap:0.5rem}
/* Dropdown */
.dropdown{position:relative}
.drop-toggle{
background:linear-gradient(135deg,rgb(0, 156, 247),#4400ff);border:0;color:inherit;padding:0.5rem 0.75rem;border-radius:6px;cursor:pointer;font-weight:600;
}
.drop-toggle:focus{outline:3px solid rgb(0, 0, 0)}
.menu{
position:absolute;
right:0;
margin-top:0.5rem;
min-width:180px;
background:var(--card);
background-color: #e0e0e0;
color:#000000;
border-radius:8px;
box-shadow:0 8px 30px rgba(2,6,23,0.12);
overflow:shown;
transform-origin:top right;
transition:opacity .3s ease, transform .3s ease;
opacity:0;pointer-events:none;transform:translateY(-6px) scale(.98);
}
.menu.open{opacity:1;pointer-events:auto;transform:translateY(0) scale(1)}
.menu a{
display:block;padding:0.6rem 0.9rem;text-decoration:none;color:inherit;border-bottom:1px solid #000000;
display:block;padding:0.6rem 0.9rem;text-decoration:none;color:inherit;border-left:1px solid #000000;
display:block;padding:0.6rem 0.9rem;text-decoration:none;color:inherit;border-right:1px solid #000000;
display:block;padding:0.6rem 0.9rem;text-decoration:none;color:inherit;border-Top:1px solid #000000;
display:block;padding:0.6rem 0.9rem;text-decoration:none;color:inherit;border-bottom:1px solid #000000;
}
.menu a:last-child{border: bottom 5px;}
.menu a:hover{background:#a1a1a18f}
/* Page layout */
main{max-width:980px;margin:2rem auto;padding:1rem;}
.card{background:var(--card);padding:1rem;border-radius:var(--radius);box-shadow:var(--shadow)}
footer{text-align:center;padding:1rem;color:var(--muted);font-size:.9rem}
/* Responsive small screens */
@media (max-width:560px){
.brand h1{font-size:.9rem}
.menu{right:0;left:0;margin:0.4rem;border-radius:0.5rem}
}
</style>
</head>
<body>
<header class="topbar" role="banner">
<a href="Website.HTML" class="brand" aria-label="Homepage">
<span class="logo">.Exe</span>
<b><h1>Emulator.Exe's Homepage</h1></b>
</a>
<nav role="navigation" aria-label="Main navigation">
<div class="dropdown" id="pagesDropdown">
<button class="drop-toggle" id="dropToggle" aria-haspopup="true" aria-expanded="false" aria-controls="dropMenu">
Pages ▾
</button>
<div class="menu" id="dropMenu" role="menu" aria-labelledby="dropToggle">
<a href="Website.HTML" role="menuitem">Home</a>
<a href="About.HTML" role="menuitem">About</a>
<a href="DocumentationPage.HTML" role="menuitem">Documentation</a>
<a href="contact.html" role="menuitem">Contact</a>
</div>
</div>
</nav>
</header>
<main>
<section class="card">
<h2>Welcome</h2>
<p>This is EmulatorDotEXE's personal Website!</p>
<p>Documentation related to VScode java WPIlib code for FRC will be occasionally be posted in documentation.</p>
</section>
</main>
<footer>
© <span id="year"></span> EmulatorDotEXE
</footer>
<script>
// Dropdown behavior: toggle, close on outside click or Escape
(function(){
const toggle = document.getElementById('dropToggle');
const menu = document.getElementById('dropMenu');
function setOpen(isOpen){
menu.classList.toggle('open', isOpen);
toggle.setAttribute('aria-expanded', String(Boolean(isOpen)));
}
toggle.addEventListener('click', e => {
e.stopPropagation();
setOpen(!menu.classList.contains('open'));
});
// Close when clicking outside
document.addEventListener('click', (e) => {
if (!menu.classList.contains('open')) return;
if (!menu.contains(e.target) && !toggle.contains(e.target)) setOpen(false);
});
// Close on Escape
document.addEventListener('keydown', (e) => {
if (e.key === 'Escape') setOpen(false);
});
// Set current year
document.getElementById('year').textContent = new Date().getFullYear();
})();
</script>
</body>
</html>