@devvistatech/devvista-kit 0.0.10 → 0.0.12
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/CHANGELOG.md +12 -12
- package/LICENSE +6 -6
- package/README.md +15 -15
- package/app/about/page.tsx +298 -298
- package/app/adRequest/page.tsx +549 -549
- package/app/analytics/page.tsx +346 -346
- package/app/api/about/route.ts +306 -306
- package/app/api/adRequest/route.ts +567 -567
- package/app/api/analytics/[reportType]/route.ts +337 -337
- package/app/api/bio/route.ts +313 -313
- package/app/api/blog/route.ts +306 -306
- package/app/api/chat/route.ts +14 -14
- package/app/api/contact/route.ts +409 -409
- package/app/api/contacts/route.ts +224 -224
- package/app/api/files/route.ts +429 -429
- package/app/api/gallery-data/route.ts +735 -735
- package/app/api/schedule/route.ts +455 -455
- package/app/api/sync-user/route.ts +131 -131
- package/app/api/trial-request/route.ts +297 -297
- package/app/blog/[id]/page.tsx +288 -288
- package/app/blog/page.tsx +216 -216
- package/app/contact/page.tsx +284 -284
- package/app/faq/page.tsx +191 -191
- package/app/gallery/page.tsx +315 -315
- package/app/globals.css +58 -58
- package/app/layout.tsx +110 -110
- package/app/not-found.tsx +20 -20
- package/app/page.tsx +338 -338
- package/app/schedule/page.tsx +660 -660
- package/bin/init.js +219 -219
- package/components/addOns/functional/BioEditor.tsx +446 -446
- package/components/addOns/functional/CalendlyWidget.tsx +107 -107
- package/components/addOns/functional/ClassList.tsx +145 -145
- package/components/addOns/functional/ClassPopup.tsx +398 -398
- package/components/addOns/functional/ContactForm.tsx +284 -284
- package/components/addOns/functional/FileUploader.tsx +294 -294
- package/components/addOns/functional/ImageDescCarousel.tsx +730 -730
- package/components/addOns/functional/NewUserAnalytics.tsx +100 -100
- package/components/addOns/functional/ScheduleCarousel.tsx +171 -171
- package/components/addOns/functional/aboutSections/AboutSection.tsx +544 -544
- package/components/addOns/functional/aboutSections/constants/aboutSection.ts +65 -65
- package/components/addOns/functional/blogSections/BlogDashboard.tsx +184 -184
- package/components/addOns/functional/blogSections/BlogFormPopUp.tsx +554 -554
- package/components/addOns/functional/blogSections/BlogList.tsx +148 -148
- package/components/addOns/functional/blogSections/BlogSidebar.tsx +58 -58
- package/components/addOns/functional/blogSections/constants/blogDashboard.ts +28 -28
- package/components/addOns/functional/blogSections/constants/blogFormPopUp.ts +97 -97
- package/components/addOns/functional/blogSections/constants/blogList.ts +22 -22
- package/components/addOns/functional/blogSections/constants/blogSidebar.ts +15 -15
- package/components/addOns/functional/contactsDashboard/ContactsDashboard.tsx +366 -366
- package/components/addOns/functional/contactsDashboard/constants/contactsDashboard.ts +70 -70
- package/components/addOns/functional/galleries/GalleryComplex.tsx +836 -836
- package/components/addOns/functional/galleries/GallerySimple.tsx +509 -509
- package/components/addOns/functional/galleries/constants/galleryComplex.ts +106 -106
- package/components/addOns/functional/galleries/constants/gallerySimple.ts +76 -76
- package/components/addOns/functional/schedules/ScheduleGridOne.tsx +262 -262
- package/components/addOns/functional/schedules/ScheduleGridTwo.tsx +294 -294
- package/components/addOns/functional/schedules/ScheduleGridTwoBasic.tsx +288 -288
- package/components/addOns/functional/schedules/SchedulerForm.tsx +428 -428
- package/components/addOns/functional/schedules/constants/ScheduleGridTwo.ts +40 -40
- package/components/addOns/functional/schedules/constants/ScheduleGridTwoBasic.ts +40 -40
- package/components/addOns/functional/schedules/constants/SchedulerForm.ts +65 -65
- package/components/addOns/functional/schedules/constants/scheduleGridOne.ts +54 -54
- package/components/addOns/non-functional/AnnouncementBanner.tsx +46 -46
- package/components/addOns/non-functional/FeaturesSection.tsx +62 -62
- package/components/addOns/non-functional/Heros/HeroSection.tsx +142 -142
- package/components/addOns/non-functional/IconBubble.tsx +49 -49
- package/components/addOns/non-functional/SampleCarousel.tsx +204 -204
- package/components/addOns/non-functional/Testimonials.tsx +334 -334
- package/components/addOns/non-functional/ThreeSetGallery.tsx +63 -63
- package/components/addOns/non-functional/aboutSections/AboutSection.tsx +62 -62
- package/components/addOns/non-functional/aboutSections/constants/aboutSection.ts +24 -24
- package/components/addOns/non-functional/imageCarousels/ProductSlider.tsx +117 -117
- package/components/addOns/non-functional/imageCarousels/ProgramCarousel.tsx +232 -232
- package/components/addOns/non-functional/imageCarousels/constants/programCarousel.ts +39 -39
- package/components/addOns/non-functional/imageCarousels/constants/programSlider.ts +36 -36
- package/components/addOns/non-functional/spinner.tsx +21 -21
- package/components/footers/footer.tsx +453 -453
- package/components/navBars/navbar.tsx +310 -310
- package/components/other/accordion.tsx +58 -58
- package/components/other/admin-menu.tsx +68 -68
- package/components/other/alert-dialog.tsx +141 -141
- package/components/other/alert.tsx +59 -59
- package/components/other/aspect-ratio.tsx +7 -7
- package/components/other/avatar.tsx +50 -50
- package/components/other/badge.tsx +36 -36
- package/components/other/breadcrumb.tsx +115 -115
- package/components/other/button.tsx +738 -738
- package/components/other/calendar.tsx +66 -66
- package/components/other/card.tsx +86 -86
- package/components/other/carousel.tsx +274 -274
- package/components/other/chart.tsx +363 -363
- package/components/other/checkbox.tsx +30 -30
- package/components/other/collapsible.tsx +11 -11
- package/components/other/command.tsx +155 -155
- package/components/other/context-menu.tsx +200 -200
- package/components/other/dialog.tsx +122 -122
- package/components/other/drawer.tsx +118 -118
- package/components/other/dropdown-menu.tsx +200 -200
- package/components/other/form.tsx +179 -179
- package/components/other/hover-card.tsx +29 -29
- package/components/other/input-otp.tsx +71 -71
- package/components/other/input.tsx +25 -25
- package/components/other/label.tsx +26 -26
- package/components/other/menubar.tsx +236 -236
- package/components/other/mobile-icon.tsx +21 -21
- package/components/other/navigation-menu.tsx +128 -128
- package/components/other/pagination.tsx +117 -117
- package/components/other/popover.tsx +31 -31
- package/components/other/progress.tsx +28 -28
- package/components/other/radio-group.tsx +44 -44
- package/components/other/resizable.tsx +45 -45
- package/components/other/scroll-area.tsx +48 -48
- package/components/other/select.tsx +160 -160
- package/components/other/separator.tsx +31 -31
- package/components/other/sheet.tsx +140 -140
- package/components/other/skeleton.tsx +15 -15
- package/components/other/slider.tsx +28 -28
- package/components/other/social-icons.tsx +39 -39
- package/components/other/sonner.tsx +31 -31
- package/components/other/switch.tsx +29 -29
- package/components/other/table.tsx +117 -117
- package/components/other/tabs.tsx +55 -55
- package/components/other/textarea.tsx +24 -24
- package/components/other/toast.tsx +122 -122
- package/components/other/toaster.tsx +35 -35
- package/components/other/toggle-group.tsx +61 -61
- package/components/other/toggle.tsx +45 -45
- package/components/other/tooltip.tsx +30 -30
- package/components/theme-provider.tsx +8 -8
- package/components/types.ts +49 -49
- package/hooks/use-toast.ts +188 -188
- package/lib/auth-context.tsx +130 -130
- package/lib/constants/about.ts +34 -34
- package/lib/constants/adRequest.ts +113 -113
- package/lib/constants/contact.ts +40 -40
- package/lib/constants/faq.ts +34 -34
- package/lib/constants/gallery.ts +42 -42
- package/lib/constants/page.ts +69 -69
- package/lib/constants/schedule.ts +71 -71
- package/lib/google-analytics.tsx +97 -97
- package/lib/verify-user.ts +117 -117
- package/middleware.ts +42 -42
- package/netlify.toml +5 -5
- package/next.config.js +10 -10
- package/package.json +115 -115
- package/tailwind.config.ts +89 -89
- package/tsconfig.json +23 -23
- package/dist/.next/types/app/api/about/route.js +0 -52
- package/dist/.next/types/app/api/blog/route.js +0 -52
- package/dist/.next/types/app/api/files/route.js +0 -52
- package/dist/.next/types/app/api/schedule/route.js +0 -52
- package/dist/.next/types/app/api/sync-user/route.js +0 -52
- package/dist/.next/types/app/layout.js +0 -22
- package/dist/.next/types/app/page.js +0 -22
- package/dist/app/about/page.jsx +0 -258
- package/dist/app/adRequest/page.jsx +0 -531
- package/dist/app/analytics/page.jsx +0 -298
- package/dist/app/api/about/route.js +0 -285
- package/dist/app/api/adRequest/route.js +0 -440
- package/dist/app/api/analytics/[reportType]/route.js +0 -357
- package/dist/app/api/bio/route.js +0 -293
- package/dist/app/api/blog/route.js +0 -366
- package/dist/app/api/chat/route.js +0 -58
- package/dist/app/api/contact/route.js +0 -163
- package/dist/app/api/contacts/route.js +0 -234
- package/dist/app/api/files/route.js +0 -444
- package/dist/app/api/gallery-data/route.js +0 -719
- package/dist/app/api/schedule/route.js +0 -461
- package/dist/app/api/sync-user/route.js +0 -186
- package/dist/app/api/trial-request/route.js +0 -165
- package/dist/app/blog/[id]/page.jsx +0 -312
- package/dist/app/blog/page.jsx +0 -210
- package/dist/app/constants/about.js +0 -32
- package/dist/app/constants/adRequest.js +0 -113
- package/dist/app/constants/contact.js +0 -40
- package/dist/app/constants/faq.js +0 -36
- package/dist/app/constants/gallery.js +0 -42
- package/dist/app/constants/page.js +0 -69
- package/dist/app/constants/schedule.js +0 -71
- package/dist/app/contact/page.jsx +0 -119
- package/dist/app/faq/page.jsx +0 -97
- package/dist/app/gallery/page.jsx +0 -281
- package/dist/app/layout.jsx +0 -45
- package/dist/app/not-found.jsx +0 -14
- package/dist/app/page.jsx +0 -324
- package/dist/app/schedule/page.jsx +0 -500
- package/dist/components/addOns/functional/BioEditor.jsx +0 -187
- package/dist/components/addOns/functional/CalendlyWidget.jsx +0 -61
- package/dist/components/addOns/functional/ClassList.jsx +0 -158
- package/dist/components/addOns/functional/ClassPopup.jsx +0 -300
- package/dist/components/addOns/functional/ContactForm.jsx +0 -219
- package/dist/components/addOns/functional/FileUploader.jsx +0 -222
- package/dist/components/addOns/functional/ImageDescCarousel.jsx +0 -491
- package/dist/components/addOns/functional/NewUserAnalytics.jsx +0 -71
- package/dist/components/addOns/functional/ScheduleCarousel.jsx +0 -68
- package/dist/components/addOns/functional/aboutSections/AboutSection.jsx +0 -372
- package/dist/components/addOns/functional/aboutSections/constants/aboutSection.js +0 -65
- package/dist/components/addOns/functional/blogSections/BlogDashboard.jsx +0 -111
- package/dist/components/addOns/functional/blogSections/BlogFormPopUp.jsx +0 -465
- package/dist/components/addOns/functional/blogSections/BlogList.jsx +0 -170
- package/dist/components/addOns/functional/blogSections/BlogSidebar.jsx +0 -35
- package/dist/components/addOns/functional/blogSections/constants/blogDashboard.js +0 -28
- package/dist/components/addOns/functional/blogSections/constants/blogFormPopUp.js +0 -97
- package/dist/components/addOns/functional/blogSections/constants/blogList.js +0 -22
- package/dist/components/addOns/functional/blogSections/constants/blogSidebar.js +0 -15
- package/dist/components/addOns/functional/contactsDashboard/ContactsDashboard.jsx +0 -355
- package/dist/components/addOns/functional/contactsDashboard/constants/contactsDashboard.js +0 -70
- package/dist/components/addOns/functional/galleries/GalleryComplex.jsx +0 -605
- package/dist/components/addOns/functional/galleries/GallerySimple.jsx +0 -363
- package/dist/components/addOns/functional/galleries/constants/galleryComplex.js +0 -106
- package/dist/components/addOns/functional/galleries/constants/gallerySimple.js +0 -76
- package/dist/components/addOns/functional/schedules/ScheduleGridOne.jsx +0 -167
- package/dist/components/addOns/functional/schedules/ScheduleGridTwo.jsx +0 -100
- package/dist/components/addOns/functional/schedules/ScheduleGridTwoBasic.jsx +0 -97
- package/dist/components/addOns/functional/schedules/SchedulerForm.jsx +0 -188
- package/dist/components/addOns/functional/schedules/constants/ScheduleGridTwo.js +0 -40
- package/dist/components/addOns/functional/schedules/constants/ScheduleGridTwoBasic.js +0 -40
- package/dist/components/addOns/functional/schedules/constants/SchedulerForm.js +0 -65
- package/dist/components/addOns/functional/schedules/constants/scheduleGridOne.js +0 -54
- package/dist/components/addOns/non-functional/AnnouncementBanner.jsx +0 -24
- package/dist/components/addOns/non-functional/FeaturesSection.jsx +0 -38
- package/dist/components/addOns/non-functional/HeroSection.jsx +0 -71
- package/dist/components/addOns/non-functional/Heros/HeroSection.jsx +0 -71
- package/dist/components/addOns/non-functional/IconBubble.jsx +0 -36
- package/dist/components/addOns/non-functional/SampleCarousel.jsx +0 -114
- package/dist/components/addOns/non-functional/Testimonials.jsx +0 -177
- package/dist/components/addOns/non-functional/ThreeSetGallery.jsx +0 -40
- package/dist/components/addOns/non-functional/aboutSections/AboutSection.jsx +0 -35
- package/dist/components/addOns/non-functional/aboutSections/constants/aboutSection.js +0 -24
- package/dist/components/addOns/non-functional/imageCarousels/ProductSlider.jsx +0 -80
- package/dist/components/addOns/non-functional/imageCarousels/ProgramCarousel.jsx +0 -155
- package/dist/components/addOns/non-functional/imageCarousels/constants/programCarousel.js +0 -39
- package/dist/components/addOns/non-functional/imageCarousels/constants/programSlider.js +0 -36
- package/dist/components/addOns/non-functional/spinner.jsx +0 -13
- package/dist/components/footers/footer.jsx +0 -217
- package/dist/components/navBars/navbar.jsx +0 -159
- package/dist/components/other/accordion.jsx +0 -40
- package/dist/components/other/admin-menu.jsx +0 -34
- package/dist/components/other/alert-dialog.jsx +0 -64
- package/dist/components/other/alert.jsx +0 -41
- package/dist/components/other/aspect-ratio.jsx +0 -4
- package/dist/components/other/avatar.jsx +0 -31
- package/dist/components/other/badge.jsx +0 -32
- package/dist/components/other/breadcrumb.jsx +0 -57
- package/dist/components/other/button.jsx +0 -322
- package/dist/components/other/calendar.jsx +0 -43
- package/dist/components/other/card.jsx +0 -44
- package/dist/components/other/carousel.jsx +0 -140
- package/dist/components/other/chart.jsx +0 -182
- package/dist/components/other/checkbox.jsx +0 -26
- package/dist/components/other/collapsible.jsx +0 -6
- package/dist/components/other/command.jsx +0 -68
- package/dist/components/other/context-menu.jsx +0 -88
- package/dist/components/other/dialog.jsx +0 -60
- package/dist/components/other/drawer.jsx +0 -60
- package/dist/components/other/dropdown-menu.jsx +0 -90
- package/dist/components/other/form.jsx +0 -89
- package/dist/components/other/hover-card.jsx +0 -23
- package/dist/components/other/input-otp.jsx +0 -46
- package/dist/components/other/input.jsx +0 -19
- package/dist/components/other/label.jsx +0 -23
- package/dist/components/other/login-popup.jsx +0 -1
- package/dist/components/other/menubar.jsx +0 -96
- package/dist/components/other/mobile-icon.jsx +0 -11
- package/dist/components/other/navigation-menu.jsx +0 -62
- package/dist/components/other/pagination.jsx +0 -63
- package/dist/components/other/popover.jsx +0 -25
- package/dist/components/other/progress.jsx +0 -23
- package/dist/components/other/radio-group.jsx +0 -31
- package/dist/components/other/resizable.jsx +0 -29
- package/dist/components/other/scroll-area.jsx +0 -36
- package/dist/components/other/select.jsx +0 -83
- package/dist/components/other/separator.jsx +0 -21
- package/dist/components/other/sheet.jsx +0 -74
- package/dist/components/other/signup-popup.jsx +0 -1
- package/dist/components/other/skeleton.jsx +0 -17
- package/dist/components/other/slider.jsx +0 -26
- package/dist/components/other/social-icons.jsx +0 -15
- package/dist/components/other/sonner.jsx +0 -27
- package/dist/components/other/switch.jsx +0 -23
- package/dist/components/other/table.jsx +0 -56
- package/dist/components/other/tabs.jsx +0 -32
- package/dist/components/other/textarea.jsx +0 -19
- package/dist/components/other/toast.jsx +0 -58
- package/dist/components/other/toaster.jsx +0 -31
- package/dist/components/other/toggle-group.jsx +0 -41
- package/dist/components/other/toggle.jsx +0 -39
- package/dist/components/other/tooltip.jsx +0 -24
- package/dist/components/theme-provider.jsx +0 -18
- package/dist/components/types.js +0 -1
- package/dist/hooks/use-toast.js +0 -135
- package/dist/lib/auth-context.jsx +0 -144
- package/dist/lib/constants/about.js +0 -32
- package/dist/lib/constants/adRequest.js +0 -113
- package/dist/lib/constants/contact.js +0 -40
- package/dist/lib/constants/faq.js +0 -36
- package/dist/lib/constants/gallery.js +0 -42
- package/dist/lib/constants/page.js +0 -69
- package/dist/lib/constants/schedule.js +0 -71
- package/dist/lib/google-analytics.jsx +0 -148
- package/dist/lib/utils.js +0 -9
- package/dist/lib/verify-user.js +0 -142
- package/dist/middleware.js +0 -37
- package/dist/tailwind.config.js +0 -86
- package/dist/tsconfig.tsbuildinfo +0 -1
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
// components/addOns/functional/schedules/constants/scheduleGridTwoBasic.ts
|
|
2
|
-
// Constants for hardcoded text in ScheduleGridTwoBasic.tsx, organized by purpose
|
|
3
|
-
export var SCHEDULE_GRID_TWO_BASIC = {
|
|
4
|
-
// UI Text for ScheduleGridTwoBasic
|
|
5
|
-
UI: {
|
|
6
|
-
// Heading for schedule section
|
|
7
|
-
CLASS_SCHEDULE_HEADING: "Class Schedule",
|
|
8
|
-
// Text when no classes exist for a day
|
|
9
|
-
NO_CLASSES_MESSAGE: "No classes",
|
|
10
|
-
// Footer text before phone number
|
|
11
|
-
COMPLIMENTARY_CLASS_TEXT: "Your first class is complimentary! Questions? Call ",
|
|
12
|
-
// Phone number in footer link
|
|
13
|
-
PHONE_NUMBER: "315-415-4043",
|
|
14
|
-
// Footer disclaimer
|
|
15
|
-
SCHEDULE_DISCLAIMER: "*Management reserves the right to cancel or alter class schedules based on attendance.",
|
|
16
|
-
// Days of the week for headers
|
|
17
|
-
DAYS_OF_WEEK: [
|
|
18
|
-
"Monday",
|
|
19
|
-
"Tuesday",
|
|
20
|
-
"Wednesday",
|
|
21
|
-
"Thursday",
|
|
22
|
-
"Friday",
|
|
23
|
-
"Saturday",
|
|
24
|
-
"Sunday",
|
|
25
|
-
],
|
|
26
|
-
// Hardcoded age group for popup
|
|
27
|
-
ALL_AGES_TEXT: "All Ages",
|
|
28
|
-
// DeleteIconButton aria-label template
|
|
29
|
-
DELETE_BUTTON_ARIA: "Delete ${cls.name} class",
|
|
30
|
-
},
|
|
31
|
-
// Button Text for ScheduleGridTwoBasic
|
|
32
|
-
BUTTONS: {
|
|
33
|
-
// AddButton text for adding new class
|
|
34
|
-
ADD_NEW_CLASS_BUTTON: "Add New Class",
|
|
35
|
-
},
|
|
36
|
-
// Error Messages for ScheduleGridTwoBasic
|
|
37
|
-
ERRORS: {
|
|
38
|
-
// No hardcoded errors
|
|
39
|
-
},
|
|
40
|
-
};
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
// components/addOns/functional/schedules/constants/schedulerForm.ts
|
|
2
|
-
// Constants for hardcoded text in Schedule.tsx (SchedulerForm), organized by purpose
|
|
3
|
-
export var SCHEDULER_FORM = {
|
|
4
|
-
// UI Text for SchedulerForm
|
|
5
|
-
UI: {
|
|
6
|
-
// Heading for edit class modal
|
|
7
|
-
EDIT_CLASS_HEADING: "Edit Class",
|
|
8
|
-
// Heading for add new class modal
|
|
9
|
-
ADD_NEW_CLASS_HEADING: "Add New Class",
|
|
10
|
-
// Label for class name input
|
|
11
|
-
CLASS_NAME_LABEL: "Class Name",
|
|
12
|
-
// Placeholder for class name input
|
|
13
|
-
CLASS_NAME_PLACEHOLDER: "Enter class name",
|
|
14
|
-
// Label for start time inputs
|
|
15
|
-
START_TIME_LABEL: "Start Time",
|
|
16
|
-
// Default option for hour select
|
|
17
|
-
HOUR_OPTION: "Hour",
|
|
18
|
-
// Default option for minute select
|
|
19
|
-
MINUTE_OPTION: "Minute",
|
|
20
|
-
// Options for period select
|
|
21
|
-
AM_OPTION: "AM",
|
|
22
|
-
PM_OPTION: "PM",
|
|
23
|
-
// Label for end time inputs
|
|
24
|
-
END_TIME_LABEL: "End Time",
|
|
25
|
-
// Label for days of week checkboxes
|
|
26
|
-
DAYS_OF_WEEK_LABEL: "Days of the Week",
|
|
27
|
-
// Checkbox labels for days of the week
|
|
28
|
-
DAYS_OF_WEEK: [
|
|
29
|
-
{ value: 1, label: "Monday" },
|
|
30
|
-
{ value: 2, label: "Tuesday" },
|
|
31
|
-
{ value: 3, label: "Wednesday" },
|
|
32
|
-
{ value: 4, label: "Thursday" },
|
|
33
|
-
{ value: 5, label: "Friday" },
|
|
34
|
-
{ value: 6, label: "Saturday" },
|
|
35
|
-
{ value: 7, label: "Sunday" },
|
|
36
|
-
],
|
|
37
|
-
// Label for class description textarea
|
|
38
|
-
CLASS_DESCRIPTION_LABEL: "Class Description (optional)",
|
|
39
|
-
// Placeholder for class description textarea
|
|
40
|
-
CLASS_DESCRIPTION_PLACEHOLDER: "Enter class description",
|
|
41
|
-
// Heading for delete confirmation modal
|
|
42
|
-
DELETE_CONFIRMATION_HEADING: "Confirm Deletion",
|
|
43
|
-
// Text in delete confirmation modal
|
|
44
|
-
DELETE_CONFIRMATION_MESSAGE: "Are you sure you want to delete this class? This action cannot be undone.",
|
|
45
|
-
},
|
|
46
|
-
// Button Text for SchedulerForm
|
|
47
|
-
BUTTONS: {
|
|
48
|
-
// AddButton text when loading
|
|
49
|
-
SAVING_BUTTON: "Saving...",
|
|
50
|
-
// AddButton text when editing a class
|
|
51
|
-
UPDATE_BUTTON: "Update",
|
|
52
|
-
// AddButton text when adding a new class
|
|
53
|
-
ADD_BUTTON: "Add",
|
|
54
|
-
// DeleteButton text when loading
|
|
55
|
-
DELETING_BUTTON: "Deleting...",
|
|
56
|
-
// DeleteButton text for delete confirmation
|
|
57
|
-
DELETE_BUTTON: "Delete",
|
|
58
|
-
// CancelButton text for both modals
|
|
59
|
-
CANCEL_BUTTON: "Cancel",
|
|
60
|
-
},
|
|
61
|
-
// Error Messages for SchedulerForm
|
|
62
|
-
ERRORS: {
|
|
63
|
-
// No hardcoded errors
|
|
64
|
-
},
|
|
65
|
-
};
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
// components/addOns/functional/schedules/constants/scheduleGridOne.ts
|
|
2
|
-
// Constants for hardcoded text in ScheduleGridOne.tsx, organized by purpose
|
|
3
|
-
export var SCHEDULE_GRID_ONE = {
|
|
4
|
-
// UI Text for ScheduleGridOne
|
|
5
|
-
UI: {
|
|
6
|
-
// Label for search input
|
|
7
|
-
SEARCH_LABEL: "Search by Class Name",
|
|
8
|
-
// Placeholder for search input
|
|
9
|
-
SEARCH_PLACEHOLDER: "Search classes...",
|
|
10
|
-
// Label for time filter select
|
|
11
|
-
TIME_FILTER_LABEL: "Time of Day",
|
|
12
|
-
// Default option for time filter select
|
|
13
|
-
ALL_TIMES_OPTION: "All Times",
|
|
14
|
-
// Time filter options
|
|
15
|
-
MORNING_OPTION: "Morning (Before 12:00 PM)",
|
|
16
|
-
AFTERNOON_OPTION: "Afternoon (12:00 PM - 5:00 PM)",
|
|
17
|
-
EVENING_OPTION: "Evening (After 5:00 PM)",
|
|
18
|
-
// Heading for schedule section
|
|
19
|
-
CLASS_SCHEDULE_HEADING: "Class Schedule",
|
|
20
|
-
// Text when no classes exist for a day
|
|
21
|
-
NO_CLASSES_MESSAGE: "No classes",
|
|
22
|
-
// Footer text before phone number
|
|
23
|
-
COMPLIMENTARY_CLASS_TEXT: "Your first class is complimentary! Questions? Call ",
|
|
24
|
-
// Phone number in footer link
|
|
25
|
-
PHONE_NUMBER: "315-415-4043",
|
|
26
|
-
// Footer disclaimer
|
|
27
|
-
SCHEDULE_DISCLAIMER: "*Management reserves the right to cancel or alter class schedules based on attendance.",
|
|
28
|
-
// Days of the week for headers
|
|
29
|
-
DAYS_OF_WEEK: [
|
|
30
|
-
"Monday",
|
|
31
|
-
"Tuesday",
|
|
32
|
-
"Wednesday",
|
|
33
|
-
"Thursday",
|
|
34
|
-
"Friday",
|
|
35
|
-
"Saturday",
|
|
36
|
-
"Sunday",
|
|
37
|
-
],
|
|
38
|
-
// Hardcoded age group for popup
|
|
39
|
-
ALL_AGES_TEXT: "All Ages",
|
|
40
|
-
// DeleteIconButton aria-label template
|
|
41
|
-
DELETE_BUTTON_ARIA: "Delete ${cls.name} class",
|
|
42
|
-
},
|
|
43
|
-
// Button Text for ScheduleGridOne
|
|
44
|
-
BUTTONS: {
|
|
45
|
-
// SubmitButton text for resetting filters
|
|
46
|
-
RESET_FILTERS_BUTTON: "Reset Filters",
|
|
47
|
-
// AddButton text for adding new class
|
|
48
|
-
ADD_NEW_CLASS_BUTTON: "Add New Class",
|
|
49
|
-
},
|
|
50
|
-
// Error Messages for ScheduleGridOne
|
|
51
|
-
ERRORS: {
|
|
52
|
-
// No hardcoded errors
|
|
53
|
-
},
|
|
54
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { motion } from "framer-motion";
|
|
3
|
-
import { X } from "lucide-react";
|
|
4
|
-
import { useState } from "react";
|
|
5
|
-
export default function AnnouncementBanner() {
|
|
6
|
-
var _a = useState(true), isVisible = _a[0], setIsVisible = _a[1];
|
|
7
|
-
if (!isVisible)
|
|
8
|
-
return null;
|
|
9
|
-
return (<motion.div className="fixed top-0 left-0 right-0 bg-blue-500/80 backdrop-blur-sm text-white py-3 sm:py-6 px-4 sm:px-6 z-50 shadow-md" style={{
|
|
10
|
-
maskImage: "linear-gradient(to right, transparent 0%, black 20%, black 80%, transparent 100%)",
|
|
11
|
-
WebkitMaskImage: "linear-gradient(to right, transparent 0%, black 20%, black 80%, transparent 100%)",
|
|
12
|
-
}} initial={{ y: -100, opacity: 0 }} animate={{ y: 0, opacity: 1 }} exit={{ y: -100, opacity: 0 }} transition={{ duration: 0.5, ease: "easeOut" }}>
|
|
13
|
-
<div className="max-w-7xl mx-auto flex items-center justify-between relative pr-10 sm:pr-14">
|
|
14
|
-
<p className="text-xs sm:text-sm md:text-base font-medium text-center flex-1">
|
|
15
|
-
We will be closed this Friday and Saturday (July 4–5) in observance of Independence Day.
|
|
16
|
-
</p>
|
|
17
|
-
<button onClick={function () { return setIsVisible(false); }} className="absolute right-2 sm:right-4 bg-blue-600/50 hover:bg-blue-700/70 text-white rounded-full p-1.5 sm:p-2 focus:outline-none focus:ring-2 focus:ring-blue-300 transition-colors" aria-label="Close announcement">
|
|
18
|
-
<X className="w-5 h-5 sm:w-8 sm:h-8"/>
|
|
19
|
-
</button>
|
|
20
|
-
</div>
|
|
21
|
-
|
|
22
|
-
<style jsx>{"\n .gradient-text {\n background: linear-gradient(45deg, #80ff80 25%, #80ff80 50%, #00b7eb 85%, #00b7eb 75%);\n -webkit-background-clip: text;\n background-clip: text;\n color: transparent;\n }\n "}</style>
|
|
23
|
-
</motion.div>);
|
|
24
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
// src/components/FeaturesSection.tsx
|
|
2
|
-
"use client";
|
|
3
|
-
import { ActionButton } from "@/components/other/button";
|
|
4
|
-
import { CheckCircle, ArrowRight } from "lucide-react";
|
|
5
|
-
import Link from "next/link";
|
|
6
|
-
export function FeaturesSection(_a) {
|
|
7
|
-
var features = _a.features, title = _a.title, description = _a.description, ctaText = _a.ctaText, ctaLink = _a.ctaLink;
|
|
8
|
-
return (<section className="w-full py-16 sm:py-24 px-4 sm:px-8 bg-blue-200 z-0">
|
|
9
|
-
<div className="w-full pt-16 sm:pt-24 pb-16 sm:pb-24">
|
|
10
|
-
<div className="max-w-7xl mx-auto px-4 sm:px-6">
|
|
11
|
-
<div className="flex flex-col md:flex-row gap-6 justify-center items-center">
|
|
12
|
-
<div className="w-full md:w-1/2 space-y-6 flex justify-center">
|
|
13
|
-
<ul className="space-y-4 text-2xl font-semibold">
|
|
14
|
-
{features.map(function (feature, index) { return (<li key={index} className="flex items-center justify-start">
|
|
15
|
-
<CheckCircle className="mr-3 h-6 w-6 text-[#FF69B4] flex-shrink-0"/>
|
|
16
|
-
<span>{feature.text}</span>
|
|
17
|
-
</li>); })}
|
|
18
|
-
</ul>
|
|
19
|
-
</div>
|
|
20
|
-
<div className="w-full md:w-1/2 space-y-6 text-center pt-12">
|
|
21
|
-
<h4 className="text-4xl sm:text-5xl font-bold text-[#333] tracking-tight">
|
|
22
|
-
{title}
|
|
23
|
-
</h4>
|
|
24
|
-
<p className="text-xl sm:text-2xl font-semibold text-[#333]">
|
|
25
|
-
{description}
|
|
26
|
-
</p>
|
|
27
|
-
<ActionButton asChild>
|
|
28
|
-
<Link href={ctaLink} className="flex items-center justify-center">
|
|
29
|
-
{ctaText}
|
|
30
|
-
<ArrowRight className="ml-2 h-6 w-6"/>
|
|
31
|
-
</Link>
|
|
32
|
-
</ActionButton>
|
|
33
|
-
</div>
|
|
34
|
-
</div>
|
|
35
|
-
</div>
|
|
36
|
-
</div>
|
|
37
|
-
</section>);
|
|
38
|
-
}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { useRef, useEffect, useState } from "react";
|
|
3
|
-
import { HeroButton } from "@/components/other/button"; // Updated import
|
|
4
|
-
import Link from "next/link";
|
|
5
|
-
export function HeroSection(_a) {
|
|
6
|
-
var title = _a.title, subtitle = _a.subtitle, ctaText = _a.ctaText, ctaLink = _a.ctaLink, videoSrc = _a.videoSrc, videoAriaLabel = _a.videoAriaLabel, posterSrc = _a.posterSrc, onVideoReady = _a.onVideoReady;
|
|
7
|
-
var heroBackgroundRef = useRef(null);
|
|
8
|
-
var videoRef = useRef(null);
|
|
9
|
-
var _b = useState(true), isVideoLoading = _b[0], setIsVideoLoading = _b[1];
|
|
10
|
-
useEffect(function () {
|
|
11
|
-
var handleScroll = function () {
|
|
12
|
-
if (window.innerWidth <= 768)
|
|
13
|
-
return;
|
|
14
|
-
if (heroBackgroundRef.current) {
|
|
15
|
-
var scrollY_1 = window.scrollY;
|
|
16
|
-
var parallaxSpeed = 0.9;
|
|
17
|
-
heroBackgroundRef.current.style.transform = "translateY(".concat(scrollY_1 * parallaxSpeed, "px)");
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
window.addEventListener("scroll", handleScroll, { passive: true });
|
|
21
|
-
return function () { return window.removeEventListener("scroll", handleScroll); };
|
|
22
|
-
}, []);
|
|
23
|
-
useEffect(function () {
|
|
24
|
-
var video = videoRef.current;
|
|
25
|
-
if (!video)
|
|
26
|
-
return;
|
|
27
|
-
video.style.opacity = "0";
|
|
28
|
-
var handleCanPlay = function () {
|
|
29
|
-
setIsVideoLoading(false);
|
|
30
|
-
video.style.opacity = "1";
|
|
31
|
-
if (onVideoReady)
|
|
32
|
-
onVideoReady();
|
|
33
|
-
};
|
|
34
|
-
video.addEventListener("canplaythrough", handleCanPlay);
|
|
35
|
-
video.load();
|
|
36
|
-
return function () {
|
|
37
|
-
video.removeEventListener("canplaythrough", handleCanPlay);
|
|
38
|
-
};
|
|
39
|
-
}, [onVideoReady, videoSrc]);
|
|
40
|
-
return (<section className="relative h-screen w-full z-0 pt-12 sm:pt-12 overflow-hidden bg-[#1E2A44]">
|
|
41
|
-
<style jsx>{"\n .bg-gradient-overlay {\n position: absolute;\n inset: 0;\n background: linear-gradient(\n to bottom,\n var(--jubilee) / 0.6,\n var(--jubilee) / 0.4\n );\n }\n .video-fade-in {\n opacity: 0;\n transition: opacity 0.5s ease-in;\n }\n "}</style>
|
|
42
|
-
<div className="absolute inset-0 z-[-10] overflow-hidden" style={{ "--jubilee": "#F47C7C" }} ref={heroBackgroundRef}>
|
|
43
|
-
<video ref={videoRef} autoPlay loop muted playsInline preload="metadata" className="video-fade-in absolute inset-0 w-full h-screen object-cover filter brightness-75" aria-label={videoAriaLabel} poster={posterSrc || undefined}>
|
|
44
|
-
<source src={"".concat(videoSrc, "#t=0.1")} type="video/mp4"/>
|
|
45
|
-
Your browser does not support the video tag.
|
|
46
|
-
</video>
|
|
47
|
-
<div className="bg-gradient-overlay"/>
|
|
48
|
-
</div>
|
|
49
|
-
<div className="relative z-10 w-full px-4 sm:px-6 lg:px-8 py-16 sm:py-20 lg:py-24 text-center flex flex-col justify-center items-center h-screen">
|
|
50
|
-
<div className="relative flex items-center justify-center w-full max-w-full">
|
|
51
|
-
<h1 className="text-5xl sm:text-5xl md:text-6xl lg:text-7xl font-bold text-[#FF69B4] tracking-tight" style={{
|
|
52
|
-
textShadow: "\n 2px 2px 4px rgba(0, 0, 0, 0.5),\n -2px -2px 4px rgba(0, 0, 0, 0.5)\n ",
|
|
53
|
-
fontFamily: "'Inter', sans-serif",
|
|
54
|
-
}}>
|
|
55
|
-
{title}
|
|
56
|
-
</h1>
|
|
57
|
-
</div>
|
|
58
|
-
<h2 className="text-2xl sm:text-4xl md:text-5xl font-semibold text-white tracking-tight pt-4" style={{
|
|
59
|
-
textShadow: "\n 2px 2px 4px rgba(0, 0, 0, 0.5),\n -2px -2px 4px rgba(0, 0, 0, 0.5)\n ",
|
|
60
|
-
}}>
|
|
61
|
-
{subtitle}
|
|
62
|
-
</h2>
|
|
63
|
-
<HeroButton asChild size="hero" className="mt-8 text-white text-base sm:text-lg lg:text-xl">
|
|
64
|
-
<Link href={ctaLink}>{ctaText}</Link>
|
|
65
|
-
</HeroButton>
|
|
66
|
-
</div>
|
|
67
|
-
<div className="absolute bottom-4 left-4 z-10">
|
|
68
|
-
{/* <SocialIcons /> */}
|
|
69
|
-
</div>
|
|
70
|
-
</section>);
|
|
71
|
-
}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { useRef, useEffect, useState } from "react";
|
|
3
|
-
import { HeroButton } from "@/components/other/button";
|
|
4
|
-
import Link from "next/link";
|
|
5
|
-
export function GalleryHero(_a) {
|
|
6
|
-
var title = _a.title, subtitle = _a.subtitle, ctaText = _a.ctaText, ctaLink = _a.ctaLink, videoSrc = _a.videoSrc, videoAriaLabel = _a.videoAriaLabel, posterSrc = _a.posterSrc, onVideoReady = _a.onVideoReady;
|
|
7
|
-
var heroBackgroundRef = useRef(null);
|
|
8
|
-
var videoRef = useRef(null);
|
|
9
|
-
var _b = useState(true), isVideoLoading = _b[0], setIsVideoLoading = _b[1];
|
|
10
|
-
useEffect(function () {
|
|
11
|
-
var handleScroll = function () {
|
|
12
|
-
if (window.innerWidth <= 768)
|
|
13
|
-
return;
|
|
14
|
-
if (heroBackgroundRef.current) {
|
|
15
|
-
var scrollY_1 = window.scrollY;
|
|
16
|
-
var parallaxSpeed = 0.9;
|
|
17
|
-
heroBackgroundRef.current.style.transform = "translateY(".concat(scrollY_1 * parallaxSpeed, "px)");
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
window.addEventListener("scroll", handleScroll, { passive: true });
|
|
21
|
-
return function () { return window.removeEventListener("scroll", handleScroll); };
|
|
22
|
-
}, []);
|
|
23
|
-
useEffect(function () {
|
|
24
|
-
var video = videoRef.current;
|
|
25
|
-
if (!video)
|
|
26
|
-
return;
|
|
27
|
-
video.style.opacity = "0";
|
|
28
|
-
var handleCanPlay = function () {
|
|
29
|
-
setIsVideoLoading(false);
|
|
30
|
-
video.style.opacity = "1";
|
|
31
|
-
if (onVideoReady)
|
|
32
|
-
onVideoReady();
|
|
33
|
-
};
|
|
34
|
-
video.addEventListener("canplaythrough", handleCanPlay);
|
|
35
|
-
video.load();
|
|
36
|
-
return function () {
|
|
37
|
-
video.removeEventListener("canplaythrough", handleCanPlay);
|
|
38
|
-
};
|
|
39
|
-
}, [onVideoReady, videoSrc]);
|
|
40
|
-
return (<section className="relative h-screen w-full z-0 pt-12 sm:pt-12 overflow-hidden bg-[#1E2A44]">
|
|
41
|
-
<style jsx>{"\n .bg-gradient-overlay {\n position: absolute;\n inset: 0;\n background: linear-gradient(\n to bottom,\n var(--jubilee) / 0.6,\n var(--jubilee) / 0.4\n );\n }\n .video-fade-in {\n opacity: 0;\n transition: opacity 0.5s ease-in;\n }\n "}</style>
|
|
42
|
-
<div className="absolute inset-0 z-[-10] overflow-hidden" style={{ "--jubilee": "#F47C7C" }} ref={heroBackgroundRef}>
|
|
43
|
-
<video ref={videoRef} autoPlay loop muted playsInline preload="metadata" className="video-fade-in absolute inset-0 w-full h-screen object-cover filter brightness-75" aria-label={videoAriaLabel} poster={posterSrc || undefined}>
|
|
44
|
-
<source src={"".concat(videoSrc, "#t=0.1")} type="video/mp4"/>
|
|
45
|
-
Your browser does not support the video tag.
|
|
46
|
-
</video>
|
|
47
|
-
<div className="bg-gradient-overlay"/>
|
|
48
|
-
</div>
|
|
49
|
-
<div className="relative z-10 w-full px-4 sm:px-6 lg:px-8 py-16 sm:py-20 lg:py-24 text-center flex flex-col justify-center items-center h-screen">
|
|
50
|
-
<div className="relative flex items-center justify-center w-full max-w-full">
|
|
51
|
-
<h1 className="text-5xl sm:text-5xl md:text-6xl lg:text-7xl font-bold text-[#FF69B4] tracking-tight" style={{
|
|
52
|
-
textShadow: "\n 2px 2px 4px rgba(0, 0, 0, 0.5),\n -2px -2px 4px rgba(0, 0, 0, 0.5)\n ",
|
|
53
|
-
fontFamily: "'Inter', sans-serif",
|
|
54
|
-
}}>
|
|
55
|
-
{title}
|
|
56
|
-
</h1>
|
|
57
|
-
</div>
|
|
58
|
-
<h2 className="text-2xl sm:text-4xl md:text-5xl font-semibold text-white tracking-tight pt-4" style={{
|
|
59
|
-
textShadow: "\n 2px 2px 4px rgba(0, 0, 0, 0.5),\n -2px -2px 4px rgba(0, 0, 0, 0.5)\n ",
|
|
60
|
-
}}>
|
|
61
|
-
{subtitle}
|
|
62
|
-
</h2>
|
|
63
|
-
<HeroButton asChild size="hero" className="mt-8 text-white text-base sm:text-lg lg:text-xl">
|
|
64
|
-
<Link href={ctaLink}>{ctaText}</Link>
|
|
65
|
-
</HeroButton>
|
|
66
|
-
</div>
|
|
67
|
-
<div className="absolute bottom-4 left-4 z-10">
|
|
68
|
-
{/* <SocialIcons /> */}
|
|
69
|
-
</div>
|
|
70
|
-
</section>);
|
|
71
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { useState, useEffect } from 'react';
|
|
3
|
-
import { ScrollToTopButton, PhoneButton } from '@/components/other/button';
|
|
4
|
-
export default function IconBubble() {
|
|
5
|
-
var _a = useState(false), isPhoneHovered = _a[0], setIsPhoneHovered = _a[1];
|
|
6
|
-
var _b = useState(false), showScrollButton = _b[0], setShowScrollButton = _b[1];
|
|
7
|
-
useEffect(function () {
|
|
8
|
-
var handleScroll = function () {
|
|
9
|
-
if (window.scrollY > 200) {
|
|
10
|
-
setShowScrollButton(true);
|
|
11
|
-
}
|
|
12
|
-
else {
|
|
13
|
-
setShowScrollButton(false);
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
window.addEventListener('scroll', handleScroll);
|
|
17
|
-
return function () { return window.removeEventListener('scroll', handleScroll); };
|
|
18
|
-
}, []);
|
|
19
|
-
var handleScrollToTop = function () {
|
|
20
|
-
window.scrollTo({ top: 0, behavior: 'smooth' });
|
|
21
|
-
};
|
|
22
|
-
return (<div className="fixed bottom-4 right-4 z-50 flex flex-col space-y-4">
|
|
23
|
-
{/* Scroll to Top Button */}
|
|
24
|
-
{showScrollButton && (<ScrollToTopButton onClick={handleScrollToTop}/>)}
|
|
25
|
-
|
|
26
|
-
{/* Phone Button */}
|
|
27
|
-
<div className="relative flex items-center" onMouseEnter={function () { return setIsPhoneHovered(true); }} onMouseLeave={function () { return setIsPhoneHovered(false); }}>
|
|
28
|
-
<a href="tel:3154154043" aria-label="Call us">
|
|
29
|
-
<PhoneButton />
|
|
30
|
-
</a>
|
|
31
|
-
{isPhoneHovered && (<div className="absolute right-20 bg-gray-900 text-white px-4 py-2 rounded-md text-base font-medium shadow-lg whitespace-nowrap">
|
|
32
|
-
(315) 415-4043
|
|
33
|
-
</div>)}
|
|
34
|
-
</div>
|
|
35
|
-
</div>);
|
|
36
|
-
}
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { useRef, useState } from 'react';
|
|
3
|
-
import { motion } from 'framer-motion';
|
|
4
|
-
import { ChevronLeft, ChevronRight, X } from 'lucide-react';
|
|
5
|
-
export default function SampleCarousel() {
|
|
6
|
-
var _a = useState(false), isModalOpen = _a[0], setIsModalOpen = _a[1];
|
|
7
|
-
var _b = useState(null), selectedSample = _b[0], setSelectedSample = _b[1];
|
|
8
|
-
var openModal = function (sample) {
|
|
9
|
-
setSelectedSample(sample);
|
|
10
|
-
setIsModalOpen(true);
|
|
11
|
-
};
|
|
12
|
-
var closeModal = function () {
|
|
13
|
-
setIsModalOpen(false);
|
|
14
|
-
setSelectedSample(null);
|
|
15
|
-
};
|
|
16
|
-
// Carousel ref for scrolling
|
|
17
|
-
var carouselRef = useRef(null);
|
|
18
|
-
var scrollLeft = function () {
|
|
19
|
-
if (carouselRef.current) {
|
|
20
|
-
carouselRef.current.scrollBy({ left: -300, behavior: 'smooth' });
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
var scrollRight = function () {
|
|
24
|
-
if (carouselRef.current) {
|
|
25
|
-
carouselRef.current.scrollBy({ left: 300, behavior: 'smooth' });
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
// Carpet examples data
|
|
29
|
-
var carpetExamples = [
|
|
30
|
-
{
|
|
31
|
-
brand: 'Lorem',
|
|
32
|
-
type: 'Ipsum Dolor',
|
|
33
|
-
src: '/images/carpet/samples/new-samples/Dreamweaver_Astounding_Color_Fine Details-min.jpg',
|
|
34
|
-
alt: '',
|
|
35
|
-
description: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt.',
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
brand: 'Lorem',
|
|
39
|
-
type: 'Sit Amet',
|
|
40
|
-
src: '/images/carpet/samples/new-samples/Dreamweaver_Dublin II_Color_Dundrum-min.jpg',
|
|
41
|
-
alt: '',
|
|
42
|
-
description: 'Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium.',
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
brand: 'Lorem',
|
|
46
|
-
type: 'Consectetur',
|
|
47
|
-
src: '/images/carpet/samples/new-samples/Dreamweaver_Gold Standard_Color_Glitter-min.jpg',
|
|
48
|
-
alt: '',
|
|
49
|
-
description: 'At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis.',
|
|
50
|
-
}
|
|
51
|
-
];
|
|
52
|
-
return (<section id="carpet-examples" className="relative w-full py-16 sm:py-24 md:py-32 bg-gradient-to-b from-blue-100/20 to-teal-100/20">
|
|
53
|
-
<div className="w-full px-4 sm:px-6 md:px-12">
|
|
54
|
-
<motion.div className="text-center" initial={{ opacity: 0, y: 50 }} whileInView={{ opacity: 1, y: 0 }} viewport={{ once: true }} transition={{ duration: 0.8 }}>
|
|
55
|
-
<h2 className="text-4xl sm:text-5xl md:text-6xl font-extrabold mb-8 md:mb-12 text-blue-900 tracking-tight">
|
|
56
|
-
Lorem Ipsum Samples
|
|
57
|
-
</h2>
|
|
58
|
-
<div className="relative">
|
|
59
|
-
<div ref={carouselRef} className="flex overflow-x-auto snap-x snap-mandatory scrollbar-hide space-x-6 py-4" style={{ scrollbarWidth: 'none', msOverflowStyle: 'none' }}>
|
|
60
|
-
{carpetExamples.map(function (example, index) { return (<motion.div key={"".concat(example.brand, "-").concat(example.type, "-").concat(index)} className="flex-none w-64 md:w-80 snap-center relative group" initial={{ opacity: 0, scale: 0.8 }} whileInView={{ opacity: 1, scale: 1 }} viewport={{ once: true }} transition={{ duration: 0.5, delay: index * 0.1 }}>
|
|
61
|
-
<button onClick={function () { return openModal(example); }} className="w-full flex flex-col items-center justify-center rounded-3xl glassmorphic min-h-[300px] hover:scale-105 transition-transform duration-300 focus:outline-none focus:ring-2 focus:ring-teal-500">
|
|
62
|
-
{example.src ? (<div className="w-full h-48 md:h-64 aspect-square relative">
|
|
63
|
-
<img src={example.src} alt={example.alt || "".concat(example.brand, " ").concat(example.type, " sample")} className="w-full h-full object-cover rounded-2xl" title={"".concat(example.brand, " ").concat(example.type)} onError={function (e) {
|
|
64
|
-
e.currentTarget.style.display = 'none';
|
|
65
|
-
e.currentTarget.parentElement.innerHTML = "<div class=\"text-center h-48 md:h-64 flex flex-col items-center justify-center\"><span class=\"text-2xl md:text-3xl font-bold text-teal-600\">".concat(example.brand, "</span><span class=\"text-lg md:text-xl text-teal-600\">").concat(example.type, "</span></div>");
|
|
66
|
-
}}/>
|
|
67
|
-
<div className="absolute inset-0 flex flex-col items-center justify-center bg-teal-600/50 text-white opacity-0 group-hover:opacity-100 transition-opacity duration-300 rounded-2xl p-4 text-center">
|
|
68
|
-
<span className="text-lg md:text-xl font-bold">{example.brand}</span>
|
|
69
|
-
<span className="text-sm md:text-base font-medium">{example.type}</span>
|
|
70
|
-
</div>
|
|
71
|
-
</div>) : (<div className="text-center h-48 md:h-64 flex flex-col items-center justify-center">
|
|
72
|
-
<span className="text-2xl md:text-3xl font-bold text-teal-600">{example.brand}</span>
|
|
73
|
-
<span className="text-lg md:text-xl text-teal-600">{example.type}</span>
|
|
74
|
-
</div>)}
|
|
75
|
-
</button>
|
|
76
|
-
</motion.div>); })}
|
|
77
|
-
</div>
|
|
78
|
-
<button onClick={scrollLeft} className="absolute left-0 top-1/2 transform -translate-y-1/2 bg-teal-600/80 text-white p-3 rounded-full hover:bg-teal-500 transition-colors duration-300" aria-label="Scroll Left">
|
|
79
|
-
<ChevronLeft size={24}/>
|
|
80
|
-
</button>
|
|
81
|
-
<button onClick={scrollRight} className="absolute right-0 top-1/2 transform -translate-y-1/2 bg-teal-600/80 text-white p-3 rounded-full hover:bg-teal-500 transition-colors duration-300" aria-label="Scroll Right">
|
|
82
|
-
<ChevronRight size={24}/>
|
|
83
|
-
</button>
|
|
84
|
-
</div>
|
|
85
|
-
<p className="mt-6 text-sm md:text-base text-gray-600 italic max-w-5xl mx-auto">
|
|
86
|
-
*Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris.*
|
|
87
|
-
</p>
|
|
88
|
-
</motion.div>
|
|
89
|
-
</div>
|
|
90
|
-
|
|
91
|
-
{/* Modal */}
|
|
92
|
-
{isModalOpen && selectedSample && (<motion.div className="fixed inset-0 bg-black/60 flex items-center justify-center z-50 p-4 sm:p-6 md:p-8" onClick={closeModal} initial={{ opacity: 0 }} animate={{ opacity: 1 }} exit={{ opacity: 0 }} transition={{ duration: 0.3 }}>
|
|
93
|
-
<motion.div className="bg-white rounded-3xl shadow-2xl w-full max-w-[90vw] sm:max-w-3xl md:max-w-4xl lg:max-w-5xl max-h-[90vh] overflow-y-auto p-6 sm:p-8 relative glassmorphic" onClick={function (e) { return e.stopPropagation(); }} initial={{ scale: 0.8, opacity: 0 }} animate={{ scale: 1, opacity: 1 }} exit={{ scale: 0.8, opacity: 0 }} transition={{ duration: 0.3 }}>
|
|
94
|
-
<button onClick={closeModal} className="absolute top-4 right-4 text-gray-600 hover:text-teal-600 focus:outline-none focus:ring-2 focus:ring-teal-500" aria-label="Close Modal">
|
|
95
|
-
<X size={28}/>
|
|
96
|
-
</button>
|
|
97
|
-
<div className="flex flex-col md:flex-row gap-6 sm:gap-8">
|
|
98
|
-
{selectedSample.src ? (<img src={selectedSample.src} alt={selectedSample.alt || "".concat(selectedSample.brand, " ").concat(selectedSample.type, " sample")} className="w-full md:w-1/2 h-64 sm:h-80 md:h-96 lg:h-[32rem] object-cover rounded-2xl" onError={function (e) {
|
|
99
|
-
e.currentTarget.style.display = 'none';
|
|
100
|
-
e.currentTarget.parentElement.innerHTML = "<div class=\"w-full md:w-1/2 h-64 sm:h-80 md:h-96 lg:h-[32rem] flex flex-col items-center justify-center bg-gray-100 rounded-2xl\"><span class=\"text-xl sm:text-2xl md:text-3xl font-bold text-teal-600\">".concat(selectedSample.brand, "</span><span class=\"text-base sm:text-lg md:text-xl text-teal-600\">").concat(selectedSample.type, "</span></div>");
|
|
101
|
-
}}/>) : (<div className="w-full md:w-1/2 h-64 sm:h-80 md:h-96 lg:h-[32rem] flex flex-col items-center justify-center bg-gray-100 rounded-2xl">
|
|
102
|
-
<span className="text-xl sm:text-2xl md:text-3xl font-bold text-teal-600">{selectedSample.brand}</span>
|
|
103
|
-
<span className="text-base sm:text-lg md:text-xl text-teal-600">{selectedSample.type}</span>
|
|
104
|
-
</div>)}
|
|
105
|
-
<div className="flex-1 flex flex-col justify-center">
|
|
106
|
-
<h3 className="text-xl sm:text-2xl md:text-3xl lg:text-4xl font-bold text-teal-600 mb-2 sm:mb-3">{selectedSample.brand}</h3>
|
|
107
|
-
<p className="text-base sm:text-lg md:text-xl lg:text-2xl text-gray-800 mb-3 sm:mb-4">{selectedSample.type}</p>
|
|
108
|
-
<p className="text-sm sm:text-base md:text-lg lg:text-xl text-gray-600">{selectedSample.description}</p>
|
|
109
|
-
</div>
|
|
110
|
-
</div>
|
|
111
|
-
</motion.div>
|
|
112
|
-
</motion.div>)}
|
|
113
|
-
</section>);
|
|
114
|
-
}
|