@devvistatech/devvista-kit 0.0.9 → 0.0.10
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/dist/.next/types/app/api/about/route.js +52 -0
- package/dist/.next/types/app/api/blog/route.js +52 -0
- package/dist/.next/types/app/api/files/route.js +52 -0
- package/dist/.next/types/app/api/schedule/route.js +52 -0
- package/dist/.next/types/app/api/sync-user/route.js +52 -0
- package/dist/.next/types/app/layout.js +22 -0
- package/dist/.next/types/app/page.js +22 -0
- package/dist/app/about/page.jsx +258 -0
- package/dist/app/adRequest/page.jsx +531 -0
- package/dist/app/analytics/page.jsx +298 -0
- package/dist/app/api/about/route.js +285 -0
- package/dist/app/api/adRequest/route.js +440 -0
- package/dist/app/api/analytics/[reportType]/route.js +357 -0
- package/dist/app/api/bio/route.js +293 -0
- package/dist/app/api/blog/route.js +366 -0
- package/dist/app/api/chat/route.js +58 -0
- package/dist/app/api/contact/route.js +163 -0
- package/dist/app/api/contacts/route.js +234 -0
- package/dist/app/api/files/route.js +444 -0
- package/dist/app/api/gallery-data/route.js +719 -0
- package/dist/app/api/schedule/route.js +461 -0
- package/dist/app/api/sync-user/route.js +186 -0
- package/dist/app/api/trial-request/route.js +165 -0
- package/dist/app/blog/[id]/page.jsx +312 -0
- package/dist/app/blog/page.jsx +210 -0
- package/dist/app/constants/about.js +32 -0
- package/dist/app/constants/adRequest.js +113 -0
- package/dist/app/constants/contact.js +40 -0
- package/dist/app/constants/faq.js +36 -0
- package/dist/app/constants/gallery.js +42 -0
- package/dist/app/constants/page.js +69 -0
- package/dist/app/constants/schedule.js +71 -0
- package/dist/app/contact/page.jsx +119 -0
- package/dist/app/faq/page.jsx +97 -0
- package/dist/app/gallery/page.jsx +281 -0
- package/dist/app/layout.jsx +45 -0
- package/dist/app/not-found.jsx +14 -0
- package/dist/app/page.jsx +324 -0
- package/dist/app/schedule/page.jsx +500 -0
- package/dist/components/addOns/functional/BioEditor.jsx +187 -0
- package/dist/components/addOns/functional/CalendlyWidget.jsx +61 -0
- package/dist/components/addOns/functional/ClassList.jsx +158 -0
- package/dist/components/addOns/functional/ClassPopup.jsx +300 -0
- package/dist/components/addOns/functional/ContactForm.jsx +219 -0
- package/dist/components/addOns/functional/FileUploader.jsx +222 -0
- package/dist/components/addOns/functional/ImageDescCarousel.jsx +491 -0
- package/dist/components/addOns/functional/NewUserAnalytics.jsx +71 -0
- package/dist/components/addOns/functional/ScheduleCarousel.jsx +68 -0
- package/dist/components/addOns/functional/aboutSections/AboutSection.jsx +372 -0
- package/dist/components/addOns/functional/aboutSections/constants/aboutSection.js +65 -0
- package/dist/components/addOns/functional/blogSections/BlogDashboard.jsx +111 -0
- package/dist/components/addOns/functional/blogSections/BlogFormPopUp.jsx +465 -0
- package/dist/components/addOns/functional/blogSections/BlogList.jsx +170 -0
- package/dist/components/addOns/functional/blogSections/BlogSidebar.jsx +35 -0
- package/dist/components/addOns/functional/blogSections/constants/blogDashboard.js +28 -0
- package/dist/components/addOns/functional/blogSections/constants/blogFormPopUp.js +97 -0
- package/dist/components/addOns/functional/blogSections/constants/blogList.js +22 -0
- package/dist/components/addOns/functional/blogSections/constants/blogSidebar.js +15 -0
- package/dist/components/addOns/functional/contactsDashboard/ContactsDashboard.jsx +355 -0
- package/dist/components/addOns/functional/contactsDashboard/constants/contactsDashboard.js +70 -0
- package/dist/components/addOns/functional/galleries/GalleryComplex.jsx +605 -0
- package/dist/components/addOns/functional/galleries/GallerySimple.jsx +363 -0
- package/dist/components/addOns/functional/galleries/constants/galleryComplex.js +106 -0
- package/dist/components/addOns/functional/galleries/constants/gallerySimple.js +76 -0
- package/dist/components/addOns/functional/schedules/ScheduleGridOne.jsx +167 -0
- package/dist/components/addOns/functional/schedules/ScheduleGridTwo.jsx +100 -0
- package/dist/components/addOns/functional/schedules/ScheduleGridTwoBasic.jsx +97 -0
- package/dist/components/addOns/functional/schedules/SchedulerForm.jsx +188 -0
- package/dist/components/addOns/functional/schedules/constants/ScheduleGridTwo.js +40 -0
- package/dist/components/addOns/functional/schedules/constants/ScheduleGridTwoBasic.js +40 -0
- package/dist/components/addOns/functional/schedules/constants/SchedulerForm.js +65 -0
- package/dist/components/addOns/functional/schedules/constants/scheduleGridOne.js +54 -0
- package/dist/components/addOns/non-functional/AnnouncementBanner.jsx +24 -0
- package/dist/components/addOns/non-functional/FeaturesSection.jsx +38 -0
- package/dist/components/addOns/non-functional/HeroSection.jsx +71 -0
- package/dist/components/addOns/non-functional/Heros/HeroSection.jsx +71 -0
- package/dist/components/addOns/non-functional/IconBubble.jsx +36 -0
- package/dist/components/addOns/non-functional/SampleCarousel.jsx +114 -0
- package/dist/components/addOns/non-functional/Testimonials.jsx +177 -0
- package/dist/components/addOns/non-functional/ThreeSetGallery.jsx +40 -0
- package/dist/components/addOns/non-functional/aboutSections/AboutSection.jsx +35 -0
- package/dist/components/addOns/non-functional/aboutSections/constants/aboutSection.js +24 -0
- package/dist/components/addOns/non-functional/imageCarousels/ProductSlider.jsx +80 -0
- package/dist/components/addOns/non-functional/imageCarousels/ProgramCarousel.jsx +155 -0
- package/dist/components/addOns/non-functional/imageCarousels/constants/programCarousel.js +39 -0
- package/dist/components/addOns/non-functional/imageCarousels/constants/programSlider.js +36 -0
- package/dist/components/addOns/non-functional/spinner.jsx +13 -0
- package/dist/components/footers/footer.jsx +217 -0
- package/dist/components/navBars/navbar.jsx +159 -0
- package/dist/components/other/accordion.jsx +40 -0
- package/dist/components/other/admin-menu.jsx +34 -0
- package/dist/components/other/alert-dialog.jsx +64 -0
- package/dist/components/other/alert.jsx +41 -0
- package/dist/components/other/aspect-ratio.jsx +4 -0
- package/dist/components/other/avatar.jsx +31 -0
- package/dist/components/other/badge.jsx +32 -0
- package/dist/components/other/breadcrumb.jsx +57 -0
- package/dist/components/other/button.jsx +322 -0
- package/dist/components/other/calendar.jsx +43 -0
- package/dist/components/other/card.jsx +44 -0
- package/dist/components/other/carousel.jsx +140 -0
- package/dist/components/other/chart.jsx +182 -0
- package/dist/components/other/checkbox.jsx +26 -0
- package/dist/components/other/collapsible.jsx +6 -0
- package/dist/components/other/command.jsx +68 -0
- package/dist/components/other/context-menu.jsx +88 -0
- package/dist/components/other/dialog.jsx +60 -0
- package/dist/components/other/drawer.jsx +60 -0
- package/dist/components/other/dropdown-menu.jsx +90 -0
- package/dist/components/other/form.jsx +89 -0
- package/dist/components/other/hover-card.jsx +23 -0
- package/dist/components/other/input-otp.jsx +46 -0
- package/dist/components/other/input.jsx +19 -0
- package/dist/components/other/label.jsx +23 -0
- package/dist/components/other/login-popup.jsx +1 -0
- package/dist/components/other/menubar.jsx +96 -0
- package/dist/components/other/mobile-icon.jsx +11 -0
- package/dist/components/other/navigation-menu.jsx +62 -0
- package/dist/components/other/pagination.jsx +63 -0
- package/dist/components/other/popover.jsx +25 -0
- package/dist/components/other/progress.jsx +23 -0
- package/dist/components/other/radio-group.jsx +31 -0
- package/dist/components/other/resizable.jsx +29 -0
- package/dist/components/other/scroll-area.jsx +36 -0
- package/dist/components/other/select.jsx +83 -0
- package/dist/components/other/separator.jsx +21 -0
- package/dist/components/other/sheet.jsx +74 -0
- package/dist/components/other/signup-popup.jsx +1 -0
- package/dist/components/other/skeleton.jsx +17 -0
- package/dist/components/other/slider.jsx +26 -0
- package/dist/components/other/social-icons.jsx +15 -0
- package/dist/components/other/sonner.jsx +27 -0
- package/dist/components/other/switch.jsx +23 -0
- package/dist/components/other/table.jsx +56 -0
- package/dist/components/other/tabs.jsx +32 -0
- package/dist/components/other/textarea.jsx +19 -0
- package/dist/components/other/toast.jsx +58 -0
- package/dist/components/other/toaster.jsx +31 -0
- package/dist/components/other/toggle-group.jsx +41 -0
- package/dist/components/other/toggle.jsx +39 -0
- package/dist/components/other/tooltip.jsx +24 -0
- package/dist/components/theme-provider.jsx +18 -0
- package/dist/components/types.js +1 -0
- package/dist/hooks/use-toast.js +135 -0
- package/dist/lib/auth-context.jsx +144 -0
- package/dist/lib/constants/about.js +32 -0
- package/dist/lib/constants/adRequest.js +113 -0
- package/dist/lib/constants/contact.js +40 -0
- package/dist/lib/constants/faq.js +36 -0
- package/dist/lib/constants/gallery.js +42 -0
- package/dist/lib/constants/page.js +69 -0
- package/dist/lib/constants/schedule.js +71 -0
- package/dist/lib/google-analytics.jsx +148 -0
- package/dist/lib/utils.js +9 -0
- package/dist/lib/verify-user.js +142 -0
- package/dist/middleware.js +37 -0
- package/dist/tailwind.config.js +86 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- 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 -21
- 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
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import Link from "next/link";
|
|
3
|
+
import Image from "next/image";
|
|
4
|
+
import { Mail, Phone, MapPin, Facebook, X } from "lucide-react";
|
|
5
|
+
import { useState, useEffect } from "react";
|
|
6
|
+
import { SignIn, SignUp, SignedIn, SignedOut, SignOutButton as ClerkSignOutButton, useAuth } from "@clerk/nextjs";
|
|
7
|
+
import { useStrapiAuth } from "@/lib/auth-context";
|
|
8
|
+
import { motion, AnimatePresence } from "framer-motion";
|
|
9
|
+
import AdminMenu from "../other/admin-menu";
|
|
10
|
+
import { SignInButton, SignUpButton, SignOutButton, SettingsButton } from "../other/button";
|
|
11
|
+
var baseLinks = [
|
|
12
|
+
{ href: "/", label: "Home" },
|
|
13
|
+
{ href: "/about", label: "About" },
|
|
14
|
+
{ href: "/contact", label: "Contact" },
|
|
15
|
+
{ href: "/gallery", label: "Gallery" },
|
|
16
|
+
{ href: "/schedule", label: "Schedule & Rates" },
|
|
17
|
+
{ href: "/faq", label: "FAQ" },
|
|
18
|
+
];
|
|
19
|
+
export default function Footer() {
|
|
20
|
+
var isSignedIn = useAuth().isSignedIn;
|
|
21
|
+
var _a = useStrapiAuth(), user = _a.user, authLoading = _a.authLoading, checkSession = _a.checkSession;
|
|
22
|
+
var _b = useState(false), isLoginOpen = _b[0], setIsLoginOpen = _b[1];
|
|
23
|
+
var _c = useState(false), isSignupOpen = _c[0], setIsSignupOpen = _c[1];
|
|
24
|
+
var _d = useState(false), isAdminMenuOpen = _d[0], setIsAdminMenuOpen = _d[1];
|
|
25
|
+
var _e = useState(null), error = _e[0], setError = _e[1];
|
|
26
|
+
useEffect(function () {
|
|
27
|
+
if (isSignedIn) {
|
|
28
|
+
setIsLoginOpen(false);
|
|
29
|
+
setIsSignupOpen(false);
|
|
30
|
+
setIsAdminMenuOpen(false);
|
|
31
|
+
}
|
|
32
|
+
}, [isSignedIn]);
|
|
33
|
+
useEffect(function () {
|
|
34
|
+
if (isLoginOpen || isSignupOpen || isAdminMenuOpen) {
|
|
35
|
+
document.body.style.overflow = "hidden";
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
document.body.style.overflow = "auto";
|
|
39
|
+
}
|
|
40
|
+
return function () {
|
|
41
|
+
document.body.style.overflow = "auto";
|
|
42
|
+
};
|
|
43
|
+
}, [isLoginOpen, isSignupOpen, isAdminMenuOpen]);
|
|
44
|
+
useEffect(function () {
|
|
45
|
+
var event = new CustomEvent("modalStateChange", {
|
|
46
|
+
detail: { isOpen: isLoginOpen || isSignupOpen || isAdminMenuOpen },
|
|
47
|
+
});
|
|
48
|
+
window.dispatchEvent(event);
|
|
49
|
+
}, [isLoginOpen, isSignupOpen, isAdminMenuOpen]);
|
|
50
|
+
useEffect(function () {
|
|
51
|
+
if (!authLoading) {
|
|
52
|
+
if (isSignedIn && !user) {
|
|
53
|
+
checkSession().catch(function (err) {
|
|
54
|
+
console.error("Footer: Failed to sync user data", err);
|
|
55
|
+
setError("Failed to load user data. Please try logging out and back in.");
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
setError(null);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}, [isSignedIn, user, authLoading, checkSession]);
|
|
63
|
+
var isAdmin = isSignedIn && !!(user === null || user === void 0 ? void 0 : user.businessAdminId) && (user === null || user === void 0 ? void 0 : user.userRole) === "admin";
|
|
64
|
+
if (authLoading) {
|
|
65
|
+
return <div>Loading...</div>;
|
|
66
|
+
}
|
|
67
|
+
if (error) {
|
|
68
|
+
return <div className="text-red-500">Error: {error}</div>;
|
|
69
|
+
}
|
|
70
|
+
return (<footer className="w-full bg-[#2D2D2D] text-gray-300 border-t border-gray-700">
|
|
71
|
+
<style jsx>{"\n @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');\n\n :root {\n --caviar: #2D2D2D;\n --natural-white: #F7F7F7;\n --blue-500: #3B82F6;\n --blue-600: #2563EB;\n --blue-700: #1D4ED8;\n }\n\n * {\n font-family: 'Inter', sans-serif;\n }\n\n .glassmorphism {\n background: rgba(255, 255, 255, 0.08);\n backdrop-filter: blur(10px);\n -webkit-backdrop-filter: blur(10px);\n border: 1px solid rgba(255, 255, 255, 0.2);\n box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);\n }\n\n .modal-glassmorphism {\n background: rgba(255, 255, 255, 0.08);\n backdrop-filter: blur(10px);\n -webkit-backdrop-filter: blur(10px);\n border: 2px solid transparent;\n border-image: linear-gradient(45deg, var(--blue-500), var(--blue-600), var(--blue-700)) 1;\n box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);\n border-radius: 2rem;\n max-height: 90vh;\n overflow: hidden;\n }\n\n .gradient-text {\n background: linear-gradient(90deg, var(--blue-500), var(--blue-600));\n -webkit-background-clip: text;\n background-clip: text;\n color: transparent;\n }\n\n .contact-icon {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n padding: 0.75rem;\n border-radius: 0.5rem;\n background: rgba(255, 255, 255, 0.1);\n transition: color 0.2s ease, transform 0.2s ease;\n }\n\n .contact-icon:hover {\n color: var(--blue-500);\n transform: scale(1.1);\n }\n\n .cl-signIn-root,\n .cl-signUp-root {\n background: rgba(17, 24, 39, 0.95);\n border: 1px solid #374151;\n border-radius: 0.5rem;\n color: white;\n font-family: 'Inter', sans-serif;\n max-height: 80vh;\n overflow-y: auto;\n max-width: 90vw;\n box-sizing: border-box;\n }\n\n .cl-button {\n background: var(--blue-500);\n }\n\n .cl-button:hover {\n background: var(--blue-600);\n }\n\n .admin-menu-container {\n position: relative;\n }\n\n @media (max-width: 640px) {\n .cl-signIn-root,\n .cl-signUp-root {\n max-width: 95vw;\n max-height: 80vh;\n overflow-y: auto;\n padding: 0.5rem;\n }\n\n .cl-signIn-root .cl-main,\n .cl-signUp-root .cl-main {\n font-size: 0.9rem;\n }\n\n .cl-signIn-root .cl-headerTitle,\n .cl-signUp-root .cl-headerTitle {\n font-size: 1.25rem;\n }\n\n .cl-signIn-root .cl-formFieldInput,\n .cl-signUp-root .cl-formFieldInput {\n padding: 0.5rem;\n font-size: 0.9rem;\n background: #1f2937;\n color: #ffffff;\n border: 1px solid #4b5563;\n }\n\n .cl-button {\n padding: 0.5rem;\n font-size: 0.9rem;\n }\n\n .modal-glassmorphism {\n backdrop-filter: none;\n background: rgba(255, 255, 255, 0.2);\n padding: 1rem;\n max-height: 85vh;\n }\n }\n\n @supports not (backdrop-filter: blur(10px)) {\n .glassmorphism,\n .modal-glassmorphism {\n background: rgba(255, 255, 255, 0.2);\n }\n }\n "}</style>
|
|
72
|
+
|
|
73
|
+
<div className="w-full px-4 sm:px-6 lg:px-8 2xl:px-24 py-12 sm:py-16 glassmorphism">
|
|
74
|
+
<div className="grid grid-cols-1 2xl:grid-cols-3 gap-8 sm:gap-12">
|
|
75
|
+
<div className="flex flex-col items-center 2xl:items-start">
|
|
76
|
+
<Link href="/" className="flex items-center space-x-4 mb-6">
|
|
77
|
+
<Image src="/images/FitStop.png" alt="DevVista Kit Logo" width={64} height={64} className="h-20 w-20 rounded-full shadow-md transition-transform duration-300 ease-in-out transform hover:scale-105" quality={80} loading="lazy"/>
|
|
78
|
+
<div>
|
|
79
|
+
<span className="text-lg sm:text-xl 2xl:text-2xl font-extrabold text-blue-500 uppercase tracking-tight">
|
|
80
|
+
DevVista's
|
|
81
|
+
</span>
|
|
82
|
+
<br />
|
|
83
|
+
<span className="text-2xl sm:text-3xl 2xl:text-4xl font-extrabold text-blue-500 uppercase tracking-tight">
|
|
84
|
+
Kit
|
|
85
|
+
</span>
|
|
86
|
+
</div>
|
|
87
|
+
</Link>
|
|
88
|
+
<p className="text-sm sm:text-base 2xl:text-lg text-gray-400 text-center 2xl:text-left font-medium">
|
|
89
|
+
24/7 Fitness Access & Diverse Classes
|
|
90
|
+
</p>
|
|
91
|
+
</div>
|
|
92
|
+
|
|
93
|
+
<div className="flex flex-col items-center">
|
|
94
|
+
<h3 className="text-lg sm:text-xl 2xl:text-2xl font-bold gradient-text mb-6 uppercase tracking-tight">
|
|
95
|
+
Quick Links
|
|
96
|
+
</h3>
|
|
97
|
+
<ul className="grid grid-cols-2 gap-x-4 gap-y-3 text-center">
|
|
98
|
+
{baseLinks.map(function (link) { return (<li key={link.href}>
|
|
99
|
+
<Link href={link.href} className="text-sm sm:text-base 2xl:text-lg font-medium uppercase text-gray-300 hover:text-blue-400 transition-all">
|
|
100
|
+
{link.label}
|
|
101
|
+
</Link>
|
|
102
|
+
</li>); })}
|
|
103
|
+
</ul>
|
|
104
|
+
</div>
|
|
105
|
+
|
|
106
|
+
<div className="flex flex-col items-center 2xl:items-end">
|
|
107
|
+
<h3 className="text-lg sm:text-xl 2xl:text-2xl font-bold gradient-text mb-6 uppercase tracking-tight">
|
|
108
|
+
Reach Out
|
|
109
|
+
</h3>
|
|
110
|
+
<ul className="flex space-x-4 2xl:hidden">
|
|
111
|
+
<li>
|
|
112
|
+
<a href="tel:3154154043" className="contact-icon text-gray-300" aria-label="Call 315-415-4043">
|
|
113
|
+
<Phone className="h-6 w-6 sm:h-8 sm:w-8 text-blue-500"/>
|
|
114
|
+
</a>
|
|
115
|
+
</li>
|
|
116
|
+
<li>
|
|
117
|
+
<a href="mailto:devvistainfo@gmail.com" className="contact-icon text-gray-300" aria-label="Email devvistainfo@gmail.com">
|
|
118
|
+
<Mail className="h-6 w-6 sm:h-8 sm:w-8 text-blue-500"/>
|
|
119
|
+
</a>
|
|
120
|
+
</li>
|
|
121
|
+
<li>
|
|
122
|
+
<a href="https://www.google.com/maps/place/215+W+Manlius+St,+East+Syracuse,+NY+13057" className="contact-icon text-gray-300" aria-label="View 215 W. Manlius St, East Syracuse, NY 13057 on Google Maps" target="_blank" rel="noopener noreferrer">
|
|
123
|
+
<MapPin className="h-6 w-6 sm:h-8 sm:w-8 text-blue-500"/>
|
|
124
|
+
</a>
|
|
125
|
+
</li>
|
|
126
|
+
<li>
|
|
127
|
+
<a href="https://www.facebook.com/KathyCaiellosFitStop" className="contact-icon text-gray-300" aria-label="Visit our Facebook page" target="_blank" rel="noopener noreferrer">
|
|
128
|
+
<Facebook className="h-6 w-6 sm:h-8 sm:w-8 text-blue-500"/>
|
|
129
|
+
</a>
|
|
130
|
+
</li>
|
|
131
|
+
</ul>
|
|
132
|
+
<ul className="space-y-3 text-center 2xl:text-right hidden 2xl:block">
|
|
133
|
+
<li className="text-sm sm:text-base 2xl:text-lg text-gray-300 font-medium">
|
|
134
|
+
215 W. Manlius St, East Syracuse, NY 13057
|
|
135
|
+
</li>
|
|
136
|
+
<li className="flex items-center justify-center 2xl:justify-end space-x-3">
|
|
137
|
+
<Phone className="h-4 w-4 sm:h-5 sm:w-5 text-blue-500"/>
|
|
138
|
+
<a href="tel:3152145466" className="text-sm sm:text-base 2xl:text-lg text-gray-300 font-medium hover:text-blue-400 transition-all">
|
|
139
|
+
315-214-5466
|
|
140
|
+
</a>
|
|
141
|
+
</li>
|
|
142
|
+
<li className="flex items-center justify-center 2xl:justify-end space-x-3">
|
|
143
|
+
<Phone className="h-4 w-4 sm:h-5 sm:w-5 text-blue-500"/>
|
|
144
|
+
<a href="tel:3154154043" className="text-sm sm:text-base 2xl:text-lg text-gray-300 font-medium hover:text-blue-400 transition-all">
|
|
145
|
+
315-415-4043
|
|
146
|
+
</a>
|
|
147
|
+
</li>
|
|
148
|
+
<li className="flex items-center justify-center 2xl:justify-end space-x-3">
|
|
149
|
+
<Mail className="h-4 w-4 sm:h-5 sm:w-5 text-blue-500"/>
|
|
150
|
+
<a href="mailto:devvistainfo@gmail.com" className="text-sm sm:text-base 2xl:text-lg text-gray-300 font-medium hover:text-blue-400 transition-all">
|
|
151
|
+
devvistainfo@gmail.com
|
|
152
|
+
</a>
|
|
153
|
+
</li>
|
|
154
|
+
<li className="flex items-center justify-center 2xl:justify-end space-x-3">
|
|
155
|
+
<Facebook className="h-4 w-4 sm:h-5 sm:w-5 text-blue-500"/>
|
|
156
|
+
<a href="https://www.facebook.com/KathyCaiellosFitStop" className="text-sm sm:text-base 2xl:text-lg text-gray-300 font-medium hover:text-blue-400 transition-all" target="_blank" rel="noopener noreferrer">
|
|
157
|
+
Facebook
|
|
158
|
+
</a>
|
|
159
|
+
</li>
|
|
160
|
+
</ul>
|
|
161
|
+
</div>
|
|
162
|
+
</div>
|
|
163
|
+
|
|
164
|
+
{/* Authentication Buttons Moved Above the Bordered Div */}
|
|
165
|
+
<div className="flex justify-center 2xl:justify-start mt-8 space-x-4 admin-menu-container">
|
|
166
|
+
{!authLoading && (<SignedIn>
|
|
167
|
+
<div className="flex items-center space-x-2">
|
|
168
|
+
<ClerkSignOutButton redirectUrl="/">
|
|
169
|
+
<SignOutButton size="sm" aria-label="Logout">
|
|
170
|
+
Logout
|
|
171
|
+
</SignOutButton>
|
|
172
|
+
</ClerkSignOutButton>
|
|
173
|
+
{isAdmin && (<SettingsButton size="sm" onClick={function () { return setIsAdminMenuOpen(true); }} aria-label="Admin Menu">
|
|
174
|
+
</SettingsButton>)}
|
|
175
|
+
</div>
|
|
176
|
+
</SignedIn>)}
|
|
177
|
+
{!authLoading && (<SignedOut>
|
|
178
|
+
<SignInButton size="sm" onClick={function () { return setIsLoginOpen(true); }} aria-label="Login">
|
|
179
|
+
Login
|
|
180
|
+
</SignInButton>
|
|
181
|
+
<SignUpButton size="sm" onClick={function () { return setIsSignupOpen(true); }} aria-label="Sign Up">
|
|
182
|
+
Sign Up
|
|
183
|
+
</SignUpButton>
|
|
184
|
+
</SignedOut>)}
|
|
185
|
+
</div>
|
|
186
|
+
|
|
187
|
+
{/* Bordered Div Now Only Contains Copyright Text */}
|
|
188
|
+
<div className="mt-8 pt-6 border-t border-gray-700 relative">
|
|
189
|
+
<div className="flex justify-center items-center w-full mx-auto max-w-full">
|
|
190
|
+
<p className="text-sm sm:text-base 2xl:text-lg text-gray-400 font-medium text-center">
|
|
191
|
+
© {new Date().getFullYear()} DevVista Kit. All rights reserved.
|
|
192
|
+
</p>
|
|
193
|
+
</div>
|
|
194
|
+
</div>
|
|
195
|
+
</div>
|
|
196
|
+
|
|
197
|
+
<AnimatePresence>
|
|
198
|
+
{isLoginOpen && (<motion.div initial={{ opacity: 0 }} animate={{ opacity: 1 }} exit={{ opacity: 0 }} className="fixed inset-0 bg-black/90 flex items-center justify-center z-[10000] p-4 isolate" onClick={function () { return setIsLoginOpen(false); }}>
|
|
199
|
+
<motion.div initial={{ scale: 0.9, y: 20 }} animate={{ scale: 1, y: 0 }} exit={{ scale: 0.9, y: 20 }} transition={{ type: "spring", damping: 25, stiffness: 300 }} className="relative max-w-md w-full mx-4 modal-glassmorphism" onClick={function (e) { return e.stopPropagation(); }}>
|
|
200
|
+
<button onClick={function () { return setIsLoginOpen(false); }} className="absolute right-2 md:right-14 top-2 z-50 text-gray-600 hover:text-white hover:bg-gray-700/50 rounded-full p-3 transition-all duration-200 w-12 h-12 flex items-center justify-center" aria-label="Close login modal">
|
|
201
|
+
<X className="h-6 w-6"/>
|
|
202
|
+
</button>
|
|
203
|
+
<SignIn routing="hash"/>
|
|
204
|
+
</motion.div>
|
|
205
|
+
</motion.div>)}
|
|
206
|
+
{isSignupOpen && (<motion.div initial={{ opacity: 0 }} animate={{ opacity: 1 }} exit={{ opacity: 0 }} className="fixed inset-0 bg-black/90 flex items-center justify-center z-[10000] p-4 isolate" onClick={function () { return setIsSignupOpen(false); }}>
|
|
207
|
+
<motion.div initial={{ scale: 0.9, y: 20 }} animate={{ scale: 1, y: 0 }} exit={{ scale: 0.9, y: 20 }} transition={{ type: "spring", damping: 25, stiffness: 300 }} className="relative max-w-md w-full mx-4 modal-glassmorphism" onClick={function (e) { return e.stopPropagation(); }}>
|
|
208
|
+
<button onClick={function () { return setIsSignupOpen(false); }} className="absolute right-2 md:right-14 top-2 z-50 text-gray-600 hover:text-white hover:bg-gray-700/50 rounded-full p-3 transition-all duration-200 w-12 h-12 flex items-center justify-center" aria-label="Close signup modal">
|
|
209
|
+
<X className="h-6 w-6"/>
|
|
210
|
+
</button>
|
|
211
|
+
<SignUp routing="hash"/>
|
|
212
|
+
</motion.div>
|
|
213
|
+
</motion.div>)}
|
|
214
|
+
{isAdminMenuOpen && isAdmin && (<AdminMenu onClose={function () { return setIsAdminMenuOpen(false); }}/>)}
|
|
215
|
+
</AnimatePresence>
|
|
216
|
+
</footer>);
|
|
217
|
+
}
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
3
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
4
|
+
if (ar || !(i in from)) {
|
|
5
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
6
|
+
ar[i] = from[i];
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
10
|
+
};
|
|
11
|
+
import Link from "next/link";
|
|
12
|
+
import Image from "next/image";
|
|
13
|
+
import { cn } from "@/lib/utils";
|
|
14
|
+
import { usePathname } from "next/navigation";
|
|
15
|
+
import { useState, useRef, useEffect } from "react";
|
|
16
|
+
import { AnimatePresence, motion } from "framer-motion";
|
|
17
|
+
import { Facebook } from "lucide-react";
|
|
18
|
+
var Navbar = function () {
|
|
19
|
+
var pathname = usePathname();
|
|
20
|
+
var _a = useState(false), isOpen = _a[0], setIsOpen = _a[1];
|
|
21
|
+
var _b = useState(false), isModalOpen = _b[0], setIsModalOpen = _b[1];
|
|
22
|
+
var menuRef = useRef(null);
|
|
23
|
+
var leftLinks = [
|
|
24
|
+
{ href: "/", label: "Home" },
|
|
25
|
+
{ href: "/about", label: "About" },
|
|
26
|
+
{ href: "/contact", label: "Contact" },
|
|
27
|
+
];
|
|
28
|
+
var rightLinks = [
|
|
29
|
+
{ href: "/gallery", label: "Gallery" },
|
|
30
|
+
{ href: "/schedule", label: "Schedule & Rates" },
|
|
31
|
+
//testing
|
|
32
|
+
];
|
|
33
|
+
var mobileLinks = __spreadArray(__spreadArray(__spreadArray([], leftLinks, true), rightLinks, true), [
|
|
34
|
+
{ href: "/faq", label: "FAQ" },
|
|
35
|
+
], false);
|
|
36
|
+
var menuVariants = {
|
|
37
|
+
closed: { x: "100%" },
|
|
38
|
+
open: {
|
|
39
|
+
x: 0,
|
|
40
|
+
transition: { type: "spring", stiffness: 100, damping: 20 },
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
var hamburgerLine = "h-1 w-8 transition-all duration-300 ease-in-out";
|
|
44
|
+
useEffect(function () {
|
|
45
|
+
var handleModalStateChange = function (e) {
|
|
46
|
+
var customEvent = e;
|
|
47
|
+
setIsModalOpen(customEvent.detail.isOpen);
|
|
48
|
+
};
|
|
49
|
+
window.addEventListener("modalStateChange", handleModalStateChange);
|
|
50
|
+
return function () {
|
|
51
|
+
window.removeEventListener("modalStateChange", handleModalStateChange);
|
|
52
|
+
};
|
|
53
|
+
}, []);
|
|
54
|
+
useEffect(function () {
|
|
55
|
+
var handleClickOutside = function (event) {
|
|
56
|
+
if (menuRef.current &&
|
|
57
|
+
!menuRef.current.contains(event.target)) {
|
|
58
|
+
setIsOpen(false);
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
if (isOpen) {
|
|
62
|
+
document.addEventListener("mousedown", handleClickOutside);
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
document.removeEventListener("mousedown", handleClickOutside);
|
|
66
|
+
}
|
|
67
|
+
return function () {
|
|
68
|
+
document.removeEventListener("mousedown", handleClickOutside);
|
|
69
|
+
};
|
|
70
|
+
}, [isOpen]);
|
|
71
|
+
return (<nav className="fixed top-0 z-[1100] w-full bg-[#2D2D2D]/80 border-b-2 border-gray-800/50 shadow-lg py-6 transition-transform duration-300 ease-in-out" style={{
|
|
72
|
+
transform: isModalOpen && !isOpen ? "translateY(-100%)" : "translateY(0)",
|
|
73
|
+
}}>
|
|
74
|
+
<style jsx>{"\n @import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&display=swap\");\n\n :root {\n --jubilee: #F47C7C;\n --natural-white: #F7F7F7;\n --caviar: #2D2D2D;\n --storm-cloud: #4A636E;\n --exuberant-blue: #FF69B4;\n }\n\n * {\n font-family: \"Inter\", sans-serif;\n }\n\n .gradient-text {\n background: linear-gradient(90deg, var(--jubilee), --exuberant-blue));\n -webkit-background-clip: text;\n background-clip: text;\n color: transparent;\n }\n\n @media (max-width: 360px) {\n .mobile-menu-link {\n font-size: 1.25rem;\n }\n .mobile-menu-button {\n font-size: 1rem;\n padding: 0.5rem 1rem;\n }\n }\n "}</style>
|
|
75
|
+
|
|
76
|
+
<div className="w-full px-8 relative">
|
|
77
|
+
{/* Desktop View */}
|
|
78
|
+
<div className="hidden 2xl:flex h-28 items-center justify-center gap-8">
|
|
79
|
+
<div className="flex items-center space-x-4">
|
|
80
|
+
{leftLinks.map(function (link) { return (<Link key={link.href} href={link.href} className={cn("relative text-xl sm:text-2xl font-extrabold uppercase tracking-wider transition-all duration-300 px-4", pathname === link.href
|
|
81
|
+
? "text-white"
|
|
82
|
+
: "text-gray-300 hover:text-blue-400 hover:scale-105", "after:content-[''] after:absolute after:bottom-[-8px] after:left-0 after:h-1 after:bg-blue-500 after:transition-all after:duration-300", pathname === link.href
|
|
83
|
+
? "after:w-full"
|
|
84
|
+
: "after:w-0 hover:after:w-full")}>
|
|
85
|
+
{link.label}
|
|
86
|
+
</Link>); })}
|
|
87
|
+
</div>
|
|
88
|
+
|
|
89
|
+
<Link href="/" className="flex items-center relative group">
|
|
90
|
+
<Image src="/images/FitStop.png" alt="DevVista Kit Logo" width={192} height={192} className="h-40 w-40 rounded-full transition-transform group-hover:scale-110 shadow-2xl"/>
|
|
91
|
+
<div className="absolute -inset-4 bg-blue-500/30 rounded-full blur-2xl opacity-0 group-hover:opacity-100 transition-opacity"/>
|
|
92
|
+
</Link>
|
|
93
|
+
|
|
94
|
+
<div className="flex items-center space-x-4">
|
|
95
|
+
{rightLinks.map(function (link) { return (<Link key={link.href} href={link.href} className={cn("relative text-xl sm:text-2xl font-extrabold uppercase tracking-wider transition-all duration-300 px-4", pathname === link.href
|
|
96
|
+
? "text-white"
|
|
97
|
+
: "text-gray-300 hover:text-blue-400 hover:scale-105", "after:content-[''] after:absolute after:bottom-[-8px] after:left-0 after:h-1 after:bg-blue-500 after:transition-all after:duration-300", pathname === link.href
|
|
98
|
+
? "after:w-full"
|
|
99
|
+
: "after:w-0 hover:after:w-full")}>
|
|
100
|
+
{link.label}
|
|
101
|
+
</Link>); })}
|
|
102
|
+
</div>
|
|
103
|
+
</div>
|
|
104
|
+
|
|
105
|
+
{/* Mobile View */}
|
|
106
|
+
<div className="2xl:hidden flex h-20 items-center justify-between">
|
|
107
|
+
<Link href="/" className="flex items-center relative group">
|
|
108
|
+
<Image src="/images/FitStop.png" alt="DevVista Kit Logo" width={120} height={120} className="h-30 w-30 rounded-full transition-transform group-hover:scale-110 shadow-2xl"/>
|
|
109
|
+
<div className="absolute -inset-4 bg-gray-500/30 rounded-full blur-2xl opacity-0 group-hover:opacity-100 transition-opacity"/>
|
|
110
|
+
</Link>
|
|
111
|
+
|
|
112
|
+
<button className="flex flex-col space-y-2 p-4 relative z-[1200]" onClick={function () { return setIsOpen(!isOpen); }} aria-label="Toggle menu">
|
|
113
|
+
<span className={cn(hamburgerLine, isOpen ? "rotate-45 translate-y-3 bg-white" : "bg-blue-500")}/>
|
|
114
|
+
<span className={cn(hamburgerLine, isOpen ? "opacity-0" : "bg-blue-500")}/>
|
|
115
|
+
<span className={cn(hamburgerLine, isOpen ? "-rotate-45 -translate-y-3 bg-white" : "bg-blue-500")}/>
|
|
116
|
+
</button>
|
|
117
|
+
</div>
|
|
118
|
+
|
|
119
|
+
{/* Social Links */}
|
|
120
|
+
<div className="absolute bottom-4 right-8 flex items-center space-x-6 pr-16">
|
|
121
|
+
<a href="https://www.facebook.com/KathyCaiellosFitStop" className="flex items-center justify-center text-gray-300 hover:text-blue-400 transition-all text-lg sm:text-xl font-bold uppercase hover:scale-105" aria-label="Visit our Facebook page" role="link" target="_blank" rel="noopener noreferrer">
|
|
122
|
+
<Facebook className="ml-3 h-6 w-6 max-[1535px]:hidden"/>
|
|
123
|
+
</a>
|
|
124
|
+
<div className="hidden 2xl:block">
|
|
125
|
+
<Link href="/faq" className={cn("relative text-lg sm:text-xl font-bold uppercase tracking-wider transition-all", pathname === "/faq"
|
|
126
|
+
? "text-white"
|
|
127
|
+
: "text-gray-300 hover:text-blue-400 hover:scale-105", "after:content-[''] after:absolute after:bottom-[-8px] after:left-0 after:h-1 after:bg-blue-500 after:transition-all after:duration-300", pathname === "/faq"
|
|
128
|
+
? "after:w-full"
|
|
129
|
+
: "after:w-0 hover:after:w-full")}>
|
|
130
|
+
FAQ
|
|
131
|
+
</Link>
|
|
132
|
+
</div>
|
|
133
|
+
</div>
|
|
134
|
+
|
|
135
|
+
{/* Mobile Menu */}
|
|
136
|
+
<AnimatePresence>
|
|
137
|
+
{isOpen && (<motion.div ref={menuRef} variants={menuVariants} initial="closed" animate="open" exit="closed" className="fixed top-0 right-0 h-screen w-3/4 max-w-[280px] min-w-[200px] 2xl:hidden pt-24 px-4 shadow-2xl border-l-2 border-gray-700 bg-[#2D2D2D] z-[1200] overflow-y-auto">
|
|
138
|
+
<button className="absolute top-6 right-6 text-gray-300 hover:text-blue-400 transition-all z-[1210]" onClick={function () { return setIsOpen(false); }} aria-label="Close menu">
|
|
139
|
+
<svg className="w-8 h-8" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
140
|
+
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M6 18L18 6M6 6l12 12"/>
|
|
141
|
+
</svg>
|
|
142
|
+
</button>
|
|
143
|
+
|
|
144
|
+
<div className="flex flex-col space-y-6">
|
|
145
|
+
{mobileLinks.map(function (link) { return (<Link key={link.href} href={link.href} onClick={function () { return setIsOpen(false); }} className={cn("text-xl sm:text-2xl font-extrabold uppercase tracking-wider transition-all mobile-menu-link", pathname === link.href
|
|
146
|
+
? "text-white"
|
|
147
|
+
: "text-gray-300 hover:text-blue-400 hover:scale-105")}>
|
|
148
|
+
{link.label}
|
|
149
|
+
</Link>); })}
|
|
150
|
+
<Link href="https://www.facebook.com/KathyCaiellosFitStop" className="text-xl sm:text-2xl font-extrabold uppercase tracking-wider text-gray-300 hover:text-blue-400 transition-all hover:scale-105 mobile-menu-link" aria-label="Visit our Facebook page" role="link" target="_blank" rel="noopener noreferrer" onClick={function () { return setIsOpen(false); }}>
|
|
151
|
+
Facebook
|
|
152
|
+
</Link>
|
|
153
|
+
</div>
|
|
154
|
+
</motion.div>)}
|
|
155
|
+
</AnimatePresence>
|
|
156
|
+
</div>
|
|
157
|
+
</nav>);
|
|
158
|
+
};
|
|
159
|
+
export default Navbar;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
import * as React from 'react';
|
|
14
|
+
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
15
|
+
import { ChevronDown } from 'lucide-react';
|
|
16
|
+
import { cn } from '@/lib/utils';
|
|
17
|
+
var Accordion = AccordionPrimitive.Root;
|
|
18
|
+
var AccordionItem = React.forwardRef(function (_a, ref) {
|
|
19
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
20
|
+
return (<AccordionPrimitive.Item ref={ref} className={cn('border-b', className)} {...props}/>);
|
|
21
|
+
});
|
|
22
|
+
AccordionItem.displayName = 'AccordionItem';
|
|
23
|
+
var AccordionTrigger = React.forwardRef(function (_a, ref) {
|
|
24
|
+
var className = _a.className, children = _a.children, props = __rest(_a, ["className", "children"]);
|
|
25
|
+
return (<AccordionPrimitive.Header className="flex">
|
|
26
|
+
<AccordionPrimitive.Trigger ref={ref} className={cn('flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180', className)} {...props}>
|
|
27
|
+
{children}
|
|
28
|
+
<ChevronDown className="h-4 w-4 shrink-0 transition-transform duration-200"/>
|
|
29
|
+
</AccordionPrimitive.Trigger>
|
|
30
|
+
</AccordionPrimitive.Header>);
|
|
31
|
+
});
|
|
32
|
+
AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
|
|
33
|
+
var AccordionContent = React.forwardRef(function (_a, ref) {
|
|
34
|
+
var className = _a.className, children = _a.children, props = __rest(_a, ["className", "children"]);
|
|
35
|
+
return (<AccordionPrimitive.Content ref={ref} className="overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down" {...props}>
|
|
36
|
+
<div className={cn('pb-4 pt-0', className)}>{children}</div>
|
|
37
|
+
</AccordionPrimitive.Content>);
|
|
38
|
+
});
|
|
39
|
+
AccordionContent.displayName = AccordionPrimitive.Content.displayName;
|
|
40
|
+
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// src/components/AdminMenu.tsx
|
|
2
|
+
"use client";
|
|
3
|
+
import Link from "next/link";
|
|
4
|
+
import { motion } from "framer-motion";
|
|
5
|
+
import { X } from "lucide-react";
|
|
6
|
+
import { CloseButton } from "@/components/other/button";
|
|
7
|
+
var menuItems = [
|
|
8
|
+
{ href: "/analytics", label: "Analytics" },
|
|
9
|
+
{ href: "/blog", label: "Blog" },
|
|
10
|
+
{ href: "/adRequest", label: "Ad Requests" },
|
|
11
|
+
];
|
|
12
|
+
var modalVariants = {
|
|
13
|
+
hidden: { opacity: 0, y: "100vh" },
|
|
14
|
+
visible: { opacity: 1, y: 0, transition: { duration: 0.5, ease: [0.16, 1, 0.3, 1] } },
|
|
15
|
+
exit: { opacity: 0, y: "100vh", transition: { duration: 0.3, ease: "easeIn" } },
|
|
16
|
+
};
|
|
17
|
+
export default function AdminMenu(_a) {
|
|
18
|
+
var onClose = _a.onClose;
|
|
19
|
+
return (<motion.div variants={modalVariants} initial="hidden" animate="visible" exit="exit" className="fixed inset-0 bg-black/90 flex items-center justify-center z-[10000] p-4 isolate" onClick={onClose} role="dialog" aria-modal="true" aria-labelledby="admin-menu-title">
|
|
20
|
+
<div className="relative w-full max-w-2xl mx-4 p-8 md:p-12 rounded-2xl bg-blue-400/40 border border-white/20 shadow-2xl" onClick={function (e) { return e.stopPropagation(); }}>
|
|
21
|
+
<CloseButton onClick={onClose} aria-label="Close admin menu">
|
|
22
|
+
<X className="h-6 w-6 sm:h-8 sm:w-8"/>
|
|
23
|
+
</CloseButton>
|
|
24
|
+
<h3 id="admin-menu-title" className="text-2xl md:text-3xl font-bold text-white mb-6 text-center">
|
|
25
|
+
Admin Menu
|
|
26
|
+
</h3>
|
|
27
|
+
<div className="flex flex-col space-y-5">
|
|
28
|
+
{menuItems.map(function (item) { return (<Link key={item.href} href={item.href} className="block px-6 py-4 text-lg md:text-xl text-gray-200 hover:bg-gray-700 hover:text-blue-400 rounded-xl text-center transition-all" onClick={onClose}>
|
|
29
|
+
{item.label}
|
|
30
|
+
</Link>); })}
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
</motion.div>);
|
|
34
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
import * as React from 'react';
|
|
14
|
+
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
15
|
+
import { cn } from '@/lib/utils';
|
|
16
|
+
import { buttonVariants } from '@/components/other/button';
|
|
17
|
+
var AlertDialog = AlertDialogPrimitive.Root;
|
|
18
|
+
var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
|
|
19
|
+
var AlertDialogPortal = AlertDialogPrimitive.Portal;
|
|
20
|
+
var AlertDialogOverlay = React.forwardRef(function (_a, ref) {
|
|
21
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
22
|
+
return (<AlertDialogPrimitive.Overlay className={cn('fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0', className)} {...props} ref={ref}/>);
|
|
23
|
+
});
|
|
24
|
+
AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
|
|
25
|
+
var AlertDialogContent = React.forwardRef(function (_a, ref) {
|
|
26
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
27
|
+
return (<AlertDialogPortal>
|
|
28
|
+
<AlertDialogOverlay />
|
|
29
|
+
<AlertDialogPrimitive.Content ref={ref} className={cn('fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg', className)} {...props}/>
|
|
30
|
+
</AlertDialogPortal>);
|
|
31
|
+
});
|
|
32
|
+
AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
|
|
33
|
+
var AlertDialogHeader = function (_a) {
|
|
34
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
35
|
+
return (<div className={cn('flex flex-col space-y-2 text-center sm:text-left', className)} {...props}/>);
|
|
36
|
+
};
|
|
37
|
+
AlertDialogHeader.displayName = 'AlertDialogHeader';
|
|
38
|
+
var AlertDialogFooter = function (_a) {
|
|
39
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
40
|
+
return (<div className={cn('flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2', className)} {...props}/>);
|
|
41
|
+
};
|
|
42
|
+
AlertDialogFooter.displayName = 'AlertDialogFooter';
|
|
43
|
+
var AlertDialogTitle = React.forwardRef(function (_a, ref) {
|
|
44
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
45
|
+
return (<AlertDialogPrimitive.Title ref={ref} className={cn('text-lg font-semibold', className)} {...props}/>);
|
|
46
|
+
});
|
|
47
|
+
AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
|
|
48
|
+
var AlertDialogDescription = React.forwardRef(function (_a, ref) {
|
|
49
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
50
|
+
return (<AlertDialogPrimitive.Description ref={ref} className={cn('text-sm text-muted-foreground', className)} {...props}/>);
|
|
51
|
+
});
|
|
52
|
+
AlertDialogDescription.displayName =
|
|
53
|
+
AlertDialogPrimitive.Description.displayName;
|
|
54
|
+
var AlertDialogAction = React.forwardRef(function (_a, ref) {
|
|
55
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
56
|
+
return (<AlertDialogPrimitive.Action ref={ref} className={cn(buttonVariants(), className)} {...props}/>);
|
|
57
|
+
});
|
|
58
|
+
AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
|
|
59
|
+
var AlertDialogCancel = React.forwardRef(function (_a, ref) {
|
|
60
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
61
|
+
return (<AlertDialogPrimitive.Cancel ref={ref} className={cn(buttonVariants({ variant: 'outline' }), 'mt-2 sm:mt-0', className)} {...props}/>);
|
|
62
|
+
});
|
|
63
|
+
AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
|
|
64
|
+
export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import * as React from 'react';
|
|
13
|
+
import { cva } from 'class-variance-authority';
|
|
14
|
+
import { cn } from '@/lib/utils';
|
|
15
|
+
var alertVariants = cva('relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground', {
|
|
16
|
+
variants: {
|
|
17
|
+
variant: {
|
|
18
|
+
default: 'bg-background text-foreground',
|
|
19
|
+
destructive: 'border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive',
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
defaultVariants: {
|
|
23
|
+
variant: 'default',
|
|
24
|
+
},
|
|
25
|
+
});
|
|
26
|
+
var Alert = React.forwardRef(function (_a, ref) {
|
|
27
|
+
var className = _a.className, variant = _a.variant, props = __rest(_a, ["className", "variant"]);
|
|
28
|
+
return (<div ref={ref} role="alert" className={cn(alertVariants({ variant: variant }), className)} {...props}/>);
|
|
29
|
+
});
|
|
30
|
+
Alert.displayName = 'Alert';
|
|
31
|
+
var AlertTitle = React.forwardRef(function (_a, ref) {
|
|
32
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
33
|
+
return (<h5 ref={ref} className={cn('mb-1 font-medium leading-none tracking-tight', className)} {...props}/>);
|
|
34
|
+
});
|
|
35
|
+
AlertTitle.displayName = 'AlertTitle';
|
|
36
|
+
var AlertDescription = React.forwardRef(function (_a, ref) {
|
|
37
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
38
|
+
return (<div ref={ref} className={cn('text-sm [&_p]:leading-relaxed', className)} {...props}/>);
|
|
39
|
+
});
|
|
40
|
+
AlertDescription.displayName = 'AlertDescription';
|
|
41
|
+
export { Alert, AlertTitle, AlertDescription };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
import * as React from 'react';
|
|
14
|
+
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
15
|
+
import { cn } from '@/lib/utils';
|
|
16
|
+
var Avatar = React.forwardRef(function (_a, ref) {
|
|
17
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
18
|
+
return (<AvatarPrimitive.Root ref={ref} className={cn('relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full', className)} {...props}/>);
|
|
19
|
+
});
|
|
20
|
+
Avatar.displayName = AvatarPrimitive.Root.displayName;
|
|
21
|
+
var AvatarImage = React.forwardRef(function (_a, ref) {
|
|
22
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
23
|
+
return (<AvatarPrimitive.Image ref={ref} className={cn('aspect-square h-full w-full', className)} {...props}/>);
|
|
24
|
+
});
|
|
25
|
+
AvatarImage.displayName = AvatarPrimitive.Image.displayName;
|
|
26
|
+
var AvatarFallback = React.forwardRef(function (_a, ref) {
|
|
27
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
28
|
+
return (<AvatarPrimitive.Fallback ref={ref} className={cn('flex h-full w-full items-center justify-center rounded-full bg-muted', className)} {...props}/>);
|
|
29
|
+
});
|
|
30
|
+
AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
|
|
31
|
+
export { Avatar, AvatarImage, AvatarFallback };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import * as React from 'react';
|
|
13
|
+
import { cva } from 'class-variance-authority';
|
|
14
|
+
import { cn } from '@/lib/utils';
|
|
15
|
+
var badgeVariants = cva('inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2', {
|
|
16
|
+
variants: {
|
|
17
|
+
variant: {
|
|
18
|
+
default: 'border-transparent bg-primary text-primary-foreground hover:bg-primary/80',
|
|
19
|
+
secondary: 'border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80',
|
|
20
|
+
destructive: 'border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80',
|
|
21
|
+
outline: 'text-foreground',
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
defaultVariants: {
|
|
25
|
+
variant: 'default',
|
|
26
|
+
},
|
|
27
|
+
});
|
|
28
|
+
function Badge(_a) {
|
|
29
|
+
var className = _a.className, variant = _a.variant, props = __rest(_a, ["className", "variant"]);
|
|
30
|
+
return (<div className={cn(badgeVariants({ variant: variant }), className)} {...props}/>);
|
|
31
|
+
}
|
|
32
|
+
export { Badge, badgeVariants };
|