From b444c9644a9ba59c0a1f421fb80e396a5d0b6b9b Mon Sep 17 00:00:00 2001 From: Kinfe123 Date: Fri, 31 May 2024 10:38:59 +0300 Subject: [PATCH 01/12] chore: readme fix --- README.md | 6 +++--- packages/cli/package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 7e1ed00e..65961bf3 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ ## FarmUI ![GitHub stars](https://img.shields.io/github/stars/Kinfe123/farm-ui) FarmUI is client first and animation rich ui component library built on top of radix and shadcn as well other primitive providers that we would like to cover. -## FarmUI ![GitHub stars](https://img.shields.io/github/stars/Kinfe123/farm-ui) - -FarmUI is client first and animation rich ui component library built on top of radix and shadcn as well other primitive providers that we would like to cover. +

+ landing-image +

## Why tho? diff --git a/packages/cli/package.json b/packages/cli/package.json index 73b3ac59..23b0e6ee 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@kinfe123/farm-ui", - "version": "0.0.2", + "version": "0.0.3", "description": "Add farmui components and building blocks", "main": "index.js", "publishConfig": { From 24f62287254bdd34ecc7b512915f2febef1e3374 Mon Sep 17 00:00:00 2001 From: Kinfe123 Date: Fri, 31 May 2024 12:18:11 +0300 Subject: [PATCH 02/12] featix: updating the reg and working with frontend --- .turbo/cookies/2.cookie | 0 .turbo/cookies/3.cookie | 0 .turbo/cookies/4.cookie | 0 apps/api/constants/components.json | 88 ++++++++++++------- apps/www/components/HeroAnimated.tsx | 8 +- apps/www/components/farmui/FUIForm.tsx | 3 +- .../{form-field-001.mdx => form-field-01.mdx} | 2 +- .../hero-section/here-section-101.mdx | 2 +- .../hero-section/hero-section-100.mdx | 2 +- apps/www/demo/hero-section-103.mdx | 2 +- .../previewsComponents/FUIHeroWithGrid.tsx | 4 - .../previewsComponents/FUIHeroWithSimple.tsx | 3 - apps/www/sections/sections.json | 2 +- apps/www/viewport/components/Viewport.tsx | 2 +- .../viewport/components/reactComponents.tsx | 22 +++-- 15 files changed, 79 insertions(+), 61 deletions(-) delete mode 100644 .turbo/cookies/2.cookie delete mode 100644 .turbo/cookies/3.cookie delete mode 100644 .turbo/cookies/4.cookie rename apps/www/componentsDB/form-field/{form-field-001.mdx => form-field-01.mdx} (99%) diff --git a/.turbo/cookies/2.cookie b/.turbo/cookies/2.cookie deleted file mode 100644 index e69de29b..00000000 diff --git a/.turbo/cookies/3.cookie b/.turbo/cookies/3.cookie deleted file mode 100644 index e69de29b..00000000 diff --git a/.turbo/cookies/4.cookie b/.turbo/cookies/4.cookie deleted file mode 100644 index e69de29b..00000000 diff --git a/apps/api/constants/components.json b/apps/api/constants/components.json index ded90629..ec77f2fe 100644 --- a/apps/api/constants/components.json +++ b/apps/api/constants/components.json @@ -1,8 +1,8 @@ [ { - "id": "farmui-1001", + "id": "farmui-form-01 ", "name": "FUIForms", - "dependencies": ["dotenv"], + "dependencies": ["lucide-react"], "files": [ { "root": { @@ -10,57 +10,81 @@ "contents": [ { "code_for": "react", - "content": " \n\"use client\";\n\nimport {\n CardTitle,\n CardDescription,\n CardHeader,\n CardContent,\n CardFooter,\n Card,\n} from \"@/components/ui/card\";\nimport { Label } from \"@/components/ui/label\";\nimport { Input } from \"@/components/ui/input\";\nimport { Textarea } from \"@/components/ui/textarea\";\nimport LinkItem from \"components/ui/LinkItem\";\nimport { ChevronRight, Loader2 } from \"lucide-react\";\nimport { useState, useTransition } from \"react\";\nimport { useToast } from \"@/components/ui/use-toast\";\nimport { saySomething } from \"actions/emailSubRelated\";\nimport {Button} from \"@/components/ui/button\";\ntype FormType = {\n firstName: string;\n lastName?: string;\n email: string;\n message: string;\n};\nexport default function FUIForm() {\n const [pending, startTransition] = useTransition();\n const { toast } = useToast()\n\n const [forms, setForms] = useState({\n firstName: \"\",\n lastName: \"\",\n email: \"\",\n message: \"\",\n });\n \n const handleChange = (e: any) => {\n setForms({ ...forms, [e.target.name]: e.target.value });\n };\n const onSubmit = (e:any) => {\n e.preventDefault();\n startTransition(async () => {\n saySomething({\n firstName: forms.firstName,\n lastName: forms.lastName,\n email: forms.email,\n message: forms.message,\n })\n .then((res) => {\n toast({\n position: \"bottom-left\",\n title: \"Message submitted\",\n description:\n \"You have successfully submitted your message. we will keep in touch with you with the speed of light :)\",\n });\n setForms({\n firstName:\"\",\n lastName:\"\",\n email: \"\",\n message: \"\"\n })\n })\n .catch((err) => {\n toast({\n position: \"bottom-left\",\n\n title: \"Something went wrong\",\n description:\n \"There is an error while submitting the form, Please try again later :(\",\n variant: \"destructive\",\n\n });\n });\n });\n };\n return (\n
\n
\n \n \n \n Fill out the form below and we'll get back to you as soon as\n possible.\n \n \n \n
\n
\n
\n
\n \n handleChange(e)}\n name=\"firstName\"\n placeholder=\"Enter your first name\"\n required\n />\n
\n
\n \n \n
\n
\n
\n \n \n
\n
\n \n \n
\n \n Submit\n {pending ? (\n \n ) : (\n \n )}\n \n \n
\n
\n
\n
\n );\n}\n\n\n" + "content": "\n\"use client\";\n\nimport {\n CardTitle,\n CardDescription,\n CardHeader,\n CardContent,\n CardFooter,\n Card,\n} from \"@/components/ui/card\";\nimport { Label } from \"@/components/ui/label\";\nimport { Input } from \"@/components/ui/input\";\nimport { Textarea } from \"@/components/ui/textarea\";\nimport { ChevronRight, Loader2 } from \"lucide-react\";\nimport { useState, useTransition } from \"react\";\nimport { useToast } from \"@/components/ui/use-toast\";\n// raplace it with your actions.\nimport { saySomething } from \"actions/emailSubRelated\";\nimport {Button} from \"@/components/ui/button\";\ntype FormType = {\n firstName: string;\n lastName?: string;\n email: string;\n message: string;\n};\nexport default function FUIForm() {\n const [pending, startTransition] = useTransition();\n const { toast } = useToast()\n\n const [forms, setForms] = useState({\n firstName: \"\",\n lastName: \"\",\n email: \"\",\n message: \"\",\n });\n \n const handleChange = (e: any) => {\n setForms({ ...forms, [e.target.name]: e.target.value });\n };\n const onSubmit = (e:any) => {\n e.preventDefault();\n startTransition(async () => {\n saySomething({\n firstName: forms.firstName,\n lastName: forms.lastName,\n email: forms.email,\n message: forms.message,\n })\n .then((res) => {\n toast({\n position: \"bottom-left\",\n title: \"Message submitted\",\n description:\n \"You have successfully submitted your message. we will keep in touch with you with the speed of light :)\",\n });\n setForms({\n firstName:\"\",\n lastName:\"\",\n email: \"\",\n message: \"\"\n })\n })\n .catch((err) => {\n toast({\n position: \"bottom-left\",\n\n title: \"Something went wrong\",\n description:\n \"There is an error while submitting the form, Please try again later :(\",\n variant: \"destructive\",\n\n });\n });\n });\n };\n return (\n
\n
\n \n \n \n Fill out the form below and we'll get back to you as soon as\n possible.\n \n \n \n
\n
\n
\n
\n \n handleChange(e)}\n name=\"firstName\"\n placeholder=\"Enter your first name\"\n required\n />\n
\n
\n \n \n
\n
\n
\n \n \n
\n
\n \n \n
\n \n Submit\n {pending ? (\n \n ) : (\n \n )}\n \n \n
\n
\n
\n
\n );\n}\n\n\n" } ] } - }, - { - "child": [ - { - "name": "FUISomething", - "contents": [ - { - "code_for": "react", - "content": " \n\"use client\";\n\nimport {\n CardTitle,\n CardDescription,\n CardHeader,\n CardContent,\n CardFooter,\n Card,\n} from \"@/components/ui/card\";\nimport { Label } from \"@/components/ui/label\";\nimport { Input } from \"@/components/ui/input\";\nimport { Textarea } from \"@/components/ui/textarea\";\nimport LinkItem from \"components/ui/LinkItem\";\nimport { ChevronRight, Loader2 } from \"lucide-react\";\nimport { useState, useTransition } from \"react\";\nimport { useToast } from \"@/components/ui/use-toast\";\nimport { saySomething } from \"actions/emailSubRelated\";\nimport {Button} from \"@/components/ui/button\";\ntype FormType = {\n firstName: string;\n lastName?: string;\n email: string;\n message: string;\n};\nexport default function FUIForm() {\n const [pending, startTransition] = useTransition();\n const { toast } = useToast()\n\n const [forms, setForms] = useState({\n firstName: \"\",\n lastName: \"\",\n email: \"\",\n message: \"\",\n });\n \n const handleChange = (e: any) => {\n setForms({ ...forms, [e.target.name]: e.target.value });\n };\n const onSubmit = (e:any) => {\n e.preventDefault();\n startTransition(async () => {\n saySomething({\n firstName: forms.firstName,\n lastName: forms.lastName,\n email: forms.email,\n message: forms.message,\n })\n .then((res) => {\n toast({\n position: \"bottom-left\",\n title: \"Message submitted\",\n description:\n \"You have successfully submitted your message. we will keep in touch with you with the speed of light :)\",\n });\n setForms({\n firstName:\"\",\n lastName:\"\",\n email: \"\",\n message: \"\"\n })\n })\n .catch((err) => {\n toast({\n position: \"bottom-left\",\n\n title: \"Something went wrong\",\n description:\n \"There is an error while submitting the form, Please try again later :(\",\n variant: \"destructive\",\n\n });\n });\n });\n };\n return (\n
\n
\n \n \n \n Fill out the form below and we'll get back to you as soon as\n possible.\n \n \n \n
\n
\n
\n
\n \n handleChange(e)}\n name=\"firstName\"\n placeholder=\"Enter your first name\"\n required\n />\n
\n
\n \n \n
\n
\n
\n \n \n
\n
\n \n \n
\n \n Submit\n {pending ? (\n \n ) : (\n \n )}\n \n \n
\n
\n
\n
\n );\n}\n\n\n" - } - ] - } - ] } ], "depends_on": ["bb87ffac-1579-4670-80be-7c1180404b4e"], "type": "ui" }, { - "id": "farmui-bb87ffac-1579-4670-80be-7c1180404b4e", - "name": "FUIFaqs", - "dependencies": ["@radix-ui/react-accordion", "@radix-ui/alert"], + "id": "farmui-hero-01", + "name": "FUIHeroLogoCompany", + "dependencies": ["@radix-ui/react-avatar", "@radix-ui/react-context-menu" , "@radix-ui/react-dialog" , "@radix-ui/react-select" , "@radix-ui/react-tabs" , "@radix-ui/react-dropdown-menu" , "lucide-react" ], "files": [ { "root": { - "name": "FUIForm", + "name": "FUIHeroLogoCompany", + "contents": [ + { + "code_for": "react", + "content": "\nimport React from \"react\";\nimport * as Avatar from \"@radix-ui/react-avatar\";\nimport * as ContextMenu from \"@radix-ui/react-context-menu\";\nimport * as Dialog from \"@radix-ui/react-dialog\";\nimport * as Select from \"@radix-ui/react-select\";\nimport * as Tabs from \"@radix-ui/react-tabs\";\nimport * as DropdownMenu from \"@radix-ui/react-dropdown-menu\";\nimport { ChevronRight } from \"lucide-react\";\nexport default function FUIHeroSectionWithLogoClouds() {\n const [state, setState] = React.useState(false);\n\n javascript:void(0) path with your path\n const navigation = [\n { title: \"Partners\", path: \"javascript:void(0)\" },\n { title: \"Customers\", path: \"javascript:void(0)\" },\n { title: \"Team\", path: \"javascript:void(0)\" },\n ];\n\n return (\n
\n \n\n
\n \n
\n
\n
\n

