From 12a4c42b4ae7dd62a9a4885acb4629bbbc63569d Mon Sep 17 00:00:00 2001 From: Val Neekman Date: Fri, 5 Sep 2025 15:03:54 -0400 Subject: [PATCH 1/3] interactive --- eslint.config.mjs | 2 + src/pages/focus.tsx | 6 +- src/pages/form-submit.tsx | 279 ------ src/pages/forms.tsx | 899 +++++++++++------- src/pages/hover.tsx | 8 +- src/pages/index.tsx | 44 +- .../{interactions.tsx => interactive.tsx} | 0 src/pages/navigation-search.tsx | 494 ++++++++++ src/pages/navigation.tsx | 221 ----- src/pages/scroll.tsx | 56 +- src/pages/search.tsx | 297 ------ 11 files changed, 1126 insertions(+), 1180 deletions(-) delete mode 100644 src/pages/form-submit.tsx rename src/pages/{interactions.tsx => interactive.tsx} (100%) create mode 100644 src/pages/navigation-search.tsx delete mode 100644 src/pages/navigation.tsx delete mode 100644 src/pages/search.tsx diff --git a/eslint.config.mjs b/eslint.config.mjs index ee614fb..7138d1a 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -137,6 +137,8 @@ export default [ }, { ignores: [ + ".next/**", + "out/**", "src-backend/src/bundle.js", "src-backend/src/bundle.js.map", "cli.mjs", diff --git a/src/pages/focus.tsx b/src/pages/focus.tsx index a27e7f2..703b26a 100644 --- a/src/pages/focus.tsx +++ b/src/pages/focus.tsx @@ -277,8 +277,8 @@ export default function Focus() { -
-

+

+

Tab navigation is trapped within this box:

Last element (Tab goes back to first) diff --git a/src/pages/form-submit.tsx b/src/pages/form-submit.tsx deleted file mode 100644 index 992f7d5..0000000 --- a/src/pages/form-submit.tsx +++ /dev/null @@ -1,279 +0,0 @@ -import React, { useState } from "react"; -import { motion } from "framer-motion"; -import { - CheckCircle, - Mail, - MessageSquare, - RotateCcw, - Send, - User, -} from "lucide-react"; -import { Layout } from "@/components/layout"; -import { Badge } from "@/components/ui/badge"; -import { Button } from "@/components/ui/button"; -import { - Card, - CardContent, - CardDescription, - CardHeader, - CardTitle, -} from "@/components/ui/card"; -import { Input } from "@/components/ui/input"; -import { Label } from "@/components/ui/label"; -import { Textarea } from "@/components/ui/textarea"; - -export default function FormSubmit() { - const [formData, setFormData] = useState({ - firstName: "", - lastName: "", - email: "", - message: "", - }); - const [submittedData, setSubmittedData] = useState( - null, - ); - const [submitCount, setSubmitCount] = useState(0); - - const handleSubmit = (e: React.FormEvent) => { - e.preventDefault(); - setSubmittedData({ ...formData }); - setSubmitCount((count) => count + 1); - }; - - const handleReset = () => { - setFormData({ - firstName: "", - lastName: "", - email: "", - message: "", - }); - setSubmittedData(null); - }; - - return ( - -
- -
-

- Form Submit Test -

-

- Test form submission and validation handling -

-
- -
- - - - - Contact Form - - - Fill out the form to test submission - - - -
-
-
- - - setFormData({ - ...formData, - firstName: e.target.value, - }) - } - placeholder="John" - /> -
-
- - - setFormData({ ...formData, lastName: e.target.value }) - } - placeholder="Doe" - /> -
-
- -
- - - setFormData({ ...formData, email: e.target.value }) - } - placeholder="john.doe@example.com" - /> -
- -
- -