generated from govinda777/twa-govinda-systems-ecomm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b2be4a9
commit e338b3d
Showing
4 changed files
with
170 additions
and
42 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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<HeroProps> = ({ | ||
title, | ||
highlightedText, | ||
subtitle, | ||
description, | ||
emphasizedText, | ||
buttonText, | ||
buttonIcon = "✨", | ||
imageSrc, | ||
imageAlt | ||
}) => { | ||
return ( | ||
<div className="w-full"> | ||
<div className="max-w-none px-4 md:pr-0 md:pl-[calc((100%-74rem)/2)] grid grid-cols-1 md:grid-cols-2 gap-8 py-24 md:py-16 items-center relative overflow-hidden"> | ||
<div className="flex flex-col max-w-2xl ml-auto"> | ||
<h1 className="text-white text-6xl font-normal leading-tight mb-4"> | ||
{title} | ||
<br /> | ||
<span className="text-white text-[50px] font-bold block my-2"> | ||
{highlightedText} | ||
</span> | ||
<span className="text-white text-7xl"> | ||
{subtitle} | ||
</span> | ||
</h1> | ||
|
||
<p className="text-white text-2xl mb-12 max-w-2xl"> | ||
{description} | ||
<span className="font-bold">{emphasizedText}</span> | ||
</p> | ||
|
||
<button className="bg-black text-white text-2xl font-medium rounded-full px-12 py-4 w-fit flex items-center gap-2 hover:shadow-lg transition-all"> | ||
{buttonText} | ||
<span className="inline-block ml-1">{buttonIcon}</span> | ||
</button> | ||
</div> | ||
|
||
<div className="absolute right-0 bottom-0 hidden md:block"> | ||
<img | ||
src={imageSrc} | ||
alt={imageAlt} | ||
className="w-[500px] h-auto" | ||
/> | ||
</div> | ||
<div className="block md:hidden relative flex justify-end items-end"> | ||
<img | ||
src={imageSrc} | ||
alt={imageAlt} | ||
className="w-full max-w-[500px] h-auto" | ||
/> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Hero; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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<SolutionsProps> = ({ | ||
title, | ||
subtitle, | ||
description, | ||
linkText, | ||
solutionsImageSrc, | ||
solutionsImageAlt = "Equipe trabalhando", | ||
}) => { | ||
return ( | ||
<div className="w-full bg-white relative overflow-hidden"> | ||
<div className="max-w-none grid grid-cols-1 md:grid-cols-2 gap-12 items-center relative"> | ||
{/* Imagem */} | ||
<div className="relative h-full"> | ||
<div className="absolute inset-0"> | ||
<img | ||
src={solutionsImageSrc} | ||
alt={solutionsImageAlt} | ||
className="w-full h-full object-cover" | ||
/> | ||
</div> | ||
</div> | ||
|
||
{/* Conteúdo */} | ||
<div className="flex flex-col max-w-2xl py-24 px-4 md:pr-[calc((100%-74rem)/2)]"> | ||
<h2 className="text-gray-900 text-5xl font-bold mb-8"> | ||
{title} | ||
<br /> | ||
<span className="block mt-2">{subtitle}</span> | ||
</h2> | ||
|
||
<p className="text-gray-600 text-xl mb-8"> | ||
{description} | ||
</p> | ||
|
||
<a | ||
href="/solucoes" | ||
className="text-orange-500 text-xl font-semibold flex items-center hover:text-orange-600 transition-colors" | ||
> | ||
{linkText} | ||
<svg | ||
className="ml-2 w-6 h-6" | ||
fill="none" | ||
stroke="currentColor" | ||
viewBox="0 0 24 24" | ||
> | ||
<path | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
strokeWidth={2} | ||
d="M9 5l7 7-7 7" | ||
/> | ||
</svg> | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Solutions; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters