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
5b6cd61
commit 756c871
Showing
4 changed files
with
84 additions
and
19 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,59 @@ | ||
import React from 'react'; | ||
|
||
interface BannerIntroProps { | ||
imageSrc: string; | ||
title: string; | ||
highlightedText: string; | ||
backgroundColor?: string; | ||
textColor?: string; | ||
} | ||
|
||
const BannerIntro: React.FC<BannerIntroProps> = ({ | ||
imageSrc, | ||
title, | ||
highlightedText, | ||
backgroundColor = '', | ||
textColor = '#FFFFFF', | ||
}) => { | ||
return ( | ||
<div | ||
style={{ backgroundColor }} | ||
className="relative w-full h-96 overflow-hidden" | ||
> | ||
{/* Círculos decorativos (maiores para se aproximar ao design Figma) */} | ||
<div className="absolute w-[600px] h-[600px] bg-orange-300/20 rounded-full -left-64 -top-64"></div> | ||
<div className="absolute w-[500px] h-[500px] bg-orange-300/20 rounded-full -right-64 -bottom-64"></div> | ||
|
||
{/* Container principal em linha (mascote e texto) */} | ||
<div className="relative z-10 flex flex-row items-center w-full h-full p-8"> | ||
{/* Div para a imagem (metade da tela) */} | ||
<div className="w-1/2 flex justify-center"> | ||
<img | ||
src={imageSrc} | ||
alt="Mascote" | ||
style={{ width: '300px', height: '300px' }} | ||
/> | ||
</div> | ||
|
||
{/* Div para o texto (metade da tela) */} | ||
<div className="w-1/2 flex flex-col items-start justify-center"> | ||
<h2 | ||
className="text-5xl font-bold mb-4" | ||
style={{ color: textColor }} | ||
> | ||
{title}{' '} | ||
<span | ||
className="relative" | ||
style={{ color: textColor }} | ||
> | ||
{highlightedText} | ||
<div className="absolute bottom-0 left-0 w-full h-2 bg-yellow-300"></div> | ||
</span> | ||
</h2> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default BannerIntro; |
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
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