From d593b79de20e690ef44dba1abc7aadd580708325 Mon Sep 17 00:00:00 2001 From: Lucas Leite <70826073+leitecsleite@users.noreply.github.com> Date: Sat, 23 Mar 2024 18:10:46 -0300 Subject: [PATCH 01/10] feat:task/cases - created card cases --- components/cases/Cases.tsx | 208 ++++++++++++++++++++ components/header/Menu.tsx | 33 ++-- components/header/NavItem.tsx | 13 +- components/ui/Icon.tsx | 3 +- components/ui/LinkWithOptionArrow.tsx | 108 ++++++++-- deno.json | 5 +- manifest.gen.ts | 6 +- sections/Content/IconText.tsx | 7 +- sections/Content/Mosaic.tsx | 57 ++++-- sections/Content/TextIconAndImage.tsx | 89 ++++++--- sections/Content/TextWithImage.tsx | 15 +- sections/Content/TextWithImageAnimation.tsx | 48 +++-- sections/Content/TextWithImageCustom.tsx | 39 ++-- sections/cases/cases.tsx | 1 + static/sprites.svg | 4 + tailwind.css | 7 +- 16 files changed, 530 insertions(+), 113 deletions(-) create mode 100644 components/cases/Cases.tsx create mode 100644 sections/cases/cases.tsx diff --git a/components/cases/Cases.tsx b/components/cases/Cases.tsx new file mode 100644 index 0000000..8dcc49f --- /dev/null +++ b/components/cases/Cases.tsx @@ -0,0 +1,208 @@ +import type { ImageWidget } from "apps/admin/widgets.ts"; +import Image from "apps/website/components/Image.tsx"; +import Icon from "$store/components/ui/Icon.tsx"; + +export interface Technology { + /** @title Icon services desktop */ + IconDesktop: ImageWidget; + /** @title Icon services mobile */ + IconMobile: ImageWidget; + + services: string; +} + +export interface CardCases { + /** @title Image card desktop */ + imgCardDesktop: ImageWidget; + + alt: string; + + /** @description widht ex: 580 */ + widthDesktop?: number; + /** @description height ex: 430 */ + heightDesktop?: number; + + /** @title Image card mobile */ + + imgCardMobile: ImageWidget; + + /** @description widht ex: 350 */ + widthMobile?: number; + /** @description height ex: 342 */ + heightMobile?: number; + + /** @title Logo store desktop */ + imgIconStoreDesktop: ImageWidget; + + /**@title Logo store mobile */ + imgIconStoreMobile: ImageWidget; + + link: string; + buttonName: string; + technology: Technology[]; +} + +export interface Props { + /** @title Icon do background bottom */ + IconBackgroundBottom?: ImageWidget; + + /** */ + + iconBackgroundTop?: ImageWidget; + + iconBackgroundLeftBottom?: ImageWidget; + + /** @description Adicione os Cases */ + cardCases?: CardCases[]; +} + +export default function Cases(props: Props) { + if (!props.cardCases) { + return null; + } + + return ( +
{card.about}
+{card.about}
++ {card.about} +
+ {comment && comment} +
++ {name} +
++ {profession} +
+