From 1e34db4d23bef99eaa84ccf34e165f7ff1abf447 Mon Sep 17 00:00:00 2001 From: anmol Date: Mon, 8 Apr 2024 18:58:16 +0530 Subject: [PATCH] fix: Refactor Hero component to enhance code readability and maintainability. Integrated Button component for improved modularity and reusability --- src/components/Hero.jsx | 127 +++++++++++++++++++++------------------- 1 file changed, 68 insertions(+), 59 deletions(-) diff --git a/src/components/Hero.jsx b/src/components/Hero.jsx index 5a06a4d..16561ca 100644 --- a/src/components/Hero.jsx +++ b/src/components/Hero.jsx @@ -2,86 +2,95 @@ import { PersonalizedText, Text } from './shared/typography'; import { HeroText1 } from './shared/typography'; import { HeroText2 } from './shared/typography'; import { imgURLs } from '../data/eventsData'; +import Button from './shared/Button'; const Hero = () => { return ( -
+
-
+
Welcome family...
- - Lorem Ipsum Dolar sit Amet luyto - +
+ + Lorem Ipsum{' '} + + Dolar sit Amet + luyto + + +
- -
-
+
+
-
-
-
-
- + style={{ + backgroundImage: imgURLs[0].url, + backgroundSize: 'cover', + backgroundPosition: 'center', + borderRadius: '4px', + }} + /> +
- Batch: 1999 + className={`relative bg-white md:h-[414px] md:w-[300px] w-[210px] h-[278px] + rounded-lg border-solid border-2 border-black shadow-3xl flex-shrink-0 z-10`}> +
+ +
+ Batch: 1999 +
+
-
-
-
+
+