-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.html
154 lines (135 loc) · 4.12 KB
/
home.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Wingless</title>
<link href="https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;700&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Ubuntu', sans-serif;
background-color: #101010;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
flex-direction: column;
color: #ffffff;
overflow: hidden;
}
blockquote {
text-align: center;
max-width: 80%;
font-size: 300%;
}
#author {
color: #00ff27;
margin-top: 20px;
font-size: 75%;
}
button {
margin-top: 20px;
background-color: #00ff27;
color: #101010;
border: none;
padding: 10px 20px;
font-size: 1em;
cursor: pointer;
transition: background-color 0.3s ease;
}
button:hover {
background-color: #00cc22;
}
/* Hamburger Menu */
.menu-icon {
position: absolute;
top: 20px;
left: 20px;
cursor: pointer;
width: 15px;
/* Reduced size by half */
height: 10px;
/* Reduced size by half */
display: flex;
flex-direction: column;
justify-content: space-between;
z-index: 1100;
/* Ensure it's always above the menu */
}
.menu-icon span {
background-color: #ffffff;
height: 2px;
/* Reduced thickness by half */
border-radius: 2px;
transition: transform 0.3s ease;
}
/* Menu */
.menu {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: #101010;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
transform: translateX(-100%);
transition: transform 0.3s ease;
z-index: 1000;
}
.menu a {
color: #00ff27;
text-decoration: none;
font-size: 200%;
margin: 20px 0;
}
.menu.active {
transform: translateX(0);
}
</style>
</head>
<body>
<!-- Hamburger Icon -->
<div class="menu-icon" onclick="toggleMenu()">
<span></span>
<span></span>
<span></span>
</div>
<!-- Menu -->
<nav class="menu" id="menu">
<a href="https://wingless.cc" target="_blank">Home</a>
<a href="https://wingless.cc/radio" target="_blank">Radio</a>
<a href="https://wingless.cc/domains" target="_blank">Domains</a>
<a href="https://wingless.cc/socials" target="_blank">Socials</a>
</nav>
<blockquote id="quote-block">
<p id="quote-text">Loading...</p>
<footer id="author">Loading...</footer>
</blockquote>
<button onclick="loadQuote()">New</button>
<script>
function toggleMenu() {
const menu = document.getElementById('menu');
menu.classList.toggle('active');
}
function loadQuote() {
fetch('https://wingless.cc/quotes.json')
.then(response => response.json())
.then(data => {
const randomIndex = Math.floor(Math.random() * data.length);
const randomQuote = data[randomIndex];
document.getElementById('quote-text').textContent = randomQuote.quote;
document.getElementById('author').textContent = randomQuote.author;
})
.catch(error => {
console.error('Error loading quotes:', error);
});
}
// Initial load
loadQuote();
</script>
</body>
</html>