nuxt-layer-core 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/settings.local.json +8 -0
- package/app/app.config.ts +5 -0
- package/app/app.vue +11 -0
- package/app/assets/css/main.css +113 -0
- package/app/components/.gitkeep +0 -0
- package/app/components/ui/sonner/Sonner.vue +62 -0
- package/app/components/ui/sonner/index.ts +1 -0
- package/app/composables/.gitkeep +0 -0
- package/app/layers/solution/app/assets/proxmox-css/main.css +89 -0
- package/app/layers/solution/app/assets/proxmox-css/proxmox-utils.css +68 -0
- package/app/layers/solution/app/components/ClusterDiagram.vue +72 -0
- package/app/layers/solution/app/components/CoursesSection.vue +246 -0
- package/app/layers/solution/app/components/CtaSection.vue +329 -0
- package/app/layers/solution/app/components/FeaturesSection.vue +67 -0
- package/app/layers/solution/app/components/HeroSection.vue +144 -0
- package/app/layers/solution/app/components/PricingPlansSection.vue +434 -0
- package/app/layers/solution/app/components/RegistrationForm.vue +256 -0
- package/app/layers/solution/app/components/TestimonialsSection.vue +58 -0
- package/app/layers/solution/app/components/TheFooter.vue +61 -0
- package/app/layers/solution/app/components/TheHeader.vue +189 -0
- package/app/layers/solution/app/components/proxmox/AppIcon.vue +45 -0
- package/app/layers/solution/app/components/proxmox/ComparisonSection.vue +54 -0
- package/app/layers/solution/app/components/proxmox/FaqSection.vue +58 -0
- package/app/layers/solution/app/components/proxmox/HciOverviewSection.vue +37 -0
- package/app/layers/solution/app/components/proxmox/HeroSection.vue +74 -0
- package/app/layers/solution/app/components/proxmox/TestimonialsSection.vue +44 -0
- package/app/layers/solution/app/components/proxmox/TrainingBenefitsSection.vue +37 -0
- package/app/layers/solution/app/components/proxmox/VeFeaturesSection.vue +55 -0
- package/app/layers/solution/app/composables/useActiveSection.ts +47 -0
- package/app/layers/solution/app/composables/useAuthApi.ts +244 -0
- package/app/layers/solution/app/composables/useAuthState.ts +16 -0
- package/app/layers/solution/app/composables/useCookie.ts +79 -0
- package/app/layers/solution/app/composables/useCookieHelper.ts +81 -0
- package/app/layers/solution/app/composables/useCrmApi.ts +32 -0
- package/app/layers/solution/app/composables/useDynamicCollection.ts +23 -0
- package/app/layers/solution/app/composables/useScrollAnimate.ts +40 -0
- package/app/layers/solution/app/composables/useScrollToSection.ts +13 -0
- package/app/layers/solution/app/composables/useSolutionApi.ts +55 -0
- package/app/layers/solution/app/composables/useToast.ts +14 -0
- package/app/layers/solution/app/data/proxmox-content.ts +158 -0
- package/app/layers/solution/app/images/Proxmox HCI.png +0 -0
- package/app/layers/solution/app/images/image_from_https_hercules_cdn.com_file_6dztkvkfnip0ud23tzzvu57c.png +0 -0
- package/app/layers/solution/app/layouts/default.vue +5 -0
- package/app/layers/solution/app/nuxt.config.ts +9 -0
- package/app/layers/solution/app/pages/cap-nhat-thong-tin/index.vue +302 -0
- package/app/layers/solution/app/pages/dang-ky/index.vue +627 -0
- package/app/layers/solution/app/pages/dang-nhap/index.vue +208 -0
- package/app/layers/solution/app/pages/doi-mat-khau/index.vue +237 -0
- package/app/layers/solution/app/pages/giai-phap-proxmox/[slug]/index.vue +37 -0
- package/app/layers/solution/app/pages/giai-phap-proxmox/[slug]/proxmox-hci/index.vue +45 -0
- package/app/layers/solution/app/pages/giai-phap-proxmox/dang-ky-khoa-hoc/[slug].vue +131 -0
- package/app/layers/solution/app/pages/quen-mat-khau/index.vue +136 -0
- package/app/layers/solution/app/pages/xac-thuc/index.vue +320 -0
- package/app/layers/solution/app/plugins/reveal.ts +56 -0
- package/app/layers/solution/app/public/images/image_from_https_hercules_cdn.com_file_6dztkvkfnip0ud23tzzvu57c.png +0 -0
- package/app/layers/solution/app/public/images/logo-lvs-1300x330.png +0 -0
- package/app/layouts/auth.vue +71 -0
- package/app/lib/utils.ts +7 -0
- package/app/middleware/.gitkeep +0 -0
- package/app/modules/layer-route-priority.ts +60 -0
- package/app/pages/index.vue +9 -0
- package/app/pages/san-pham-proxmox.vue +8 -0
- package/app/plugins/.gitkeep +0 -0
- package/app/plugins/sdk.ts +29 -0
- package/app/stores/.gitkeep +0 -0
- package/app/types/sdk.d.ts +15 -0
- package/components.json +24 -0
- package/nuxt.config.ts +104 -0
- package/package.json +52 -0
- package/public/.gitkeep +0 -0
- package/server/api/.gitkeep +0 -0
- package/server/utils/.gitkeep +0 -0
- package/tailwind.config.js +96 -0
- package/tsconfig.base.json +18 -0
- package/tsconfig.json +18 -0
- package/website-longvan-1.1.6.tgz +0 -0
- package/website-longvan-1.1.7.tgz +0 -0
- package/website-longvan-1.1.8.tgz +0 -0
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<section id="lien-he" class="py-24 bg-white border-t border-slate-200">
|
|
3
|
+
<div class="max-w-7xl mx-auto px-6 lg:px-8">
|
|
4
|
+
<div class="cta-card bg-[#F7F9FB] rounded-3xl flex flex-col md:flex-row shadow-2xl">
|
|
5
|
+
<div
|
|
6
|
+
class="md:w-5/12 bg-gradient-to-br from-[#004AC6] to-[#1D4ED8] p-10 sm:p-12 text-white space-y-8 overflow-hidden rounded-l-3xl">
|
|
7
|
+
<p class="text-xs font-bold uppercase tracking-widest text-blue-100">Bắt đầu</p>
|
|
8
|
+
<h3 class="font-['Montserrat'] font-extrabold text-2xl sm:text-3xl leading-tight">
|
|
9
|
+
Đặt lịch tư vấn khóa học miễn phí, 30 phút
|
|
10
|
+
</h3>
|
|
11
|
+
<p class="text-blue-100/90 leading-relaxed">
|
|
12
|
+
Gửi thông tin hạ tầng hiện tại và mục tiêu học tập, đội ngũ kỹ thuật của Long Vân
|
|
13
|
+
sẽ phản hồi và đề xuất khóa học phù hợp trong vòng 24 giờ.
|
|
14
|
+
</p>
|
|
15
|
+
<div class="flex items-center gap-4">
|
|
16
|
+
<div class="w-10 h-10 rounded-[10px] bg-white/10 flex items-center justify-center">
|
|
17
|
+
<Icon name="lucide:mail" class="text-[18px]" />
|
|
18
|
+
</div>
|
|
19
|
+
<span class="text-sm">tuvan@longvan.net</span>
|
|
20
|
+
</div>
|
|
21
|
+
<div class="flex items-center gap-4">
|
|
22
|
+
<div class="w-10 h-10 rounded-[10px] bg-white/10 flex items-center justify-center">
|
|
23
|
+
<Icon name="lucide:phone" class="text-[18px]" />
|
|
24
|
+
</div>
|
|
25
|
+
<span class="text-sm">1800 6070</span>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
|
|
29
|
+
<div class="md:w-7/12 p-10 sm:p-12 bg-white rounded-r-3xl">
|
|
30
|
+
<form class="space-y-5" @submit.prevent="handleSubmit" novalidate>
|
|
31
|
+
<div class="grid grid-cols-1 sm:grid-cols-2 gap-5">
|
|
32
|
+
<div class="space-y-1.5">
|
|
33
|
+
<label for="cta-name" class="text-xs font-bold uppercase text-slate-500">
|
|
34
|
+
Họ và tên <span class="text-red-500">*</span>
|
|
35
|
+
</label>
|
|
36
|
+
<input id="cta-name" v-model.trim="form.name" type="text" @blur="touch('name')"
|
|
37
|
+
class="w-full px-4 py-3 border rounded-[10px] outline-none text-sm text-slate-900 transition-all"
|
|
38
|
+
:class="errors.name && touched.name ? 'border-red-400 focus:ring-2 focus:ring-red-200 focus:border-red-400' : 'border-slate-300 focus:ring-2 focus:ring-blue-200 focus:border-[#004AC6]'"
|
|
39
|
+
placeholder="Nguyễn Văn A" />
|
|
40
|
+
<p v-if="errors.name && touched.name" class="text-red-500 text-xs mt-1">{{ errors.name }}</p>
|
|
41
|
+
</div>
|
|
42
|
+
<div class="space-y-1.5">
|
|
43
|
+
<label for="cta-phone" class="text-xs font-bold uppercase text-slate-500">
|
|
44
|
+
Số điện thoại <span class="text-red-500">*</span>
|
|
45
|
+
</label>
|
|
46
|
+
<input id="cta-phone" v-model.trim="form.phone" type="tel" @blur="touch('phone')"
|
|
47
|
+
class="w-full px-4 py-3 border rounded-[10px] outline-none text-sm text-slate-900 transition-all"
|
|
48
|
+
:class="errors.phone && touched.phone ? 'border-red-400 focus:ring-2 focus:ring-red-200 focus:border-red-400' : 'border-slate-300 focus:ring-2 focus:ring-blue-200 focus:border-[#004AC6]'"
|
|
49
|
+
placeholder="0912 345 678" />
|
|
50
|
+
<p v-if="errors.phone && touched.phone" class="text-red-500 text-xs mt-1">{{ errors.phone }}</p>
|
|
51
|
+
</div>
|
|
52
|
+
</div>
|
|
53
|
+
<div class="space-y-1.5">
|
|
54
|
+
<label for="cta-email" class="text-xs font-bold uppercase text-slate-500">Email</label>
|
|
55
|
+
<input id="cta-email" v-model.trim="form.email" type="email" @blur="touch('email')"
|
|
56
|
+
class="w-full px-4 py-3 border rounded-[10px] outline-none text-sm text-slate-900 transition-all"
|
|
57
|
+
:class="errors.email && touched.email ? 'border-red-400 focus:ring-2 focus:ring-red-200 focus:border-red-400' : 'border-slate-300 focus:ring-2 focus:ring-blue-200 focus:border-[#004AC6]'"
|
|
58
|
+
placeholder="ban@congty.com" />
|
|
59
|
+
<p v-if="errors.email && touched.email" class="text-red-500 text-xs mt-1">{{ errors.email }}</p>
|
|
60
|
+
</div>
|
|
61
|
+
|
|
62
|
+
<!-- Searchable dropdown -->
|
|
63
|
+
<div class="space-y-1.5" ref="dropdownRef">
|
|
64
|
+
<label class="text-xs font-bold uppercase text-slate-500">
|
|
65
|
+
Khóa học quan tâm <span class="text-red-500">*</span>
|
|
66
|
+
</label>
|
|
67
|
+
<div class="relative">
|
|
68
|
+
<div @click="toggleDropdown"
|
|
69
|
+
class="w-full px-4 py-3 border rounded-[10px] text-sm text-slate-900 cursor-pointer flex items-center justify-between transition-all"
|
|
70
|
+
:class="[
|
|
71
|
+
dropdownOpen ? 'border-[#004AC6] ring-2 ring-blue-200' : 'border-slate-300',
|
|
72
|
+
errors.course && touched.course ? 'border-red-400' : ''
|
|
73
|
+
]">
|
|
74
|
+
<span :class="selectedCourse ? 'text-slate-900' : 'text-slate-400'">
|
|
75
|
+
{{ selectedCourse ? selectedCourse.name : 'Chọn khóa học...' }}
|
|
76
|
+
</span>
|
|
77
|
+
<Icon name="lucide:chevron-down" class="text-[16px] text-slate-400 transition-transform"
|
|
78
|
+
:class="dropdownOpen ? 'rotate-180' : ''" />
|
|
79
|
+
</div>
|
|
80
|
+
|
|
81
|
+
<Transition enter-active-class="transition ease-out duration-150"
|
|
82
|
+
enter-from-class="opacity-0 -translate-y-1" enter-to-class="opacity-100 translate-y-0"
|
|
83
|
+
leave-active-class="transition ease-in duration-100" leave-from-class="opacity-100 translate-y-0"
|
|
84
|
+
leave-to-class="opacity-0 -translate-y-1">
|
|
85
|
+
<div v-if="dropdownOpen"
|
|
86
|
+
class="absolute z-50 mt-1 w-full bg-white border border-slate-200 rounded-[10px] shadow-lg overflow-hidden">
|
|
87
|
+
<div class="p-2 border-b border-slate-100">
|
|
88
|
+
<div class="relative">
|
|
89
|
+
<Icon name="lucide:search"
|
|
90
|
+
class="absolute left-3 top-1/2 -translate-y-1/2 text-slate-400 text-[14px]" />
|
|
91
|
+
<input ref="searchInput" v-model="searchQuery" type="text" placeholder="Tìm khóa học..."
|
|
92
|
+
class="w-full pl-9 pr-3 py-2 text-sm border border-slate-200 rounded-md outline-none focus:border-[#004AC6] focus:ring-1 focus:ring-blue-200"
|
|
93
|
+
@click.stop />
|
|
94
|
+
</div>
|
|
95
|
+
</div>
|
|
96
|
+
<div class="max-h-56 overflow-y-auto">
|
|
97
|
+
<div v-for="plan in filteredCourses" :key="plan.id" @click="selectCourse(plan)"
|
|
98
|
+
class="px-4 py-3 text-sm cursor-pointer flex items-center gap-3 transition-colors"
|
|
99
|
+
:class="selectedCourse?.id === plan.id ? 'bg-blue-50 text-[#004AC6]' : 'hover:bg-slate-50 text-slate-700'">
|
|
100
|
+
<Icon :name="plan.icon" class="text-[16px] shrink-0"
|
|
101
|
+
:class="selectedCourse?.id === plan.id ? 'text-[#004AC6]' : 'text-slate-400'" />
|
|
102
|
+
<div class="flex-1 min-w-0">
|
|
103
|
+
<p class="font-medium truncate">{{ plan.name }}</p>
|
|
104
|
+
<p class="text-xs text-slate-400 truncate">{{ formatLevel(plan.level) }} · {{ plan.duration }}
|
|
105
|
+
</p>
|
|
106
|
+
</div>
|
|
107
|
+
<Icon v-if="selectedCourse?.id === plan.id" name="lucide:check"
|
|
108
|
+
class="text-[16px] text-[#004AC6] shrink-0" />
|
|
109
|
+
</div>
|
|
110
|
+
<div v-if="filteredCourses.length === 0" class="px-4 py-6 text-center text-sm text-slate-400">
|
|
111
|
+
Không tìm thấy khóa học
|
|
112
|
+
</div>
|
|
113
|
+
</div>
|
|
114
|
+
</div>
|
|
115
|
+
</Transition>
|
|
116
|
+
</div>
|
|
117
|
+
<p v-if="errors.course && touched.course" class="text-red-500 text-xs mt-1">{{ errors.course }}</p>
|
|
118
|
+
</div>
|
|
119
|
+
|
|
120
|
+
<button type="submit" :disabled="submitting"
|
|
121
|
+
class="w-full bg-[#004AC6] text-white py-3.5 rounded-[10px] font-bold flex items-center justify-center gap-2 hover:bg-[#1D4ED8] transition-all shadow-lg active:scale-95 disabled:opacity-60 disabled:cursor-not-allowed">
|
|
122
|
+
<template v-if="submitting">
|
|
123
|
+
<span class="w-4 h-4 border-2 border-white/30 border-t-white rounded-[10px] animate-spin"></span>
|
|
124
|
+
Đang gửi...
|
|
125
|
+
</template>
|
|
126
|
+
<template v-else>
|
|
127
|
+
Gửi yêu cầu tư vấn
|
|
128
|
+
<Icon name="lucide:send" class="text-[18px]" />
|
|
129
|
+
</template>
|
|
130
|
+
</button>
|
|
131
|
+
|
|
132
|
+
<Transition enter-active-class="transition ease-out duration-300" enter-from-class="opacity-0 translate-y-2"
|
|
133
|
+
enter-to-class="opacity-100 translate-y-0">
|
|
134
|
+
<div v-if="submitSuccess"
|
|
135
|
+
class="flex items-center gap-2 p-3 bg-green-50 border border-green-200 rounded-[10px] text-green-700 text-sm">
|
|
136
|
+
<Icon name="lucide:check-circle" class="text-[18px] text-green-500 shrink-0" />
|
|
137
|
+
Gửi yêu cầu tư vấn thành công! Chúng tôi sẽ liên hệ bạn trong 24 giờ.
|
|
138
|
+
</div>
|
|
139
|
+
</Transition>
|
|
140
|
+
</form>
|
|
141
|
+
</div>
|
|
142
|
+
</div>
|
|
143
|
+
</div>
|
|
144
|
+
</section>
|
|
145
|
+
</template>
|
|
146
|
+
|
|
147
|
+
<script setup>
|
|
148
|
+
useScrollAnimate('.cta-card', 'scale-up')
|
|
149
|
+
|
|
150
|
+
const props = defineProps({
|
|
151
|
+
plans: { type: Object, default: null },
|
|
152
|
+
selectedPlanId: { type: String, default: null },
|
|
153
|
+
})
|
|
154
|
+
|
|
155
|
+
const { addOpportunity } = useCrmApi()
|
|
156
|
+
|
|
157
|
+
// Format plans from resumeData (same logic as CoursesSection)
|
|
158
|
+
const samplePlans = [
|
|
159
|
+
{ id: 'sample-1', name: 'Deployment & Management', icon: 'lucide:graduation-cap', level: 'Nền tảng', duration: '14 giờ' },
|
|
160
|
+
{ id: 'sample-2', name: 'Clustering & Shared Storage', icon: 'lucide:network', level: 'Chuyên sâu', duration: '14 giờ' },
|
|
161
|
+
{ id: 'sample-3', name: 'Proxmox VE Bundle', icon: 'lucide:package', level: 'Trọn gói', duration: '28 giờ' },
|
|
162
|
+
]
|
|
163
|
+
|
|
164
|
+
function formatLevel(level) {
|
|
165
|
+
const labels = {
|
|
166
|
+
basic: 'Cơ bản',
|
|
167
|
+
advanced: 'Nâng cao',
|
|
168
|
+
expert: 'Chuyên gia',
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
return labels[level || ''] || level || ''
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
const formatPlans = (resumeData) => {
|
|
175
|
+
const fieldResumes = resumeData?.fieldResumes || []
|
|
176
|
+
return fieldResumes
|
|
177
|
+
?.filter((group) => group?.type === 'FIELD_GROUP' && Array.isArray(group?.children))
|
|
178
|
+
?.map((group, index) => {
|
|
179
|
+
const fields = Object.fromEntries(
|
|
180
|
+
group.children?.map((field) => [field?.fieldName?.split('@')?.pop(), field?.value]) || []
|
|
181
|
+
)
|
|
182
|
+
return {
|
|
183
|
+
id: fields.productid || group.fieldName,
|
|
184
|
+
name: fields.title || '',
|
|
185
|
+
level: fields.level || '',
|
|
186
|
+
duration: fields.time || '',
|
|
187
|
+
icon: fields.icon || 'lucide:server',
|
|
188
|
+
}
|
|
189
|
+
}) || []
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
const formattedPlans = computed(() => {
|
|
193
|
+
const result = formatPlans(props.plans)
|
|
194
|
+
return result.length > 0 ? result : samplePlans
|
|
195
|
+
})
|
|
196
|
+
|
|
197
|
+
// Form state
|
|
198
|
+
const form = reactive({ name: '', phone: '', email: '' })
|
|
199
|
+
const errors = reactive({ name: '', phone: '', email: '', course: '' })
|
|
200
|
+
const touched = reactive({ name: false, phone: false, email: false, course: false })
|
|
201
|
+
const submitting = ref(false)
|
|
202
|
+
const submitSuccess = ref(false)
|
|
203
|
+
|
|
204
|
+
// Dropdown state
|
|
205
|
+
const dropdownOpen = ref(false)
|
|
206
|
+
const searchQuery = ref('')
|
|
207
|
+
const selectedCourse = ref(null)
|
|
208
|
+
const dropdownRef = ref(null)
|
|
209
|
+
const searchInput = ref(null)
|
|
210
|
+
|
|
211
|
+
// Auto-select when selectedPlanId changes
|
|
212
|
+
watch(() => props.selectedPlanId, (id) => {
|
|
213
|
+
if (!id) return
|
|
214
|
+
const found = formattedPlans.value.find(p => p.id === id)
|
|
215
|
+
if (found) {
|
|
216
|
+
selectedCourse.value = found
|
|
217
|
+
touched.course = true
|
|
218
|
+
errors.course = ''
|
|
219
|
+
}
|
|
220
|
+
}, { immediate: true })
|
|
221
|
+
|
|
222
|
+
// Search filter
|
|
223
|
+
const filteredCourses = computed(() => {
|
|
224
|
+
if (!searchQuery.value) return formattedPlans.value
|
|
225
|
+
const q = searchQuery.value.toLowerCase()
|
|
226
|
+
return formattedPlans.value.filter(p =>
|
|
227
|
+
p.name.toLowerCase().includes(q) || p.level.toLowerCase().includes(q)
|
|
228
|
+
)
|
|
229
|
+
})
|
|
230
|
+
|
|
231
|
+
function toggleDropdown() {
|
|
232
|
+
dropdownOpen.value = !dropdownOpen.value
|
|
233
|
+
if (dropdownOpen.value) {
|
|
234
|
+
nextTick(() => searchInput.value?.focus())
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
function selectCourse(plan) {
|
|
239
|
+
selectedCourse.value = plan
|
|
240
|
+
errors.course = ''
|
|
241
|
+
dropdownOpen.value = false
|
|
242
|
+
searchQuery.value = ''
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
// Close dropdown on outside click
|
|
246
|
+
function onClickOutside(e) {
|
|
247
|
+
if (dropdownRef.value && !dropdownRef.value.contains(e.target)) {
|
|
248
|
+
dropdownOpen.value = false
|
|
249
|
+
searchQuery.value = ''
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
onMounted(() => document.addEventListener('click', onClickOutside))
|
|
254
|
+
onUnmounted(() => document.removeEventListener('click', onClickOutside))
|
|
255
|
+
|
|
256
|
+
// Validation
|
|
257
|
+
function touch(field) {
|
|
258
|
+
touched[field] = true
|
|
259
|
+
validateField(field)
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
function validateField(field) {
|
|
263
|
+
if (field === 'name') {
|
|
264
|
+
if (!form.name) errors.name = 'Vui lòng nhập họ tên'
|
|
265
|
+
else if (form.name.length < 2) errors.name = 'Họ tên phải có ít nhất 2 ký tự'
|
|
266
|
+
else errors.name = ''
|
|
267
|
+
}
|
|
268
|
+
if (field === 'phone') {
|
|
269
|
+
if (!form.phone) errors.phone = 'Vui lòng nhập số điện thoại'
|
|
270
|
+
else if (!/^(0|\+84)\d{9,10}$/.test(form.phone.replace(/\s/g, ''))) errors.phone = 'Số điện thoại không hợp lệ'
|
|
271
|
+
else errors.phone = ''
|
|
272
|
+
}
|
|
273
|
+
if (field === 'email') {
|
|
274
|
+
if (form.email && !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(form.email)) errors.email = 'Email không hợp lệ'
|
|
275
|
+
else errors.email = ''
|
|
276
|
+
}
|
|
277
|
+
if (field === 'course') {
|
|
278
|
+
if (!selectedCourse.value) errors.course = 'Vui lòng chọn khóa học'
|
|
279
|
+
else errors.course = ''
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
function validateAll() {
|
|
284
|
+
['name', 'phone', 'email', 'course'].forEach(f => { touched[f] = true; validateField(f) })
|
|
285
|
+
return !errors.name && !errors.phone && !errors.email && !errors.course
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
// Submit
|
|
289
|
+
async function handleSubmit() {
|
|
290
|
+
if (!validateAll()) return
|
|
291
|
+
submitting.value = true
|
|
292
|
+
submitSuccess.value = false
|
|
293
|
+
|
|
294
|
+
try {
|
|
295
|
+
const hostname = window.location.origin
|
|
296
|
+
|
|
297
|
+
const description = [
|
|
298
|
+
`<strong>Khóa học:</strong> ${selectedCourse.value?.name || ''}`,
|
|
299
|
+
`<strong>Trình độ:</strong> ${formatLevel(selectedCourse.value?.level)}`,
|
|
300
|
+
`<strong>Thời lượng:</strong> ${selectedCourse.value?.duration || ''}`,
|
|
301
|
+
`<strong>Họ và tên:</strong> ${form.name}`,
|
|
302
|
+
`<strong>Số điện thoại:</strong> ${form.phone}`,
|
|
303
|
+
`<strong>Email:</strong> ${form.email || 'Không cung cấp'}`,
|
|
304
|
+
].join('<br>')
|
|
305
|
+
|
|
306
|
+
await addOpportunity({
|
|
307
|
+
name: `Yêu cầu tư vấn khóa học ${selectedCourse.value.name}`,
|
|
308
|
+
description: description,
|
|
309
|
+
referName: form.name,
|
|
310
|
+
referPhone: form.phone,
|
|
311
|
+
referEmail: form.email,
|
|
312
|
+
targetUrl: `${hostname}${window.location.pathname}`,
|
|
313
|
+
extSource: 'WEBSITE',
|
|
314
|
+
})
|
|
315
|
+
submitSuccess.value = true
|
|
316
|
+
form.name = ''
|
|
317
|
+
form.phone = ''
|
|
318
|
+
form.email = ''
|
|
319
|
+
selectedCourse.value = null
|
|
320
|
+
Object.keys(touched).forEach(k => touched[k] = false)
|
|
321
|
+
} catch (err) {
|
|
322
|
+
console.error('Error submitting consultation:', err)
|
|
323
|
+
errors.name = 'Gửi yêu cầu thất bại, vui lòng thử lại.'
|
|
324
|
+
touched.name = true
|
|
325
|
+
} finally {
|
|
326
|
+
submitting.value = false
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
</script>
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<section id="giai-phap" class="py-24 bg-white">
|
|
3
|
+
<div class="max-w-7xl mx-auto px-6 lg:px-8">
|
|
4
|
+
<div class="text-center mb-16">
|
|
5
|
+
<h2 class="text-[#004AC6] font-bold uppercase tracking-widest text-sm mb-2">Lợi ích khóa học</h2>
|
|
6
|
+
<h3 class="font-['Montserrat'] font-extrabold text-2xl sm:text-3xl text-slate-900 mb-4">
|
|
7
|
+
Vì sao nên tham gia đào tạo Proxmox VE?
|
|
8
|
+
</h3>
|
|
9
|
+
<p class="text-slate-500 max-w-2xl mx-auto">
|
|
10
|
+
Đầu tư một lần vào đào tạo bài bản không chỉ giúp bạn tối ưu năng lực vận hành, cắt giảm chi phí hạ tầng mà còn tạo bước đệm bứt phá trên con đường sự nghiệp.
|
|
11
|
+
</p>
|
|
12
|
+
</div>
|
|
13
|
+
|
|
14
|
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
|
|
15
|
+
<div
|
|
16
|
+
v-for="(item, i) in features"
|
|
17
|
+
:key="item.title"
|
|
18
|
+
:data-delay="i * 100"
|
|
19
|
+
class="feature-card bg-white p-8 rounded-xl border border-slate-200 hover:shadow-xl hover:border-blue-200 transition-all"
|
|
20
|
+
>
|
|
21
|
+
<div class="w-11 h-11 rounded-[10px] bg-blue-50 flex items-center justify-center mb-6 text-[#004AC6]">
|
|
22
|
+
<Icon :name="item.icon" />
|
|
23
|
+
</div>
|
|
24
|
+
<h4 class="font-bold text-lg text-slate-900 mb-3">{{ item.title }}</h4>
|
|
25
|
+
<p class="text-sm text-slate-500 leading-relaxed">{{ item.desc }}</p>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
</section>
|
|
30
|
+
</template>
|
|
31
|
+
|
|
32
|
+
<script setup>
|
|
33
|
+
useScrollAnimate('.feature-card', 'scale-up')
|
|
34
|
+
|
|
35
|
+
const features = [
|
|
36
|
+
{
|
|
37
|
+
icon: 'lucide:server',
|
|
38
|
+
title: 'Làm chủ toàn diện Proxmox VE',
|
|
39
|
+
desc: 'Nắm vững trọn vẹn các khái niệm cốt lõi, từ triển khai ảo hóa cơ bản đến quản trị các tính năng cao cấp của nền tảng.'
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
icon: 'lucide:award',
|
|
43
|
+
title: 'Học từ chuyên gia thực chiến',
|
|
44
|
+
desc: 'Tiếp thu kinh nghiệm vận hành ảo hóa trực tiếp từ đội ngũ giảng viên được chứng nhận, đã xử lý hàng ngàn bài toán hệ thống.'
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
icon: 'lucide:monitor-play',
|
|
48
|
+
title: 'Thực hành Lab môi trường thật',
|
|
49
|
+
desc: 'Không chỉ học lý thuyết, bạn sẽ trực tiếp thao tác và giải quyết các tình huống giả lập sát với thực tế doanh nghiệp.'
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
icon: 'lucide:activity',
|
|
53
|
+
title: 'Troubleshooting thần tốc',
|
|
54
|
+
desc: 'Trang bị kỹ năng nhận diện "bệnh" hệ thống nhạy bén, giúp bạn xử lý sự cố chính xác và dứt điểm hơn bao giờ hết.'
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
icon: 'lucide:trending-up',
|
|
58
|
+
title: 'Thăng tiến & Khẳng định vị thế',
|
|
59
|
+
desc: 'Nâng tầm giá trị bản thân, tạo dựng sự tín nhiệm tuyệt đối với cấp trên, đồng nghiệp và đối tác nhờ năng lực chuyên môn vượt trội.'
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
icon: 'lucide:file-badge',
|
|
63
|
+
title: 'Chứng nhận chính quy',
|
|
64
|
+
desc: 'Nhận chứng chỉ hoàn thành khóa học danh giá, minh chứng rõ nét cho năng lực thực sự và sự đầu tư nghiêm túc của bạn.'
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
</script>
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<section id="#" class="relative">
|
|
3
|
+
<!-- Hero -->
|
|
4
|
+
<div class="bg-gradient-to-br from-[#004AC6] to-[#1D4ED8] text-white pt-40 pb-24 overflow-hidden relative">
|
|
5
|
+
<!-- Dot grid pattern -->
|
|
6
|
+
<div class="absolute inset-0 opacity-[0.06]"
|
|
7
|
+
style="background-image: radial-gradient(circle, #fff 1px, transparent 1px); background-size: 24px 24px;"></div>
|
|
8
|
+
|
|
9
|
+
<!-- Cluster nodes decoration -->
|
|
10
|
+
<svg class="absolute inset-0 w-full h-full opacity-[0.08]" xmlns="http://www.w3.org/2000/svg">
|
|
11
|
+
<!-- Connection lines -->
|
|
12
|
+
<line x1="15%" y1="25%" x2="35%" y2="45%" stroke="white" stroke-width="1" />
|
|
13
|
+
<line x1="35%" y1="45%" x2="25%" y2="70%" stroke="white" stroke-width="1" />
|
|
14
|
+
<line x1="35%" y1="45%" x2="55%" y2="35%" stroke="white" stroke-width="1" />
|
|
15
|
+
<line x1="55%" y1="35%" x2="75%" y2="55%" stroke="white" stroke-width="1" />
|
|
16
|
+
<line x1="75%" y1="55%" x2="85%" y2="30%" stroke="white" stroke-width="1" />
|
|
17
|
+
<line x1="75%" y1="55%" x2="65%" y2="75%" stroke="white" stroke-width="1" />
|
|
18
|
+
<!-- Nodes -->
|
|
19
|
+
<circle cx="15%" cy="25%" r="4" fill="white" />
|
|
20
|
+
<circle cx="35%" cy="45%" r="5" fill="white" />
|
|
21
|
+
<circle cx="25%" cy="70%" r="3.5" fill="white" />
|
|
22
|
+
<circle cx="55%" cy="35%" r="4.5" fill="white" />
|
|
23
|
+
<circle cx="75%" cy="55%" r="5" fill="white" />
|
|
24
|
+
<circle cx="85%" cy="30%" r="3.5" fill="white" />
|
|
25
|
+
<circle cx="65%" cy="75%" r="4" fill="white" />
|
|
26
|
+
<!-- Pulse rings -->
|
|
27
|
+
<circle cx="35%" cy="45%" r="12" fill="none" stroke="white" stroke-width="0.5" class="hero-pulse" />
|
|
28
|
+
<circle cx="75%" cy="55%" r="14" fill="none" stroke="white" stroke-width="0.5" class="hero-pulse"
|
|
29
|
+
style="animation-delay: 1.5s" />
|
|
30
|
+
</svg>
|
|
31
|
+
|
|
32
|
+
<div class="max-w-7xl mx-auto px-6 lg:px-8 grid lg:grid-cols-2 gap-14 items-center relative z-10">
|
|
33
|
+
<!-- Left -->
|
|
34
|
+
<div>
|
|
35
|
+
<div
|
|
36
|
+
class="inline-flex items-center gap-2 bg-white/10 backdrop-blur-md px-4 py-2 rounded-[10px] border border-white/20 mb-6">
|
|
37
|
+
<Icon name="lucide:headset" class="text-[16px]" />
|
|
38
|
+
<span class="text-xs font-bold uppercase tracking-widest">
|
|
39
|
+
Tư vấn miễn phí · Đào tạo Proxmox Virtual Environment
|
|
40
|
+
</span>
|
|
41
|
+
</div>
|
|
42
|
+
|
|
43
|
+
<h1 class="font-['Montserrat'] font-extrabold text-2xl sm:text-[2rem] leading-[1.15] mb-6">
|
|
44
|
+
Chưa biết nên học khóa nào?<br />
|
|
45
|
+
Được tư vấn đúng lộ trình trong 15 phút.
|
|
46
|
+
</h1>
|
|
47
|
+
|
|
48
|
+
<p class="text-blue-100/90 text-lg leading-relaxed mb-8 max-w-xl">
|
|
49
|
+
Đội ngũ kỹ sư hạ tầng của Long Vân sẽ đánh giá năng lực hiện tại và
|
|
50
|
+
mục tiêu công việc của bạn, từ đó đề xuất khóa học Proxmox, Ceph hoặc
|
|
51
|
+
DevOps phù hợp nhất — thay vì để bạn tự đoán.
|
|
52
|
+
</p>
|
|
53
|
+
|
|
54
|
+
<div class="flex flex-wrap gap-4">
|
|
55
|
+
<NuxtLink to="#lien-he" @click.prevent="scrollTo('lien-he')"
|
|
56
|
+
class="bg-white text-[#004AC6] px-7 py-3.5 rounded-[10px] font-bold flex items-center gap-2 hover:bg-blue-50 transition-colors shadow-lg active:scale-95">
|
|
57
|
+
Đặt lịch tư vấn miễn phí
|
|
58
|
+
<Icon name="lucide:arrow-right" class="text-[18px]" />
|
|
59
|
+
</NuxtLink>
|
|
60
|
+
|
|
61
|
+
<NuxtLink to="#dao-tao" @click.prevent="scrollTo('dao-tao')"
|
|
62
|
+
class="bg-transparent border border-white/40 text-white px-7 py-3.5 rounded-[10px] font-bold hover:bg-white/10 transition-colors">
|
|
63
|
+
Xem danh sách khóa học
|
|
64
|
+
</NuxtLink>
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
67
|
+
|
|
68
|
+
<!-- Right -->
|
|
69
|
+
<div class="relative flex justify-center">
|
|
70
|
+
<div class="relative z-10 rounded-2xl overflow-hidden">
|
|
71
|
+
<!-- <NuxtImg src="/images/image_from_https_hercules_cdn.com_file_6dztkvkfnip0ud23tzzvu57c.png"
|
|
72
|
+
alt="Long Vân Proxmox Infrastructure" class="w-full h-full object-contain p-4" /> -->
|
|
73
|
+
<img src="/images/image_from_https_hercules_cdn.com_file_6dztkvkfnip0ud23tzzvu57c.png"
|
|
74
|
+
alt="Long Vân Proxmox Infrastructure" class="w-full h-full object-contain p-4" />
|
|
75
|
+
</div>
|
|
76
|
+
</div>
|
|
77
|
+
</div>
|
|
78
|
+
</div>
|
|
79
|
+
|
|
80
|
+
<!-- Background phía dưới hero -->
|
|
81
|
+
<div class="bg-[#F7F9FB]">
|
|
82
|
+
<!-- Stats bar -->
|
|
83
|
+
<div class="relative -mt-8 z-10 max-w-7xl mx-auto px-6 lg:px-8">
|
|
84
|
+
<div class="hero-stats bg-white rounded-xl shadow-xl border border-slate-100 py-8 px-6">
|
|
85
|
+
<div class="grid grid-cols-3 gap-8 divide-x divide-slate-200">
|
|
86
|
+
<div class="text-center">
|
|
87
|
+
<div class="font-['Montserrat'] font-extrabold text-2xl sm:text-3xl text-[#004AC6]">
|
|
88
|
+
1.200+
|
|
89
|
+
</div>
|
|
90
|
+
<div class="text-slate-500 text-xs sm:text-sm font-medium mt-1">
|
|
91
|
+
Học viên đã được tư vấn
|
|
92
|
+
</div>
|
|
93
|
+
</div>
|
|
94
|
+
|
|
95
|
+
<div class="text-center">
|
|
96
|
+
<div class="font-['Montserrat'] font-extrabold text-2xl sm:text-3xl text-[#004AC6]">
|
|
97
|
+
96%
|
|
98
|
+
</div>
|
|
99
|
+
<div class="text-slate-500 text-xs sm:text-sm font-medium mt-1">
|
|
100
|
+
Chọn đúng khóa ngay lần đầu
|
|
101
|
+
</div>
|
|
102
|
+
</div>
|
|
103
|
+
|
|
104
|
+
<div class="text-center">
|
|
105
|
+
<div class="font-['Montserrat'] font-extrabold text-2xl sm:text-3xl text-[#004AC6]">
|
|
106
|
+
15 phút
|
|
107
|
+
</div>
|
|
108
|
+
<div class="text-slate-500 text-xs sm:text-sm font-medium mt-1">
|
|
109
|
+
Thời gian tư vấn trung bình
|
|
110
|
+
</div>
|
|
111
|
+
</div>
|
|
112
|
+
</div>
|
|
113
|
+
</div>
|
|
114
|
+
|
|
115
|
+
<!-- Khoảng cách trước section tiếp theo -->
|
|
116
|
+
<div class="h-16"></div>
|
|
117
|
+
</div>
|
|
118
|
+
</div>
|
|
119
|
+
</section>
|
|
120
|
+
</template>
|
|
121
|
+
|
|
122
|
+
<script setup>
|
|
123
|
+
const { scrollTo } = useScrollToSection()
|
|
124
|
+
useScrollAnimate('.hero-stats', 'fade-up')
|
|
125
|
+
</script>
|
|
126
|
+
|
|
127
|
+
<style scoped>
|
|
128
|
+
@keyframes pulse-ring {
|
|
129
|
+
0% {
|
|
130
|
+
transform: scale(1);
|
|
131
|
+
opacity: 0.6;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
100% {
|
|
135
|
+
transform: scale(2.5);
|
|
136
|
+
opacity: 0;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.hero-pulse {
|
|
141
|
+
animation: pulse-ring 3s ease-out infinite;
|
|
142
|
+
transform-origin: center;
|
|
143
|
+
}
|
|
144
|
+
</style>
|