d43m0n commited on
Commit
d0abab3
Β·
verified Β·
1 Parent(s): 39a7070

Implement and onboarding flow

Browse files
Files changed (2) hide show
  1. README.md +8 -5
  2. index.html +266 -18
README.md CHANGED
@@ -1,10 +1,13 @@
1
  ---
2
- title: Flowyonboarder
3
- emoji: πŸ”₯
4
- colorFrom: yellow
5
- colorTo: red
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
1
  ---
2
+ title: FlowyOnboarder πŸš€
3
+ colorFrom: blue
4
+ colorTo: blue
5
+ emoji: 🐳
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite-v3
10
  ---
11
 
12
+ # Welcome to your new DeepSite project!
13
+ This project was created with [DeepSite](https://deepsite.hf.co).
index.html CHANGED
@@ -1,19 +1,267 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  </html>
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>FlowyOnboarder - Welcome</title>
7
+ <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
8
+ <script src="https://cdn.tailwindcss.com"></script>
9
+ <script src="https://unpkg.com/feather-icons"></script>
10
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
11
+ <script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.globe.min.js"></script>
12
+ <script src="https://cdn.jsdelivr.net/npm/animejs/lib/anime.min.js"></script>
13
+ <script>
14
+ tailwind.config = {
15
+ theme: {
16
+ extend: {
17
+ colors: {
18
+ primary: {
19
+ 50: '#f0f9ff',
20
+ 100: '#e0f2fe',
21
+ 200: '#bae6fd',
22
+ 300: '#7dd3fc',
23
+ 400: '#38bdf8',
24
+ 500: '#0ea5e9',
25
+ 600: '#0284c7',
26
+ 700: '#0369a1',
27
+ 800: '#075985',
28
+ 900: '#0c4a6e',
29
+ },
30
+ secondary: {
31
+ 50: '#f8fafc',
32
+ 100: '#f1f5f9',
33
+ 200: '#e2e8f0',
34
+ 300: '#cbd5e1',
35
+ 400: '#94a3b8',
36
+ 500: '#64748b',
37
+ 600: '#475569',
38
+ 700: '#334155',
39
+ 800: '#1e293b',
40
+ 900: '#0f172a',
41
+ }
42
+ }
43
+ }
44
+ }
45
+ }
46
+ </script>
47
+ <style>
48
+ .onboarding-step {
49
+ opacity: 0;
50
+ transform: translateY(20px);
51
+ transition: all 0.5s ease-in-out;
52
+ }
53
+ .onboarding-step.active {
54
+ opacity: 1;
55
+ transform: translateY(0);
56
+ }
57
+ .progress-dot {
58
+ transition: all 0.3s ease;
59
+ }
60
+ .progress-dot.active {
61
+ transform: scale(1.2);
62
+ }
63
+ </style>
64
+ </head>
65
+ <body class="min-h-screen bg-gradient-to-br from-primary-50 to-secondary-50">
66
+ <div id="vanta-bg" class="fixed inset-0 z-0"></div>
67
+
68
+ <!-- Onboarding Container -->
69
+ <div class="relative z-10 min-h-screen flex items-center justify-center p-4">
70
+ <div class="bg-white/80 backdrop-blur-sm rounded-3xl shadow-2xl max-w-4xl w-full p-8 md:p-12">
71
+ <!-- Progress Bar -->
72
+ <div class="flex justify-center mb-12">
73
+ <div class="flex space-x-4">
74
+ <div class="progress-dot w-3 h-3 rounded-full bg-secondary-300" data-step="1"></div>
75
+ <div class="progress-dot w-3 h-3 rounded-full bg-secondary-300" data-step="2"></div>
76
+ <div class="progress-dot w-3 h-3 rounded-full bg-secondary-300" data-step="3"></div>
77
+ <div class="progress-dot w-3 h-3 rounded-full bg-secondary-300" data-step="4"></div>
78
+ </div>
79
+ </div>
80
+
81
+ <!-- Step 1: Welcome -->
82
+ <div id="step-1" class="onboarding-step active text-center">
83
+ <div class="w-24 h-24 mx-auto mb-6 bg-primary-100 rounded-full flex items-center justify-center">
84
+ <i data-feather="compass" class="w-12 h-12 text-primary-600"></i>
85
+ </div>
86
+ <h1 class="text-4xl md:text-5xl font-bold text-secondary-800 mb-4">Welcome to FlowyOnboarder</h1>
87
+ <p class="text-lg text-secondary-600 mb-8 max-w-md mx-auto">
88
+ Let's get you started on your journey! We'll guide you through setting up your account in just a few simple steps.
89
+ </p>
90
+ <button onclick="nextStep(2)" class="bg-primary-500 hover:bg-primary-600 text-white px-8 py-3 rounded-xl font-semibold transition-colors duration-300 transform hover:scale-105">
91
+ Get Started
92
+ <i data-feather="arrow-right" class="w-4 h-4 ml-2 inline"></i>
93
+ </button>
94
+ </div>
95
+
96
+ <!-- Step 2: Personal Info -->
97
+ <div id="step-2" class="onboarding-step hidden">
98
+ <div class="w-20 h-20 mx-auto mb-6 bg-primary-100 rounded-full flex items-center justify-center">
99
+ <i data-feather="user" class="w-10 h-10 text-primary-600"></i>
100
+ </div>
101
+ <h2 class="text-3xl font-bold text-secondary-800 mb-6 text-center">Tell us about yourself</h2>
102
+
103
+ <div class="space-y-6 max-w-md mx-auto">
104
+ <div>
105
+ <label class="block text-sm font-medium text-secondary-700 mb-2">Full Name</label>
106
+ <input type="text" class="w-full px-4 py-3 border border-secondary-300 rounded-xl focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-300" placeholder="Enter your full name">
107
+ </div>
108
+ <div>
109
+ <label class="block text-sm font-medium text-secondary-700 mb-2">Email Address</label>
110
+ <input type="email" class="w-full px-4 py-3 border border-secondary-300 rounded-xl focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-300" placeholder="your@email.com">
111
+ </div>
112
+ </div>
113
+
114
+ <div class="flex justify-between mt-8">
115
+ <button onclick="prevStep(1)" class="text-secondary-600 hover:text-secondary-800 px-6 py-3 rounded-xl font-semibold transition-colors duration-300 flex items-center">
116
+ <i data-feather="arrow-left" class="w-4 h-4 mr-2"></i>
117
+ Back
118
+ </button>
119
+ <button onclick="nextStep(3)" class="bg-primary-500 hover:bg-primary-600 text-white px-8 py-3 rounded-xl font-semibold transition-colors duration-300 transform hover:scale-105">
120
+ Continue
121
+ <i data-feather="arrow-right" class="w-4 h-4 ml-2 inline"></i>
122
+ </button>
123
+ </div>
124
+ </div>
125
+
126
+ <!-- Step 3: Preferences -->
127
+ <div id="step-3" class="onboarding-step hidden">
128
+ <div class="w-20 h-20 mx-auto mb-6 bg-primary-100 rounded-full flex items-center justify-center">
129
+ <i data-feather="settings" class="w-10 h-10 text-primary-600"></i>
130
+ </div>
131
+ <h2 class="text-3xl font-bold text-secondary-800 mb-6 text-center">Set your preferences</h2>
132
+
133
+ <div class="grid md:grid-cols-2 gap-6 max-w-2xl mx-auto">
134
+ <div class="bg-secondary-50 p-6 rounded-xl hover:bg-secondary-100 transition-colors duration-300 cursor-pointer border-2 border-transparent hover:border-primary-300">
135
+ <i data-feather="moon" class="w-8 h-8 text-secondary-600 mb-3"></i>
136
+ <h3 class="font-semibold text-secondary-800 mb-2">Dark Mode</h3>
137
+ <p class="text-secondary-600 text-sm">Comfortable viewing in low light</p>
138
+ </div>
139
+ <div class="bg-secondary-50 p-6 rounded-xl hover:bg-secondary-100 transition-colors duration-300 cursor-pointer border-2 border-transparent hover:border-primary-300">
140
+ <i data-feather="bell" class="w-8 h-8 text-secondary-600 mb-3"></i>
141
+ <h3 class="font-semibold text-secondary-800 mb-2">Notifications</h3>
142
+ <p class="text-secondary-600 text-sm">Stay updated with alerts</p>
143
+ </div>
144
+ <div class="bg-secondary-50 p-6 rounded-xl hover:bg-secondary-100 transition-colors duration-300 cursor-pointer border-2 border-transparent hover:border-primary-300">
145
+ <i data-feather="shield" class="w-8 h-8 text-secondary-600 mb-3"></i>
146
+ <h3 class="font-semibold text-secondary-800 mb-2">Privacy Focused</h3>
147
+ <p class="text-secondary-600 text-sm">Enhanced data protection</p>
148
+ </div>
149
+ <div class="bg-secondary-50 p-6 rounded-xl hover:bg-secondary-100 transition-colors duration-300 cursor-pointer border-2 border-transparent hover:border-primary-300">
150
+ <i data-feather="globe" class="w-8 h-8 text-secondary-600 mb-3"></i>
151
+ <h3 class="font-semibold text-secondary-800 mb-2">Global Access</h3>
152
+ <p class="text-secondary-600 text-sm">Available worldwide</p>
153
+ </div>
154
+ </div>
155
+
156
+ <div class="flex justify-between mt-8">
157
+ <button onclick="prevStep(2)" class="text-secondary-600 hover:text-secondary-800 px-6 py-3 rounded-xl font-semibold transition-colors duration-300 flex items-center">
158
+ <i data-feather="arrow-left" class="w-4 h-4 mr-2"></i>
159
+ Back
160
+ </button>
161
+ <button onclick="nextStep(4)" class="bg-primary-500 hover:bg-primary-600 text-white px-8 py-3 rounded-xl font-semibold transition-colors duration-300 transform hover:scale-105">
162
+ Continue
163
+ <i data-feather="arrow-right" class="w-4 h-4 ml-2 inline"></i>
164
+ </button>
165
+ </div>
166
+ </div>
167
+
168
+ <!-- Step 4: Completion -->
169
+ <div id="step-4" class="onboarding-step hidden text-center">
170
+ <div class="w-24 h-24 mx-auto mb-6 bg-green-100 rounded-full flex items-center justify-center">
171
+ <i data-feather="check" class="w-12 h-12 text-green-600"></i>
172
+ </div>
173
+ <h1 class="text-4xl md:text-5xl font-bold text-secondary-800 mb-4">You're All Set! πŸŽ‰</h1>
174
+ <p class="text-lg text-secondary-600 mb-8 max-w-md mx-auto">
175
+ Congratulations! Your account has been successfully set up. You're now ready to explore all the amazing features we have to offer.
176
+ </p>
177
+ <button onclick="completeOnboarding()" class="bg-green-500 hover:bg-green-600 text-white px-8 py-3 rounded-xl font-semibold transition-colors duration-300 transform hover:scale-105">
178
+ Start Exploring
179
+ <i data-feather="rocket" class="w-4 h-4 ml-2 inline"></i>
180
+ </button>
181
+ </div>
182
+ </div>
183
+ </div>
184
+
185
+ <script>
186
+ // Initialize Vanta.js background
187
+ VANTA.GLOBE({
188
+ el: "#vanta-bg",
189
+ mouseControls: true,
190
+ touchControls: true,
191
+ gyroControls: false,
192
+ minHeight: 200.00,
193
+ minWidth: 200.00,
194
+ scale: 1.00,
195
+ scaleMobile: 1.00,
196
+ color: 0x0ea5e9,
197
+ backgroundColor: 0xf1f5f9,
198
+ size: 0.8
199
+ });
200
+
201
+ let currentStep = 1;
202
+ const totalSteps = 4;
203
+
204
+ function updateProgressDots() {
205
+ document.querySelectorAll('.progress-dot').forEach((dot, index) => {
206
+ if (index + 1 <= currentStep) {
207
+ dot.classList.add('active', 'bg-primary-500');
208
+ dot.classList.remove('bg-secondary-300');
209
+ } else {
210
+ dot.classList.remove('active', 'bg-primary-500');
211
+ dot.classList.add('bg-secondary-300');
212
+ }
213
+ });
214
+ }
215
+
216
+ function showStep(stepNumber) {
217
+ document.querySelectorAll('.onboarding-step').forEach(step => {
218
+ step.classList.remove('active');
219
+ step.classList.add('hidden');
220
+ });
221
+
222
+ const currentStepElement = document.getElementById(`step-${stepNumber}`);
223
+ if (currentStepElement) {
224
+ currentStepElement.classList.remove('hidden');
225
+ setTimeout(() => {
226
+ currentStepElement.classList.add('active');
227
+ }, 50);
228
+ }
229
+
230
+ updateProgressDots();
231
+ }
232
+
233
+ function nextStep(step) {
234
+ if (step <= totalSteps) {
235
+ currentStep = step;
236
+ showStep(step);
237
+ }
238
+ }
239
+
240
+ function prevStep(step) {
241
+ if (step >= 1) {
242
+ currentStep = step;
243
+ showStep(step);
244
+ }
245
+ }
246
+
247
+ function completeOnboarding() {
248
+ // Animation for completion
249
+ anime({
250
+ targets: '#step-4',
251
+ scale: [1, 1.05, 1],
252
+ duration: 600,
253
+ easing: 'easeInOutQuad'
254
+ });
255
+
256
+ setTimeout(() => {
257
+ alert('Welcome to FlowyOnboarder! Your onboarding is complete.');
258
+ // In a real app, you would redirect to the main application
259
+ // window.location.href = '/dashboard.html';
260
+ }, 1000);
261
+ }
262
+
263
+ // Initialize feather icons
264
+ feather.replace();
265
+ </script>
266
+ </body>
267
  </html>