-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate-preview.html
More file actions
624 lines (548 loc) · 18.6 KB
/
template-preview.html
File metadata and controls
624 lines (548 loc) · 18.6 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
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Template Preview - TruckCraft Studio</title>
<meta name="description" content="Preview professional VTC website templates. See how your trucking company website will look with TruckCraft Studio templates.">
<meta name="keywords" content="VTC Template Preview, Trucking Website Preview, Template Demo, TruckCraft Studio">
<link rel="icon" href="assets/logo.png">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<style>
:root {
--primary-color: #7c3aed;
--primary-light: #8b5cf6;
--primary-dark: #6d28d9;
--font-family: 'Inter', sans-serif;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: var(--font-family);
line-height: 1.6;
overflow-x: hidden;
}
.hero-section {
min-height: 100vh;
display: flex;
align-items: center;
position: relative;
background: linear-gradient(135deg, #1a1a2e, #16213e);
color: white;
text-align: center;
padding: 2rem;
}
.container {
max-width: 1200px;
margin: 0 auto;
width: 100%;
}
.company-name {
font-size: 4rem;
font-weight: 700;
margin-bottom: 1rem;
background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.tagline {
font-size: 1.5rem;
margin-bottom: 2rem;
opacity: 0.9;
}
.hero-description {
font-size: 1.1rem;
margin-bottom: 3rem;
max-width: 600px;
margin-left: auto;
margin-right: auto;
opacity: 0.8;
}
.cta-buttons {
display: flex;
gap: 1rem;
justify-content: center;
flex-wrap: wrap;
}
.btn {
padding: 1rem 2rem;
border-radius: 8px;
font-weight: 600;
text-decoration: none;
transition: all 0.3s;
font-size: 1.1rem;
border: none;
cursor: pointer;
}
.btn-primary {
background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
color: white;
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
}
.btn-outline {
background: transparent;
color: white;
border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline:hover {
background: white;
color: #1a1a2e;
}
.section {
padding: 5rem 2rem;
}
.section-title {
font-size: 2.5rem;
font-weight: 700;
text-align: center;
margin-bottom: 1rem;
color: #1a1a2e;
}
.section-description {
font-size: 1.1rem;
text-align: center;
margin-bottom: 3rem;
color: #666;
max-width: 600px;
margin-left: auto;
margin-right: auto;
}
.features-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
margin-top: 3rem;
}
.feature-card {
background: white;
padding: 2rem;
border-radius: 16px;
box-shadow: 0 8px 32px rgba(0,0,0,0.1);
text-align: center;
transition: transform 0.3s;
}
.feature-card:hover {
transform: translateY(-8px);
}
.feature-icon {
width: 80px;
height: 80px;
margin: 0 auto 1.5rem;
background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 2rem;
}
.feature-title {
font-size: 1.5rem;
font-weight: 700;
margin-bottom: 1rem;
color: #1a1a2e;
}
.feature-description {
color: #666;
line-height: 1.6;
}
.footer {
background: #1a1a2e;
color: white;
padding: 3rem 2rem;
text-align: center;
}
.logo {
width: 60px;
height: 60px;
margin: 0 auto 1rem;
background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
font-weight: 700;
color: white;
}
/* Mobile Responsive */
@media (max-width: 768px) {
.company-name {
font-size: 2.5rem;
}
.tagline {
font-size: 1.2rem;
}
.cta-buttons {
flex-direction: column;
align-items: center;
}
.btn {
width: 100%;
max-width: 300px;
}
.section-title {
font-size: 2rem;
}
.features-grid {
grid-template-columns: 1fr;
}
}
/* Extra-small devices */
@media (max-width: 480px) {
.hero-section { padding: 1.5rem; }
.company-name { font-size: 2rem; }
.tagline { font-size: 1rem; }
.hero-description { font-size: 0.95rem; }
.btn { width: 100%; }
.section { padding: 3rem 1rem; }
}
/* Edit Mode Styles */
.editable-element {
outline: 2px dashed transparent;
transition: all 0.2s;
cursor: pointer;
position: relative;
}
.editable-element:hover {
outline: 2px dashed var(--primary-color);
background: rgba(124, 58, 237, 0.1);
}
.editable-element.editing {
outline: 2px solid var(--primary-color);
background: rgba(124, 58, 237, 0.1);
}
.edit-tooltip {
position: absolute;
top: -30px;
left: 50%;
transform: translateX(-50%);
background: var(--primary-color);
color: white;
padding: 0.25rem 0.75rem;
border-radius: 4px;
font-size: 0.75rem;
opacity: 0;
transition: opacity 0.2s;
pointer-events: none;
white-space: nowrap;
z-index: 1000;
}
.editable-element:hover .edit-tooltip {
opacity: 1;
}
/* Theme-aware animations */
@keyframes pulse-primary {
0%, 100% { opacity: 1; }
50% { opacity: 0.7; }
}
.pulse-primary {
animation: pulse-primary 2s infinite;
}
/* Enhanced gradient effects */
.gradient-bg {
background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}
.gradient-text {
background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
/* Interactive elements with theme colors */
.accent-color {
color: var(--primary-color);
}
.border-accent {
border-color: var(--primary-color);
}
.bg-accent {
background-color: var(--primary-color);
}
.bg-accent-light {
background-color: var(--primary-light);
}
</style>
</head>
<body data-no-nav="true" data-no-footer="true">
<!-- Hero Section -->
<section class="hero-section">
<div class="container">
<div class="logo">ET</div>
<h1 class="company-name editable-element" contenteditable="true">
Elite Transport
<div class="edit-tooltip">Click to edit company name</div>
</h1>
<p class="tagline editable-element" contenteditable="true">
Professional VTC Solutions
<div class="edit-tooltip">Click to edit tagline</div>
</p>
<p class="hero-description editable-element" contenteditable="true">
Experience premium transportation services with our professional VTC company. We deliver excellence, reliability, and outstanding customer service across Europe.
<div class="edit-tooltip">Click to edit description</div>
</p>
<div class="cta-buttons">
<a href="#" class="btn btn-primary editable-element" contenteditable="true">
Join Our Team
<div class="edit-tooltip">Click to edit button text</div>
</a>
<a href="#" class="btn btn-outline editable-element" contenteditable="true">
Learn More
<div class="edit-tooltip">Click to edit button text</div>
</a>
</div>
</div>
</section>
<!-- Features Section -->
<section class="section">
<div class="container">
<h2 class="section-title editable-element" contenteditable="true">
Why Choose Elite Transport?
<div class="edit-tooltip">Click to edit section title</div>
</h2>
<p class="section-description editable-element" contenteditable="true">
We provide professional transportation services with a focus on quality, reliability, and customer satisfaction.
<div class="edit-tooltip">Click to edit section description</div>
</p>
<div class="features-grid">
<div class="feature-card">
<div class="feature-icon">🚛</div>
<h3 class="feature-title editable-element" contenteditable="true">
Professional Drivers
<div class="edit-tooltip">Click to edit feature title</div>
</h3>
<p class="feature-description editable-element" contenteditable="true">
Our experienced drivers are trained professionals who prioritize safety and deliver exceptional service on every route.
<div class="edit-tooltip">Click to edit feature description</div>
</p>
</div>
<div class="feature-card">
<div class="feature-icon">⚡</div>
<h3 class="feature-title editable-element" contenteditable="true">
Fast Delivery
<div class="edit-tooltip">Click to edit feature title</div>
</h3>
<p class="feature-description editable-element" contenteditable="true">
We understand the importance of timely deliveries and work hard to meet all deadlines with efficiency and precision.
<div class="edit-tooltip">Click to edit feature description</div>
</p>
</div>
<div class="feature-card">
<div class="feature-icon">🛡️</div>
<h3 class="feature-title editable-element" contenteditable="true">
Reliable Service
<div class="edit-tooltip">Click to edit feature title</div>
</h3>
<p class="feature-description editable-element" contenteditable="true">
Count on us for consistent, dependable transportation services that you can trust for your most important deliveries.
<div class="edit-tooltip">Click to edit feature description</div>
</p>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer class="footer">
<div class="container">
<div class="logo">ET</div>
<p class="editable-element" contenteditable="true">
© 2025 Elite Transport. Professional VTC Services.
<div class="edit-tooltip">Click to edit footer text</div>
</p>
</div>
</footer>
<script>
// Get template type from URL parameter
const urlParams = new URLSearchParams(window.location.search);
const templateType = urlParams.get('template');
// Template configurations with enhanced theming
const templates = {
'elite-transport': {
name: 'Elite Transport',
tagline: 'Professional VTC Solutions',
gradient: 'linear-gradient(135deg, #1a1a2e, #16213e)',
primaryColor: '#7c3aed',
lightColor: '#8b5cf6',
darkColor: '#6d28d9'
},
'cargo-masters': {
name: 'Cargo Masters',
tagline: 'Reliable Transport Services',
gradient: 'linear-gradient(135deg, #f8fafc, #e2e8f0)',
primaryColor: '#3b82f6',
lightColor: '#60a5fa',
darkColor: '#1d4ed8'
},
'highway-heroes': {
name: 'Highway Heroes',
tagline: 'Adventure Transport Co.',
gradient: 'linear-gradient(135deg, #fbbf24, #f59e0b)',
primaryColor: '#d97706',
lightColor: '#f59e0b',
darkColor: '#92400e'
},
'classic-freight': {
name: 'Classic Freight',
tagline: 'Traditional Transport',
gradient: 'linear-gradient(135deg, #374151, #4b5563)',
primaryColor: '#dc2626',
lightColor: '#ef4444',
darkColor: '#991b1b'
},
'swift-logistics': {
name: 'Swift Logistics',
tagline: 'Fast & Efficient Transport',
gradient: 'linear-gradient(135deg, #10b981, #059669)',
primaryColor: '#059669',
lightColor: '#10b981',
darkColor: '#047857'
},
'prime-haulers': {
name: 'Prime Haulers',
tagline: 'Premium Transport Solutions',
gradient: 'linear-gradient(135deg, #7c3aed, #8b5cf6)',
primaryColor: '#7c3aed',
lightColor: '#8b5cf6',
darkColor: '#6d28d9'
}
};
// Apply template configuration with enhanced theming
if (templateType && templates[templateType]) {
const template = templates[templateType];
// Update CSS custom properties for complete theme integration
document.documentElement.style.setProperty('--primary-color', template.primaryColor);
document.documentElement.style.setProperty('--primary-light', template.lightColor);
document.documentElement.style.setProperty('--primary-dark', template.darkColor);
// Update content
document.querySelector('.company-name').textContent = template.name;
document.querySelector('.tagline').textContent = template.tagline;
// Update hero background
document.querySelector('.hero-section').style.background = template.gradient;
// Update logo abbreviation
const logoText = template.name.split(' ').map(word => word[0]).join('');
document.querySelectorAll('.logo').forEach(logo => {
logo.textContent = logoText;
});
// Update page title
document.title = `${template.name} - Professional VTC Services`;
// Apply comprehensive theme styling
const themeStyle = document.createElement('style');
themeStyle.id = 'template-theme';
themeStyle.textContent = `
/* Template-specific overrides */
.company-name {
background: linear-gradient(135deg, ${template.primaryColor}, ${template.lightColor}) !important;
}
.btn-primary {
background: linear-gradient(135deg, ${template.primaryColor}, ${template.lightColor}) !important;
}
.feature-icon, .logo {
background: linear-gradient(135deg, ${template.primaryColor}, ${template.lightColor}) !important;
}
.btn-primary:hover {
box-shadow: 0 8px 25px ${template.primaryColor}66 !important;
}
.editable-element:hover {
outline-color: ${template.primaryColor} !important;
background-color: ${template.primaryColor}1a !important;
}
.edit-tooltip {
background: ${template.primaryColor} !important;
}
/* Additional theme-aware elements */
.accent-color, a {
color: ${template.primaryColor} !important;
}
.border-accent {
border-color: ${template.primaryColor} !important;
}
.gradient-text {
background: linear-gradient(135deg, ${template.primaryColor}, ${template.lightColor}) !important;
-webkit-background-clip: text !important;
-webkit-text-fill-color: transparent !important;
}
`;
document.head.appendChild(themeStyle);
}
// Enhanced editing functionality with better theme support
document.addEventListener('DOMContentLoaded', function() {
const editableElements = document.querySelectorAll('.editable-element');
editableElements.forEach(element => {
element.addEventListener('focus', function() {
this.classList.add('editing');
});
element.addEventListener('blur', function() {
this.classList.remove('editing');
// Trigger theme update after content change
updateThemeColors();
});
element.addEventListener('keydown', function(e) {
if (e.key === 'Enter' && !e.shiftKey) {
e.preventDefault();
this.blur();
}
});
// Add better visual feedback
element.addEventListener('mouseenter', function() {
this.style.transition = 'all 0.2s ease';
});
element.addEventListener('mouseleave', function() {
if (!this.classList.contains('editing')) {
this.style.transition = 'all 0.2s ease';
}
});
});
});
// Function to update theme colors after content changes
function updateThemeColors() {
const currentPrimary = getComputedStyle(document.documentElement).getPropertyValue('--primary-color');
if (currentPrimary) {
// Re-apply theme to any new elements
const existingTheme = document.querySelector('#template-theme');
if (existingTheme) {
// Theme is already applied and will be maintained
}
}
}
// Expose functions for parent editing interface
window.templateEditor = {
updateColor: function(color) {
document.documentElement.style.setProperty('--primary-color', color);
updateThemeColors();
},
updateFont: function(font) {
document.documentElement.style.setProperty('--font-family', `'${font}', sans-serif`);
document.body.style.fontFamily = `'${font}', sans-serif`;
},
getTemplate: function() {
return templateType;
}
};
</script>
<!-- Structured Data for SEO -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebPage",
"name": "Template Preview - TruckCraft Studio",
"description": "Preview professional VTC website templates. See how your trucking company website will look with TruckCraft Studio templates.",
"url": "https://truckcraft-studio.com/template-preview.html",
"mainEntity": {
"@type": "WebPageElement",
"name": "VTC Template Preview",
"description": "Interactive preview of professional trucking company website templates"
}
}
</script>
<script src="assets/global-error-handler.js"></script>
<script src="assets/main.js"></script>
</body>
</html>