diff --git a/public/home/solutions.png b/public/home/solutions.png new file mode 100644 index 0000000..30c5e32 Binary files /dev/null and b/public/home/solutions.png differ diff --git a/src/components/Hero/index.tsx b/src/components/Hero/index.tsx new file mode 100644 index 0000000..b02a527 --- /dev/null +++ b/src/components/Hero/index.tsx @@ -0,0 +1,73 @@ + +// components/Hero/index.tsx +import React from 'react'; + +interface HeroProps { + title: string; + highlightedText: string; + subtitle: string; + description: string; + emphasizedText: string; + buttonText: string; + buttonIcon?: React.ReactNode; + imageSrc: string; + imageAlt: string; +} + +const Hero: React.FC = ({ + title, + highlightedText, + subtitle, + description, + emphasizedText, + buttonText, + buttonIcon = "✨", + imageSrc, + imageAlt +}) => { + return ( +
+
+
+

+ {title} +
+ + {highlightedText} + + + {subtitle} + +

+ +

+ {description} + {emphasizedText} +

+ + +
+ +
+ {imageAlt} +
+
+ {imageAlt} +
+
+
+ ); +}; + +export default Hero; \ No newline at end of file diff --git a/src/pages/Home/Solutions.tsx b/src/pages/Home/Solutions.tsx new file mode 100644 index 0000000..636ea02 --- /dev/null +++ b/src/pages/Home/Solutions.tsx @@ -0,0 +1,72 @@ +// Home/Solutions.tsx +import React from 'react'; + +interface SolutionsProps { + title: string; + subtitle: string; + description: string; + linkText: string; + solutionsImageSrc: string; + solutionsImageAlt?: string; +} + +const Solutions: React.FC = ({ + title, + subtitle, + description, + linkText, + solutionsImageSrc, + solutionsImageAlt = "Equipe trabalhando", +}) => { + return ( +
+
+ {/* Imagem */} +
+
+ {solutionsImageAlt} +
+
+ + {/* Conteúdo */} +
+

+ {title} +
+ {subtitle} +

+ +

+ {description} +

+ + + {linkText} + + + + +
+
+
+ ); +}; + +export default Solutions; \ No newline at end of file diff --git a/src/pages/Home/index.tsx b/src/pages/Home/index.tsx index a793672..ede9aeb 100644 --- a/src/pages/Home/index.tsx +++ b/src/pages/Home/index.tsx @@ -1,49 +1,32 @@ +// pages/Home/index.tsx import React from 'react'; +import Hero from '../../components/Hero'; +import Solutions from './Solutions'; -const Home = () => { +const Home: React.FC = () => { const heroImage = new URL('/public/home/hero.png', import.meta.url).href; - return ( -
-
-
-

- Explore nossa -
- - "IA do empreendedor" - - - e avalie o seu negócio - -

- -

- Descubra como valorizar sua empresa e encantar seus clientes de forma rápida e - GRATUITA. -

- - -
+ const solutionsImage = new URL('/public/home/solutions.png', import.meta.url).href; -
- Empreendedor -
-
- Empreendedor -
-
-
+ return ( + <> + + + ); };