-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathisupport.html
228 lines (201 loc) · 6.87 KB
/
isupport.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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Approvideo - Sustainable DIY Solutions</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css">
<style>
@keyframes glitch {
0% { transform: translate(0) }
20% { transform: translate(-2px, 2px) }
40% { transform: translate(-2px, -2px) }
60% { transform: translate(2px, 2px) }
80% { transform: translate(2px, -2px) }
100% { transform: translate(0) }
}
.theme-slider {
height: 200px;
width: 60px;
background: #000;
border: 2px solid #444;
border-radius: 30px;
position: relative;
cursor: pointer;
}
.slider-knob {
width: 40px;
height: 40px;
background: #fff;
border-radius: 50%;
position: absolute;
left: 50%;
transform: translateX(-50%);
transition: top 0.3s ease;
}
.theme-marker {
position: absolute;
right: -80px;
color: #fff;
font-family: monospace;
font-weight: bold;
opacity: 0.5;
transition: opacity 0.3s ease;
}
.theme-marker.active {
opacity: 1;
animation: glitch 0.3s infinite;
}
.content-panel {
background: rgba(0, 0, 0, 0.8);
border: 2px solid;
transition: all 0.3s ease;
overflow: hidden;
}
.content-panel:hover {
transform: translateY(-5px);
}
.panel-icon {
font-size: 2rem;
transition: transform 0.3s ease;
}
.content-panel:hover .panel-icon {
transform: scale(1.2);
}
.mondrian-border {
position: relative;
border: 4px solid #000;
}
.mondrian-border::before {
content: '';
position: absolute;
top: 20%;
left: 0;
right: 0;
height: 4px;
background: #000;
}
.mondrian-border::after {
content: '';
position: absolute;
top: 0;
bottom: 0;
left: 20%;
width: 4px;
background: #000;
}
</style>
</head>
<body class="bg-gray-900">
<!-- Theme Slider -->
<div class="fixed right-8 top-1/2 transform -translate-y-1/2 z-50 flex items-center">
<div class="theme-slider" id="themeSlider">
<div class="slider-knob" style="top: 20px"></div>
<span class="theme-marker" style="top: 30px">CYBER</span>
<span class="theme-marker" style="top: 90px">SOLAR</span>
<span class="theme-marker" style="top: 150px">WASTE</span>
</div>
</div>
<!-- Content Grid -->
<div class="container mx-auto px-4 py-16">
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
<!-- Panels will be dynamically generated -->
</div>
</div>
<script>
// Theme configuration
const themes = {
cyber: {
primary: '#22d3ee',
accent: '#06b6d4',
background: 'bg-gray-900'
},
solar: {
primary: '#4ade80',
accent: '#22c55e',
background: 'bg-emerald-900'
},
waste: {
primary: '#fbbf24',
accent: '#d97706',
background: 'bg-amber-900'
}
};
// Panel data
const panels = [
{
icon: 'fa-house',
title: 'SHELTER',
items: ['Temporary', 'Permanent', 'Natural Building']
},
// Add other panels...
];
// Theme slider functionality
const slider = document.getElementById('themeSlider');
const knob = slider.querySelector('.slider-knob');
const markers = slider.querySelectorAll('.theme-marker');
let isDragging = false;
let startY = 0;
let currentY = 20;
slider.addEventListener('mousedown', startDragging);
document.addEventListener('mousemove', drag);
document.addEventListener('mouseup', stopDragging);
function startDragging(e) {
isDragging = true;
startY = e.clientY - currentY;
}
function drag(e) {
if (!isDragging) return;
currentY = Math.max(20, Math.min(150, e.clientY - startY));
knob.style.top = `${currentY}px`;
// Update theme based on position
updateTheme(currentY);
}
function stopDragging() {
isDragging = false;
}
function updateTheme(position) {
let theme;
if (position < 60) theme = 'cyber';
else if (position < 120) theme = 'solar';
else theme = 'waste';
// Update active marker
markers.forEach(marker => {
marker.classList.toggle('active',
parseInt(marker.style.top) === Math.round(position));
});
// Apply theme
document.body.className = themes[theme].background;
updatePanels(theme);
}
// Initialize panels
function createPanel(data, theme) {
return `
<div class="content-panel mondrian-border"
style="border-color: ${themes[theme].primary}">
<div class="p-6">
<i class="fas ${data.icon} panel-icon mb-4"
style="color: ${themes[theme].accent}"></i>
<h3 class="text-2xl font-bold text-white mb-4">${data.title}</h3>
<ul class="space-y-2">
${data.items.map(item => `
<li class="text-gray-300">
<i class="fas fa-code-branch mr-2 opacity-50"></i>
${item}
</li>
`).join('')}
</ul>
</div>
</div>
`;
}
function updatePanels(theme) {
const grid = document.querySelector('.grid');
grid.innerHTML = panels.map(panel => createPanel(panel, theme)).join('');
}
// Initialize with cyber theme
updateTheme(20);
</script>
</body>
</html>