\n Over 200+ deals finished\n \n

\n

\n We help startups to grow and make money\n

\n

\n Sed ut perspiciatis unde omnis iste natus voluptatem accusantium\n doloremque laudantium, totam rem aperiam, eaque ipsa quae.\n

\n
\n \n \n
\n
\n
\n \n
\n
\n
\n

\n Trusted by the best companies\n

\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n
\n
\n
\n );\n}\n\n" + } + ] + } + } + + ] + }, + { + "id": "farmui-hero-00", + "name": "FUIHeroWithGrid", + "dependencies": ["framer-motion" , "lucide-react" ], + "files": [ + { + "root": { + "name": "FUIHeroWithGrid", "contents": [ { "code_for": "react", - "content": "\"use client\";\n\nimport {\n CardTitle,\n CardDescription,\n CardHeader,\n CardContent,\n CardFooter,\n Card,\n} from \"@/components/ui/card\";\nimport { Label } from \"@/components/ui/label\";\nimport { Input } from \"@/components/ui/input\";\nimport { Textarea } from \"@/components/ui/textarea\";\nimport LinkItem from \"components/ui/LinkItem\";\nimport { ChevronRight, Loader2 } from \"lucide-react\";\nimport { useState, useTransition } from \"react\";\nimport { useToast } from \"@/components/ui/use-toast\";\nimport { saySomething } from \"actions/emailSubRelated\";\nimport {Button} from \"@/components/ui/button\";\ntype FormType = {\n firstName: string;\n lastName?: string;\n email: string;\n message: string;\n};\nexport default function FUIForm() {\n const [pending, startTransition] = useTransition();\n const { toast } = useToast()\n\n const [forms, setForms] = useState({\n firstName: \"\",\n lastName: \"\",\n email: \"\",\n message: \"\",\n });\n \n const handleChange = (e: any) => {\n setForms({ ...forms, [e.target.name]: e.target.value });\n };\n const onSubmit = (e:any) => {\n e.preventDefault();\n startTransition(async () => {\n saySomething({\n firstName: forms.firstName,\n lastName: forms.lastName,\n email: forms.email,\n message: forms.message,\n })\n .then((res) => {\n toast({\n position: \"bottom-left\",\n title: \"Message submitted\",\n description:\n \"You have successfully submitted your message. we will keep in touch with you with the speed of light :)\",\n });\n setForms({\n firstName:\"\",\n lastName:\"\",\n email: \"\",\n message: \"\"\n })\n })\n .catch((err) => {\n toast({\n position: \"bottom-left\",\n\n title: \"Something went wrong\",\n description:\n \"There is an error while submitting the form, Please try again later :(\",\n variant: \"destructive\",\n\n });\n });\n });\n };\n return (\n
\n
\n \n \n \n Fill out the form below and we'll get back to you as soon as\n possible.\n \n \n \n
\n
\n
\n
\n \n handleChange(e)}\n name=\"firstName\"\n placeholder=\"Enter your first name\"\n required\n />\n
\n
\n \n \n
\n
\n
\n \n \n
\n
\n \n \n
\n \n Submit\n {pending ? (\n \n ) : (\n \n )}\n \n \n
\n
\n
\n
\n );\n}\n\n\n" + "content": "\nimport LinkItem from \"components/ui/LinkItem\";\nimport { IconGithub } from \"components/icons\";\nimport { ChevronRight } from \"lucide-react\";\nimport HeroAnimated from \"components/HeroAnimated\";\nconst FUIHeroWithGrid = () => {\n return (\n <>\n
\n
\n \n
\n \n
\n \n Browser Components\n \n \n \n \n Star on GitHub\n \n
\n \n
\n
\n {/*
\n \"Hero\n
*/}\n \n );\n};\nexport default FUIHeroWithGrid;\n\n" } ] } }, { - "child": [ - { - "name": "FUISomething", - "contents": [ - { - "code_for": "react", - "content": " \n\"use client\";\n\nimport {\n CardTitle,\n CardDescription,\n CardHeader,\n CardContent,\n CardFooter,\n Card,\n} from \"@/components/ui/card\";\nimport { Label } from \"@/components/ui/label\";\nimport { Input } from \"@/components/ui/input\";\nimport { Textarea } from \"@/components/ui/textarea\";\nimport LinkItem from \"components/ui/LinkItem\";\nimport { ChevronRight, Loader2 } from \"lucide-react\";\nimport { useState, useTransition } from \"react\";\nimport { useToast } from \"@/components/ui/use-toast\";\nimport { saySomething } from \"actions/emailSubRelated\";\nimport {Button} from \"@/components/ui/button\";\ntype FormType = {\n firstName: string;\n lastName?: string;\n email: string;\n message: string;\n};\nexport default function FUIForm() {\n const [pending, startTransition] = useTransition();\n const { toast } = useToast()\n\n const [forms, setForms] = useState({\n firstName: \"\",\n lastName: \"\",\n email: \"\",\n message: \"\",\n });\n \n const handleChange = (e: any) => {\n setForms({ ...forms, [e.target.name]: e.target.value });\n };\n const onSubmit = (e:any) => {\n e.preventDefault();\n startTransition(async () => {\n saySomething({\n firstName: forms.firstName,\n lastName: forms.lastName,\n email: forms.email,\n message: forms.message,\n })\n .then((res) => {\n toast({\n position: \"bottom-left\",\n title: \"Message submitted\",\n description:\n \"You have successfully submitted your message. we will keep in touch with you with the speed of light :)\",\n });\n setForms({\n firstName:\"\",\n lastName:\"\",\n email: \"\",\n message: \"\"\n })\n })\n .catch((err) => {\n toast({\n position: \"bottom-left\",\n\n title: \"Something went wrong\",\n description:\n \"There is an error while submitting the form, Please try again later :(\",\n variant: \"destructive\",\n\n });\n });\n });\n };\n return (\n
\n
\n \n \n \n Fill out the form below and we'll get back to you as soon as\n possible.\n \n \n \n
\n
\n
\n
\n \n handleChange(e)}\n name=\"firstName\"\n placeholder=\"Enter your first name\"\n required\n />\n
\n
\n \n \n
\n
\n
\n \n \n
\n
\n \n \n
\n \n Submit\n {pending ? (\n \n ) : (\n \n )}\n \n \n
\n
\n
\n
\n );\n}\n\n\n" - } - ] - } - ] + "child": { + "name": "HeroAnimated", + "contents": [ + { + "code_for": "react", + "content": "\n\"use client\";\nimport { motion } from \"framer-motion\";\nimport React from \"react\";\nimport { cn } from \"@/lib/utils\";\n\nconst FADE_UP_ANIMATION_VARIANTS = {\n hidden: { opacity: 0, y: 10 },\n show: { opacity: 1, y: 0, transition: { type: \"spring\" } },\n}\nconst HeroAnimated = ({\n children,\n header,\n headerClassName = \"\",\n descriptionClassName = \"\",\n childrenClassName = \"\",\n description,\n}: {\n children?: React.ReactNode;\n header: string;\n headerClassName?: string;\n description: string;\n descriptionClassName?: string;\n childrenClassName?: string;\n}) => {\n\n\n return (\n \n \n {header}\n \n \n {description}\n \n \n {children}\n \n \n );\n};\n\nexport default HeroAnimated;\n\n " + } + ] + } + } + + ] + }, + { + "id": "farmui-hero-03", + "name": "FUIHeroWithGridSimple", + "dependencies": ["@radix-ui/react-avatar", "@radix-ui/react-context-menu" , "@radix-ui/react-dialog" , "@radix-ui/react-select" , "@radix-ui/react-tabs" , "@radix-ui/react-dropdown-menu" , "lucide-react" ], + "files": [ + { + "root": { + "name": "FUIHeroWithGridSimple", + "contents": [ + { + "code_for": "react", + "content": "\nimport LinkItem from \"components/ui/LinkItem\";\nimport { IconGithub } from \"components/icons\";\nimport { ChevronRight } from \"lucide-react\";\nimport HeroAnimated from \"components/HeroAnimated\";\nimport BgGradient from \"components/ui/BgGradient\";\nconst FUIHeroWithGridSimple = () => {\n return (\n <>\n
\n
\n \n
\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {/*
*/}\n\n
\n

\n
\n              Build products for everyone\n              \n            
\n

\n \n
\n
\n                Move faster with beautiful responsive UI components and website\n                templates with modern design, 100% free and open-source.\n              
\n
\n \n
\n \n Browser Components\n \n \n \n \n Star on GitHub\n \n
\n
\n
\n \n );\n};\nexport default FUIHeroWithGridSimple;\n\n" + } + ] + } } + ] } ] diff --git a/apps/www/components/HeroAnimated.tsx b/apps/www/components/HeroAnimated.tsx index 55a244c6..dd84f017 100644 --- a/apps/www/components/HeroAnimated.tsx +++ b/apps/www/components/HeroAnimated.tsx @@ -1,10 +1,12 @@ "use client"; -import { useEffect } from "react"; import { motion } from "framer-motion"; import React from "react"; -import { FADE_UP_ANIMATION_VARIANTS } from "utils/animationConfig"; import { cn } from "@/lib/utils"; -type FadeUpAnimationProps = {}; + +const FADE_UP_ANIMATION_VARIANTS = { + hidden: { opacity: 0, y: 10 }, + show: { opacity: 1, y: 0, transition: { type: "spring" } }, +} const HeroAnimated = ({ children, header, diff --git a/apps/www/components/farmui/FUIForm.tsx b/apps/www/components/farmui/FUIForm.tsx index 0a185ef4..69c6a62b 100644 --- a/apps/www/components/farmui/FUIForm.tsx +++ b/apps/www/components/farmui/FUIForm.tsx @@ -12,10 +12,10 @@ import { import { Label } from "@/components/ui/label"; import { Input } from "@/components/ui/input"; import { Textarea } from "@/components/ui/textarea"; -import LinkItem from "components/ui/LinkItem"; import { ChevronRight, Loader2 } from "lucide-react"; import { useState, useTransition } from "react"; import { useToast } from "@/components/ui/use-toast"; +// raplace it with your actions. import { saySomething } from "actions/emailSubRelated"; import {Button} from "@/components/ui/button"; type FormType = { @@ -156,3 +156,4 @@ export default function FUIForm() { } + diff --git a/apps/www/componentsDB/form-field/form-field-001.mdx b/apps/www/componentsDB/form-field/form-field-01.mdx similarity index 99% rename from apps/www/componentsDB/form-field/form-field-001.mdx rename to apps/www/componentsDB/form-field/form-field-01.mdx index 85b7accd..c02d1488 100644 --- a/apps/www/componentsDB/form-field/form-field-001.mdx +++ b/apps/www/componentsDB/form-field/form-field-01.mdx @@ -5,7 +5,7 @@ paid: false isActive: true ltr: {"preview":"function App() {\n return (\n
\n \n
\n
\n https://\n
\n \n
\n
\n )\n}","react":{"jsxTail":[{"label":"App.jsx","code":"export default () => {\n return (\n
\n \n
\n
\n https://\n
\n \n
\n
\n )\n}"}],"jsxCss":[{"code":"export default () => {\n return (\n
\n \n
\n
\n https://\n
\n \n
\n
\n )\n}\n","label":"App.jsx"},{"label":"style.css","code":".website-url-input {\n max-width: 28rem;\n padding: 0px 1rem 0px 1rem;\n margin: 3rem auto 0px auto;\n}\n.website-url-input label {\n display: block;\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n color: #6b7280;\n}\n.website-url-input .input-container {\n display: flex;\n align-items: center;\n color: #9ca3af;\n border: solid 1px #e5e7eb;\n border-radius: 0.375rem;\n}\n.website-url-input .input-container .website-protocol {\n padding: 0.625rem 0.75rem 0.625rem 0.75rem;\n background-color: #f9fafb;\n border-top-left-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n border-right: solid 1px #e5e7eb;\n}\n.website-url-input .input-container .input {\n width: 100%;\n padding: 0.625rem;\n margin-left: 0.5rem;\n background-color: transparent;\n outline: none;\n}\n"}]},"vue":{"vueTail":[{"code":"","label":"App.vue"}],"vueCss":[{"label":"App.vue","code":""},{"code":" .input-container {\n max-width: 28rem;\n padding-left: 1rem;\n padding-right: 1rem;\n margin-left: auto;\n margin-right: auto;\n margin-top: 3rem;\n }\n .input-label {\n color: #6b7280;\n text-align: left;\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n display: block;\n }\n .input-parent {\n border-radius: 0.375rem;\n display: flex;\n align-items: center;\n color: #9ca3af;\n border-width: 1px;\n }\n .left-input {\n padding-top: 0.625rem;\n padding-bottom: 0.625rem;\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n border-right-width: 1px;\n border-top-left-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n background-color: #f9fafb;\n }\n .website-url {\n padding: 0.625rem;\n outline: 2px solid transparent;\n outline-offset: 2px;\n background-color: transparent;\n width: 100%;\n margin-left: 0.5rem;\n }","label":"style.css"}]},"html":{"htmlTail":[{"label":"index.html","code":"
\n \n
\n
\n https://\n
\n \n
\n
\n"}]}} slug: /inputs -id: "001" +id: "farmui-form-01" created_at: 1 --- diff --git a/apps/www/componentsDB/hero-section/here-section-101.mdx b/apps/www/componentsDB/hero-section/here-section-101.mdx index 90dfe88f..2e4794da 100644 --- a/apps/www/componentsDB/hero-section/here-section-101.mdx +++ b/apps/www/componentsDB/hero-section/here-section-101.mdx @@ -5,7 +5,7 @@ paid: false isActive: true ltr: {"preview":"function App() {\n return (\n
\n \n
\n
\n https://\n
\n \n
\n
\n )\n}","react":{"jsxTail":[{"label":"App.jsx","code":"export default () => {\n return (\n
\n \n
\n
\n https://\n
\n \n
\n
\n )\n}"}],"jsxCss":[{"code":"export default () => {\n return (\n
\n \n
\n
\n https://\n
\n \n
\n
\n )\n}\n","label":"App.jsx"},{"label":"style.css","code":".website-url-input {\n max-width: 28rem;\n padding: 0px 1rem 0px 1rem;\n margin: 3rem auto 0px auto;\n}\n.website-url-input label {\n display: block;\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n color: #6b7280;\n}\n.website-url-input .input-container {\n display: flex;\n align-items: center;\n color: #9ca3af;\n border: solid 1px #e5e7eb;\n border-radius: 0.375rem;\n}\n.website-url-input .input-container .website-protocol {\n padding: 0.625rem 0.75rem 0.625rem 0.75rem;\n background-color: #f9fafb;\n border-top-left-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n border-right: solid 1px #e5e7eb;\n}\n.website-url-input .input-container .input {\n width: 100%;\n padding: 0.625rem;\n margin-left: 0.5rem;\n background-color: transparent;\n outline: none;\n}\n"}]},"vue":{"vueTail":[{"code":"","label":"App.vue"}],"vueCss":[{"label":"App.vue","code":""},{"code":" .input-container {\n max-width: 28rem;\n padding-left: 1rem;\n padding-right: 1rem;\n margin-left: auto;\n margin-right: auto;\n margin-top: 3rem;\n }\n .input-label {\n color: #6b7280;\n text-align: left;\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n display: block;\n }\n .input-parent {\n border-radius: 0.375rem;\n display: flex;\n align-items: center;\n color: #9ca3af;\n border-width: 1px;\n }\n .left-input {\n padding-top: 0.625rem;\n padding-bottom: 0.625rem;\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n border-right-width: 1px;\n border-top-left-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n background-color: #f9fafb;\n }\n .website-url {\n padding: 0.625rem;\n outline: 2px solid transparent;\n outline-offset: 2px;\n background-color: transparent;\n width: 100%;\n margin-left: 0.5rem;\n }","label":"style.css"}]},"html":{"htmlTail":[{"label":"index.html","code":"
\n \n
\n
\n https://\n
\n \n
\n
\n"}]}} slug: /hero-section -id: "101" +id: "farmui-hero-01" created_at: 1 --- diff --git a/apps/www/componentsDB/hero-section/hero-section-100.mdx b/apps/www/componentsDB/hero-section/hero-section-100.mdx index 914da137..147d5008 100644 --- a/apps/www/componentsDB/hero-section/hero-section-100.mdx +++ b/apps/www/componentsDB/hero-section/hero-section-100.mdx @@ -5,7 +5,7 @@ paid: false isActive: true ltr: {"preview":"function App() {\n return (\n
\n \n
\n
\n https://\n
\n \n
\n
\n )\n}","react":{"jsxTail":[{"label":"App.jsx","code":"export default () => {\n return (\n
\n \n
\n
\n https://\n
\n \n
\n
\n )\n}"}],"jsxCss":[{"code":"export default () => {\n return (\n
\n \n
\n
\n https://\n
\n \n
\n
\n )\n}\n","label":"App.jsx"},{"label":"style.css","code":".website-url-input {\n max-width: 28rem;\n padding: 0px 1rem 0px 1rem;\n margin: 3rem auto 0px auto;\n}\n.website-url-input label {\n display: block;\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n color: #6b7280;\n}\n.website-url-input .input-container {\n display: flex;\n align-items: center;\n color: #9ca3af;\n border: solid 1px #e5e7eb;\n border-radius: 0.375rem;\n}\n.website-url-input .input-container .website-protocol {\n padding: 0.625rem 0.75rem 0.625rem 0.75rem;\n background-color: #f9fafb;\n border-top-left-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n border-right: solid 1px #e5e7eb;\n}\n.website-url-input .input-container .input {\n width: 100%;\n padding: 0.625rem;\n margin-left: 0.5rem;\n background-color: transparent;\n outline: none;\n}\n"}]},"vue":{"vueTail":[{"code":"","label":"App.vue"}],"vueCss":[{"label":"App.vue","code":""},{"code":" .input-container {\n max-width: 28rem;\n padding-left: 1rem;\n padding-right: 1rem;\n margin-left: auto;\n margin-right: auto;\n margin-top: 3rem;\n }\n .input-label {\n color: #6b7280;\n text-align: left;\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n display: block;\n }\n .input-parent {\n border-radius: 0.375rem;\n display: flex;\n align-items: center;\n color: #9ca3af;\n border-width: 1px;\n }\n .left-input {\n padding-top: 0.625rem;\n padding-bottom: 0.625rem;\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n border-right-width: 1px;\n border-top-left-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n background-color: #f9fafb;\n }\n .website-url {\n padding: 0.625rem;\n outline: 2px solid transparent;\n outline-offset: 2px;\n background-color: transparent;\n width: 100%;\n margin-left: 0.5rem;\n }","label":"style.css"}]},"html":{"htmlTail":[{"label":"index.html","code":"
\n \n
\n
\n https://\n
\n \n
\n
\n"}]}} slug: /hero-section -id: "100" +id: "farmui-hero-00" created_at: 1 --- diff --git a/apps/www/demo/hero-section-103.mdx b/apps/www/demo/hero-section-103.mdx index 60813c76..6f722206 100644 --- a/apps/www/demo/hero-section-103.mdx +++ b/apps/www/demo/hero-section-103.mdx @@ -5,7 +5,7 @@ paid: false isActive: true ltr: {"preview":"function App() {\n return (\n
\n \n
\n
\n https://\n
\n \n
\n
\n )\n}","react":{"jsxTail":[{"label":"App.jsx","code":"export default () => {\n return (\n
\n \n
\n
\n https://\n
\n \n
\n
\n )\n}"}],"jsxCss":[{"code":"export default () => {\n return (\n
\n \n
\n
\n https://\n
\n \n
\n
\n )\n}\n","label":"App.jsx"},{"label":"style.css","code":".website-url-input {\n max-width: 28rem;\n padding: 0px 1rem 0px 1rem;\n margin: 3rem auto 0px auto;\n}\n.website-url-input label {\n display: block;\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n color: #6b7280;\n}\n.website-url-input .input-container {\n display: flex;\n align-items: center;\n color: #9ca3af;\n border: solid 1px #e5e7eb;\n border-radius: 0.375rem;\n}\n.website-url-input .input-container .website-protocol {\n padding: 0.625rem 0.75rem 0.625rem 0.75rem;\n background-color: #f9fafb;\n border-top-left-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n border-right: solid 1px #e5e7eb;\n}\n.website-url-input .input-container .input {\n width: 100%;\n padding: 0.625rem;\n margin-left: 0.5rem;\n background-color: transparent;\n outline: none;\n}\n"}]},"vue":{"vueTail":[{"code":"","label":"App.vue"}],"vueCss":[{"label":"App.vue","code":""},{"code":" .input-container {\n max-width: 28rem;\n padding-left: 1rem;\n padding-right: 1rem;\n margin-left: auto;\n margin-right: auto;\n margin-top: 3rem;\n }\n .input-label {\n color: #6b7280;\n text-align: left;\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n display: block;\n }\n .input-parent {\n border-radius: 0.375rem;\n display: flex;\n align-items: center;\n color: #9ca3af;\n border-width: 1px;\n }\n .left-input {\n padding-top: 0.625rem;\n padding-bottom: 0.625rem;\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n border-right-width: 1px;\n border-top-left-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n background-color: #f9fafb;\n }\n .website-url {\n padding: 0.625rem;\n outline: 2px solid transparent;\n outline-offset: 2px;\n background-color: transparent;\n width: 100%;\n margin-left: 0.5rem;\n }","label":"style.css"}]},"html":{"htmlTail":[{"label":"index.html","code":"
\n \n
\n
\n https://\n
\n \n
\n
\n"}]}} slug: /hero-section -id: "104" +id: "farmui-hero-03" created_at: 1 --- diff --git a/apps/www/previewsComponents/FUIHeroWithGrid.tsx b/apps/www/previewsComponents/FUIHeroWithGrid.tsx index b6636d94..64af8929 100644 --- a/apps/www/previewsComponents/FUIHeroWithGrid.tsx +++ b/apps/www/previewsComponents/FUIHeroWithGrid.tsx @@ -1,8 +1,5 @@ -import Image from "next/image"; - import LinkItem from "components/ui/LinkItem"; import { IconGithub } from "components/icons"; -import bghero from "../../../public/img.png"; import { ChevronRight } from "lucide-react"; import HeroAnimated from "components/HeroAnimated"; const FUIHeroWithGrid = () => { @@ -19,7 +16,6 @@ const FUIHeroWithGrid = () => { height={1000} alt="back bg" /> -
{comp.component} {/*