From a14bdfb2819c042628abad92f08edee7cfacd460 Mon Sep 17 00:00:00 2001 From: rektdeckard Date: Sun, 12 Mar 2023 16:05:59 -0600 Subject: [PATCH] feat(app): continue on recipes --- src/components/Recipes/Recipes.tsx | 2 +- src/components/Recipes/items/Animation.tsx | 24 +++------ src/components/Recipes/items/Duocolor.tsx | 4 +- src/components/Recipes/items/Gradient.tsx | 60 ++++++++++++++++++++++ src/components/Recipes/items/index.ts | 4 +- 5 files changed, 74 insertions(+), 20 deletions(-) create mode 100644 src/components/Recipes/items/Gradient.tsx diff --git a/src/components/Recipes/Recipes.tsx b/src/components/Recipes/Recipes.tsx index 8d25e3b..e2ff902 100644 --- a/src/components/Recipes/Recipes.tsx +++ b/src/components/Recipes/Recipes.tsx @@ -14,7 +14,7 @@ const Recipes = () => {
- +
{items.map((itemProps) => ( diff --git a/src/components/Recipes/items/Animation.tsx b/src/components/Recipes/items/Animation.tsx index 8222a36..fa36f20 100644 --- a/src/components/Recipes/items/Animation.tsx +++ b/src/components/Recipes/items/Animation.tsx @@ -2,42 +2,34 @@ import { Cube } from "@phosphor-icons/react"; import { RecipeProps } from "../Recipe"; -const recipe: RecipeProps = { +const animation: RecipeProps = { title: "SVG Wizardry", url: "https://stackblitz.com/edit/react-ts-f7q7gs?file=App.tsx,style.css", Example() { return (
- + - + - + @@ -80,4 +72,4 @@ const recipe: RecipeProps = { }, }; -export default recipe; +export default animation; diff --git a/src/components/Recipes/items/Duocolor.tsx b/src/components/Recipes/items/Duocolor.tsx index 4e9c186..3dbd7cf 100644 --- a/src/components/Recipes/items/Duocolor.tsx +++ b/src/components/Recipes/items/Duocolor.tsx @@ -45,7 +45,7 @@ function createDuocolorStyle(id: string, color: string) { ); } -const recipe: RecipeProps = { +const duocolor: RecipeProps = { title: "Duocolor", url: "https://stackblitz.com/edit/react-ts-kvdzu1?file=App.tsx", Example() { @@ -60,4 +60,4 @@ const recipe: RecipeProps = { }, }; -export default recipe; +export default duocolor; diff --git a/src/components/Recipes/items/Gradient.tsx b/src/components/Recipes/items/Gradient.tsx new file mode 100644 index 0000000..6b3a57e --- /dev/null +++ b/src/components/Recipes/items/Gradient.tsx @@ -0,0 +1,60 @@ +import { Fire, Image, Peace, RainbowCloud } from "@phosphor-icons/react"; + +import { RecipeProps } from "../Recipe"; + +const gradient: RecipeProps = { + title: "Gradients", + url: "", + Example() { + return ( +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ ); + }, +}; + +export default gradient; diff --git a/src/components/Recipes/items/index.ts b/src/components/Recipes/items/index.ts index d4ecc34..d0986f4 100644 --- a/src/components/Recipes/items/index.ts +++ b/src/components/Recipes/items/index.ts @@ -1,6 +1,8 @@ import animation from "./Animation"; import duocolor from "./Duocolor"; +import gradient from "./Gradient"; + import { RecipeProps } from "../Recipe"; -const items: RecipeProps[] = [animation, duocolor, duocolor, animation]; +const items: RecipeProps[] = [duocolor, animation, gradient]; export default items;