File size: 11,292 Bytes
a7a0add ae29252 a7a0add ae29252 a7a0add ae29252 a7a0add d0ad6af a7a0add 9d9997c | 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 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Client Onboarding Course</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script>
tailwind.config = {
theme: {
extend: {
colors: {
primary: '#4F46E5',
secondary: '#10B981',
}
}
}
}
</script>
<style>
.progress-ring__circle {
transition: stroke-dashoffset 0.35s;
transform: rotate(-90deg);
transform-origin: 50% 50%;
}
.course-card:hover {
transform: translateY(-5px);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
</style>
</head>
<body class="bg-gray-50 min-h-screen">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<!-- Header -->
<header class="py-10">
<div class="flex justify-between items-center">
<div>
<h1 class="text-3xl font-bold text-gray-900">Welcome to Your Onboarding Journey</h1>
<p class="mt-2 text-gray-600">Let's get you started with our platform</p>
</div>
<div class="flex items-center space-x-4">
<div class="relative">
<div class="w-16 h-16">
<svg class="progress-ring w-full h-full" width="120" height="120">
<circle class="progress-ring__circle stroke-secondary-100" stroke-width="8" fill="transparent" r="52" cx="60" cy="60"/>
<circle class="progress-ring__circle stroke-secondary-500" stroke-width="8" stroke-dasharray="326.56" stroke-dashoffset="326.56" fill="transparent" r="52" cx="60" cy="60"/>
</svg>
<div class="absolute inset-0 flex items-center justify-center">
<span class="text-lg font-bold text-gray-800">0%</span>
</div>
</div>
</div>
</div>
</div>
</header>
<!-- Main Content -->
<main class="pb-20">
<div class="flex mb-8 space-x-4 overflow-x-auto pb-4">
<button class="px-4 py-2 bg-primary-600 text-white rounded-full whitespace-nowrap">All Modules</button>
<button class="px-4 py-2 bg-gray-200 rounded-full whitespace-nowrap">Foundational Setup</button>
<button class="px-4 py-2 bg-gray-200 rounded-full whitespace-nowrap">Marketing & Lead Gen</button>
<button class="px-4 py-2 bg-gray-200 rounded-full whitespace-nowrap">Sales & Conversation</button>
<button class="px-4 py-2 bg-gray-200 rounded-full whitespace-nowrap">Website & Content</button>
<button class="px-4 py-2 bg-gray-200 rounded-full whitespace-nowrap">Commerce</button>
</div>
<!-- Modules Section -->
<div class="space-y-6">
<!-- Getting Started Module -->
<div class="bg-white rounded-xl shadow-md overflow-hidden">
<div class="p-6">
<div class="flex justify-between items-center cursor-pointer" onclick="toggleModule('getting-started')">
<h2 class="text-2xl font-bold text-gray-900">Getting Started</h2>
<i data-feather="chevron-down" class="text-gray-500 transition-transform duration-300" id="getting-started-chevron"></i>
</div>
<div class="mt-4 hidden" id="getting-started-content">
<div class="space-y-4">
<!-- Video 1 -->
<div class="flex items-start p-4 border border-gray-200 rounded-lg">
<div class="flex-shrink-0 mr-4">
<div class="w-32 h-20 bg-primary-500 rounded-md flex items-center justify-center">
<i data-feather="play" class="text-white"></i>
</div>
</div>
<div>
<h3 class="font-semibold text-gray-900">Import and engage with all your contacts instantly</h3>
<p class="mt-1 text-sm text-gray-600">Import your existing contacts from various platforms and start engaging with them immediately.</p>
<button class="mt-2 px-3 py-1 bg-primary-600 text-white text-sm rounded hover:bg-primary-700 transition-colors">
Watch Video
</button>
</div>
</div>
<!-- Video 2 -->
<div class="flex items-start p-4 border border-gray-200 rounded-lg">
<div class="flex-shrink-0 mr-4">
<div class="w-32 h-20 bg-primary-500 rounded-md flex items-center justify-center">
<i data-feather="play" class="text-white"></i>
</div>
</div>
<div>
<h3 class="font-semibold text-gray-900">Generate New Leads with a High-Converting Funnel</h3>
<p class="mt-1 text-sm text-gray-600">Set up a high-converting funnel and form to capture leads efficiently.</p>
<button class="mt-2 px-3 py-1 bg-primary-600 text-white text-sm rounded hover:bg-primary-700 transition-colors">
Watch Video
</button>
</div>
</div>
<!-- More videos would follow the same pattern -->
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Module Toggle Script -->
<script>
function toggleModule(moduleId) {
const content = document.getElementById(`${moduleId}-content`);
const chevron = document.getElementById(`${moduleId}-chevron`);
if (content.classList.contains('hidden')) {
content.classList.remove('hidden');
chevron.classList.add('rotate-180');
} else {
content.classList.add('hidden');
chevron.classList.remove('rotate-180');
}
}
// Initialize first module as open by default
document.addEventListener('DOMContentLoaded', () => {
toggleModule('getting-started');
});
</script>
<script>
document.querySelectorAll('.flex.mb-8 button').forEach(button => {
button.addEventListener('click', function() {
// Remove active class from all buttons
document.querySelectorAll('.flex.mb-8 button').forEach(btn => {
btn.classList.remove('bg-primary-600', 'text-white');
btn.classList.add('bg-gray-200');
});
// Add active class to clicked button
this.classList.add('bg-primary-600', 'text-white');
this.classList.remove('bg-gray-200');
const filter = this.textContent;
// Filter logic would go here
});
});
</script>
</main>
<!-- Footer -->
<footer class="py-8 border-t border-gray-200">
<div class="flex flex-col md:flex-row justify-between items-center">
<div class="flex items-center space-x-4 mb-4 md:mb-0">
<i data-feather="help-circle" class="text-gray-500"></i>
<span class="text-gray-600">Need help? Contact support@example.com</span>
</div>
<div class="flex items-center space-x-6">
<a href="#" class="text-gray-500 hover:text-gray-700">
<i data-feather="globe"></i>
</a>
<a href="#" class="text-gray-500 hover:text-gray-700">
<i data-feather="facebook"></i>
</a>
<a href="#" class="text-gray-500 hover:text-gray-700">
<i data-feather="twitter"></i>
</a>
<a href="#" class="text-gray-500 hover:text-gray-700">
<i data-feather="linkedin"></i>
</a>
</div>
</div>
</footer>
</div>
<script>
feather.replace();
// Update progress ring
function updateProgress(percent) {
const circle = document.querySelector('.progress-ring__circle:last-child');
const radius = circle.r.baseVal.value;
const circumference = 2 * Math.PI * radius;
const offset = circumference - (percent / 100) * circumference;
circle.style.strokeDashoffset = offset;
document.querySelector('.progress-ring + div span').textContent = `${percent}%`;
}
// Initial progress
updateProgress(0);
// Handle video buttons
document.querySelectorAll('.course-card button').forEach(button => {
button.addEventListener('click', function() {
// In a real implementation, this would open a video modal
alert('Opening video tutorial...');
// Mark as viewed if not already
if (!this.classList.contains('bg-green-600')) {
this.textContent = 'Completed';
this.classList.remove('bg-primary-600', 'hover:bg-primary-700');
this.classList.add('bg-green-600', 'hover:bg-green-700');
// Update progress (sample logic)
const current = parseInt(document.querySelector('.progress-ring + div span').textContent);
updateProgress(Math.min(current + 5, 100));
}
});
});
</script>
</body>
</html>
|