-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.html
More file actions
412 lines (358 loc) · 18.5 KB
/
test.html
File metadata and controls
412 lines (358 loc) · 18.5 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
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
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Skedaddle Hub</title>
<!-- Favicon -->
<link rel="icon" type="image/png" href="skedaddle_raccoon-humane-wildlife-control-franchise.png">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/lucide@latest"></script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');
:root {
--brand-green: #00843d;
--brand-blue: #3b82f6;
--brand-orange: #ea580c;
--brand-red: #ef4444;
}
body {
font-family: 'Inter', sans-serif;
background-color: #0f172a;
transition: background 1.5s cubic-bezier(0.4, 0, 0.2, 1);
margin: 0;
padding: 0;
overflow-x: hidden;
color: #f1f5f9;
}
.hub-container {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background: radial-gradient(circle at center, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 1) 100%);
transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
z-index: 10;
}
#star-canvas {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 1;
transition: opacity 1.5s ease;
}
/* Desktop Hover Backgrounds */
@media (min-width: 1024px) {
.bg-portal-hover { background: radial-gradient(circle at 30% 50%, #f1f5f9 0%, #cbd5e1 100%); }
.bg-xmas-hover { background: radial-gradient(circle at 70% 50%, #1e1b4b 0%, #0f172a 100%); }
.bg-salesforce-hover { background: radial-gradient(circle at 50% 50%, #1e293b 0%, #082f49 100%); }
}
.glass-card {
background: rgba(255, 255, 255, 0.02);
backdrop-filter: blur(24px);
border: 1px solid rgba(255, 255, 255, 0.08);
transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
overflow: hidden;
}
/* Card Sheen Animation */
.glass-card::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 50%;
height: 100%;
background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.03), transparent);
transform: skewX(-25deg);
transition: 0.75s;
}
.glass-card:hover::before {
left: 150%;
transition: 0.75s;
}
.card-portal:hover {
background: white;
transform: translateY(-10px);
box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.12);
border-color: #e2e8f0;
}
.card-xmas:hover {
background: rgba(30, 41, 59, 0.95);
transform: translateY(-10px);
box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
border-color: var(--brand-blue);
}
.sub-card:hover {
transform: translateY(-5px);
border-color: rgba(255,255,255,0.2);
background: rgba(255,255,255,0.05);
}
.sub-card-salesforce:hover { border-color: var(--brand-blue); }
.sub-card-recall:hover { border-color: var(--brand-red); }
.status-dot {
width: 8px;
height: 8px;
background-color: #22c55e;
border-radius: 50%;
box-shadow: 0 0 12px #22c55e;
animation: pulse 2.5s infinite;
}
@keyframes pulse {
0% { opacity: 1; transform: scale(1); }
50% { opacity: 0.4; transform: scale(1.4); }
100% { opacity: 1; transform: scale(1); }
}
.festive-border::after {
content: '';
position: absolute;
top: 0; left: 0; right: 0; height: 5px;
background: linear-gradient(90deg, #ef4444, #fbbf24, #22c55e);
opacity: 0;
transition: opacity 0.5s ease;
border-radius: 3.5rem 3.5rem 0 0;
}
.card-xmas:hover.festive-border::after { opacity: 1; }
.no-tap-highlight { -webkit-tap-highlight-color: transparent; }
@media (max-width: 1024px) {
.hub-container { height: auto; padding: 6rem 1.25rem 4rem 1.25rem; overflow-y: auto; align-items: flex-start; }
body { overflow-y: auto; }
}
</style>
</head>
<body>
<canvas id="star-canvas"></canvas>
<!-- Header Status & Clock -->
<div class="fixed top-0 left-0 w-full p-4 md:p-10 flex justify-between items-start z-50 pointer-events-none">
<div class="flex flex-col gap-2 pointer-events-auto">
<div class="flex items-center gap-2 text-[10px] font-black uppercase tracking-[0.2em] text-slate-400">
<span class="status-dot"></span> Hub Status: Online
</div>
<div class="flex items-center gap-2 px-3 py-1 bg-white/5 backdrop-blur-md rounded-full border border-white/10 text-[9px] font-bold text-slate-400 uppercase tracking-tighter">
<i data-lucide="shield-check" class="w-3 h-3 text-emerald-500"></i> Secure Session
</div>
</div>
<div class="flex flex-col items-end pointer-events-auto">
<div id="live-clock" class="text-3xl md:text-5xl font-black text-white tracking-tighter tabular-nums leading-none">
00:00:00
</div>
<div id="live-date" class="text-[10px] font-bold text-slate-500 uppercase tracking-widest mt-2">
Syncing Date...
</div>
</div>
</div>
<div id="main-container" class="hub-container">
<div class="max-w-7xl w-full flex flex-col gap-10 md:gap-14 px-4 md:px-12 py-10">
<!-- Branding Header -->
<div class="text-center space-y-4">
<div class="inline-flex items-center gap-3 px-4 py-1.5 bg-blue-500/10 rounded-full border border-blue-500/20">
<p id="greeting" class="text-blue-400 font-black uppercase tracking-[0.3em] text-[10px] md:text-xs">
Connecting...
</p>
</div>
<h1 id="main-title" class="text-6xl md:text-[10rem] font-black uppercase tracking-tighter text-white transition-all duration-1000 leading-none">
<span style="color: var(--brand-green);">Skedaddle</span> Hub
</h1>
<div class="flex items-center justify-center gap-6 text-slate-500 font-bold uppercase tracking-[0.3em] text-[9px] md:text-[11px]">
<span class="hover:text-blue-400 transition-colors cursor-default">Field Operations</span>
<span class="w-1.5 h-1.5 bg-slate-800 rounded-full"></span>
<span class="hover:text-blue-400 transition-colors cursor-default">Xmas Design</span>
</div>
</div>
<!-- Primary Grid (Main Apps) -->
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6 md:gap-10">
<!-- Technician Portal -->
<a href="https://rollert2.github.io/Skedaddle-Timeclock/"
onmouseenter="setTheme('portal')"
onmouseleave="resetTheme()"
class="card-portal glass-card rounded-[3.5rem] p-10 md:p-14 flex flex-col items-center text-center group no-tap-highlight">
<div class="w-28 h-28 md:w-32 md:h-32 mb-8 p-6 bg-white rounded-[2.5rem] shadow-2xl group-hover:scale-105 transition-all duration-700">
<img src="https://www.skedaddlewildlife.com/wp-content/themes/salcode-bootstrap-genesis/images/logo_r.png"
alt="Technician Portal" class="w-full h-full object-contain">
</div>
<h2 class="text-3xl md:text-5xl font-black text-white group-hover:text-slate-900 transition-colors uppercase tracking-tighter mb-4">
Technician Portal
</h2>
<p class="text-slate-400 group-hover:text-slate-600 transition-colors mb-10 text-xs md:text-sm leading-relaxed max-w-sm font-medium">
Log shift hours, manage vehicle inventory, and access technical materials.
</p>
<div class="mt-auto flex items-center gap-4 px-10 py-4 bg-orange-600 text-white rounded-[1.2rem] font-black text-xs uppercase tracking-widest group-hover:bg-orange-500 transition-all shadow-xl">
Open Portal <i data-lucide="arrow-right" class="w-4 h-4"></i>
</div>
</a>
<!-- Map Maker -->
<a href="https://rollert2.github.io/SkedaddleMapMaker/"
onmouseenter="setTheme('xmas')"
onmouseleave="resetTheme()"
class="card-xmas glass-card festive-border rounded-[3.5rem] p-10 md:p-14 flex flex-col items-center text-center group no-tap-highlight">
<div class="w-28 h-28 md:w-32 md:h-32 mb-8 p-6 bg-slate-800 rounded-[2.5rem] shadow-2xl border border-slate-700 group-hover:border-blue-500 group-hover:scale-105 transition-all duration-700">
<img src="https://i.imgur.com/zdJfkpg.png"
alt="Map Maker" class="w-full h-full object-contain rounded-2xl">
</div>
<h2 class="text-3xl md:text-5xl font-black text-white uppercase tracking-tighter mb-4">
Xmas Map Maker
</h2>
<p class="text-slate-400 group-hover:text-slate-200 transition-colors mb-10 text-xs md:text-sm leading-relaxed max-w-sm font-medium">
Precision mapping and design environment for holiday light installations.
</p>
<div class="mt-auto flex items-center gap-4 px-10 py-4 bg-blue-700 text-white rounded-[1.2rem] font-black text-xs uppercase tracking-widest group-hover:bg-blue-600 transition-all shadow-xl">
Open Designer <i data-lucide="sparkles" class="w-4 h-4"></i>
</div>
<div class="absolute -bottom-10 -right-10 opacity-0 group-hover:opacity-10 transition-all duration-1000 group-hover:-translate-x-6 group-hover:-translate-y-6">
<i data-lucide="snowflake" class="w-32 h-32 text-blue-400"></i>
</div>
</a>
</div>
<!-- Sub Grid (Salesforce & Recalls) -->
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<!-- Salesforce Sub Button -->
<a href="https://skedaddle.my.salesforce.com/00O41000008MfsA"
target="_blank"
onmouseenter="setTheme('salesforce')"
onmouseleave="resetTheme()"
class="sub-card sub-card-salesforce glass-card rounded-[2.5rem] p-8 flex items-center justify-between group no-tap-highlight">
<div class="flex items-center gap-6">
<div class="w-16 h-16 bg-blue-600/20 rounded-2xl flex items-center justify-center group-hover:bg-blue-600 transition-colors">
<i data-lucide="cloud" class="w-7 h-7 text-blue-400 group-hover:text-white"></i>
</div>
<div class="text-left">
<h3 class="text-2xl font-black text-white uppercase tracking-tight">Salesforce</h3>
<p class="text-slate-500 text-[10px] font-bold uppercase tracking-widest">Main Pipeline & CRM</p>
</div>
</div>
<i data-lucide="external-link" class="w-5 h-5 text-slate-700 group-hover:text-blue-400 transition-colors"></i>
</a>
<!-- Recalls Sub Button -->
<a href="https://skedaddle.my.salesforce.com/00OOK0000004kfN"
target="_blank"
onmouseenter="setTheme('recall')"
onmouseleave="resetTheme()"
class="sub-card sub-card-recall glass-card rounded-[2.5rem] p-8 flex items-center justify-between group no-tap-highlight">
<div class="flex items-center gap-6">
<div class="w-16 h-16 bg-red-600/20 rounded-2xl flex items-center justify-center group-hover:bg-red-600 transition-colors">
<i data-lucide="refresh-ccw" class="w-7 h-7 text-red-400 group-hover:text-white"></i>
</div>
<div class="text-left">
<h3 class="text-2xl font-black text-white uppercase tracking-tight">Recalls</h3>
<p class="text-slate-500 text-[10px] font-bold uppercase tracking-widest">Priority Task Queue</p>
</div>
</div>
<i data-lucide="external-link" class="w-5 h-5 text-slate-700 group-hover:text-red-400 transition-colors"></i>
</a>
</div>
<!-- Focus Message Footer -->
<div class="flex flex-col items-center gap-6 pt-4 pb-12">
<div class="w-full max-w-xl px-6 py-3 bg-white/5 backdrop-blur-sm rounded-2xl border border-white/5 flex items-center justify-center gap-4">
<div class="flex items-center gap-2 text-[10px] font-black text-blue-400 uppercase tracking-widest">
<i data-lucide="info" class="w-4 h-4"></i> Hub Focus:
</div>
<div id="focus-msg" class="text-[10px] font-bold text-slate-400 uppercase tracking-tight transition-opacity duration-500">
Initialising safety protocols...
</div>
</div>
</div>
</div>
</div>
<script>
lucide.createIcons();
const container = document.getElementById('main-container');
const title = document.getElementById('main-title');
const greeting = document.getElementById('greeting');
const clockEl = document.getElementById('live-clock');
const dateEl = document.getElementById('live-date');
const starCanvas = document.getElementById('star-canvas');
const focusMsg = document.getElementById('focus-msg');
const tips = [
"Check all ladder locks before climbing.",
"Wear high-vis when working near traffic.",
"Sync your time logs at shift completion.",
"Verify shingle clip quantity before mapping.",
"Hydrate consistently during field work.",
"Ensure all equipment is secured for travel."
];
let tipIdx = 0;
setInterval(() => {
tipIdx = (tipIdx + 1) % tips.length;
focusMsg.style.opacity = 0;
setTimeout(() => {
focusMsg.textContent = tips[tipIdx];
focusMsg.style.opacity = 1;
}, 500);
}, 8000);
focusMsg.textContent = tips[0];
function updateHubTime() {
const now = new Date();
clockEl.textContent = now.toLocaleTimeString('en-US', { hour12: false });
dateEl.textContent = now.toLocaleDateString('en-US', { weekday: 'long', month: 'long', day: 'numeric' });
const hours = now.getHours();
if (hours < 12) greeting.textContent = "Good Morning, Technician";
else if (hours < 17) greeting.textContent = "Good Afternoon, Technician";
else greeting.textContent = "Good Evening, Technician";
}
setInterval(updateHubTime, 1000);
updateHubTime();
function setTheme(type) {
if (window.innerWidth < 1024) return; // Disable hover bg shift on mobile
if (type === 'portal') {
container.className = 'hub-container bg-portal-hover';
title.style.color = '#1e293b';
starCanvas.style.opacity = '0.05';
} else if (type === 'xmas') {
container.className = 'hub-container bg-xmas-hover';
title.style.color = '#ffffff';
starCanvas.style.opacity = '0.7';
} else if (type === 'salesforce') {
container.className = 'hub-container bg-salesforce-hover';
starCanvas.style.opacity = '0.4';
}
}
function resetTheme() {
container.className = 'hub-container';
title.style.color = '';
starCanvas.style.opacity = '0.25';
}
const ctx = starCanvas.getContext('2d');
let stars = [];
let mouseShift = { x: 0, y: 0 };
function initStars() {
starCanvas.width = window.innerWidth;
starCanvas.height = window.innerHeight;
stars = [];
for (let i = 0; i < 200; i++) {
stars.push({
x: Math.random() * starCanvas.width,
y: Math.random() * starCanvas.height,
size: Math.random() * 1.5,
speed: Math.random() * 0.12 + 0.05,
opacity: Math.random()
});
}
}
window.addEventListener('resize', initStars);
window.addEventListener('mousemove', (e) => {
mouseShift.x = (e.clientX - window.innerWidth / 2) * 0.03;
mouseShift.y = (e.clientY - window.innerHeight / 2) * 0.03;
});
function animateStars() {
ctx.clearRect(0, 0, starCanvas.width, starCanvas.height);
stars.forEach(s => {
s.y -= s.speed;
if (s.y < 0) s.y = starCanvas.height;
const sx = s.x + mouseShift.x * s.size;
const sy = s.y + mouseShift.y * s.size;
ctx.fillStyle = `rgba(255, 255, 255, ${s.opacity})`;
ctx.beginPath();
ctx.arc(sx, sy, s.size, 0, Math.PI * 2);
ctx.fill();
});
requestAnimationFrame(animateStars);
}
initStars();
animateStars();
</script>
</body>
</html>