|
| 1 | +import Button from "../shared/Button"; |
| 2 | +import { siteConfig } from "../../config/navbarHero"; |
| 3 | + |
| 4 | +export default function HeroSection() { |
| 5 | + return ( |
| 6 | + <section className="bg-white min-h-[400px] px-4 sm:px-6 md:px-10 lg:px-16 py-12 sm:py-16"> |
| 7 | + <div className="max-w-[1600px] mx-auto flex flex-col md:flex-row items-center md:items-start justify-center md:justify-between"> |
| 8 | + <div className="w-full max-w-[700px] px-2 md:px-0 space-y-4 text-center md:text-left"> |
| 9 | + <p |
| 10 | + className="text-xl sm:text-2xl md:text-3xl font-normal text-black leading-[120%]" |
| 11 | + style={{ fontFamily: "Helvetica, Arial, sans-serif" }} |
| 12 | + > |
| 13 | + {siteConfig.hero.title} |
| 14 | + </p> |
| 15 | + |
| 16 | + <h1 |
| 17 | + className="text-3xl sm:text-4xl md:text-[47px] lg:text-[56px] xl:text-[64px] font-bold uppercase text-black leading-[120%]" |
| 18 | + style={{ fontFamily: "Helvetica, Arial, sans-serif" }} |
| 19 | + > |
| 20 | + {siteConfig.hero.subtitle} |
| 21 | + </h1> |
| 22 | + |
| 23 | + <p |
| 24 | + className="text-base sm:text-lg text-[rgba(106,106,106,1)] leading-[150%] mt-4 max-w-2xl mx-auto md:mx-0" |
| 25 | + style={{ fontFamily: "Helvetica, Arial, sans-serif" }} |
| 26 | + > |
| 27 | + {siteConfig.hero.description} |
| 28 | + </p> |
| 29 | + |
| 30 | + <div className="flex flex-col sm:flex-row sm:justify-center md:justify-start items-center mt-6 gap-4"> |
| 31 | + <Button |
| 32 | + className="bg-[rgba(6,25,70,1)] text-white px-14 py-2 rounded-md hover:bg-[rgba(6,25,70,0.9)]" |
| 33 | + style={{ fontFamily: "Helvetica, Arial, sans-serif" }} |
| 34 | + > |
| 35 | + {siteConfig.hero.primaryButton} |
| 36 | + </Button> |
| 37 | + <Button |
| 38 | + className="bg-transparent text-[rgba(55,115,236,1)] underline-offset-4 hover:underline" |
| 39 | + style={{ fontFamily: "Helvetica, Arial, sans-serif" }} |
| 40 | + > |
| 41 | + {siteConfig.hero.secondaryLink} |
| 42 | + </Button> |
| 43 | + </div> |
| 44 | + </div> |
| 45 | + |
| 46 | + <div className="w-full max-w-[500px] px-2 md:px-0 mt-10 md:mt-0"> |
| 47 | + <img |
| 48 | + src={siteConfig.hero.image} |
| 49 | + alt="ASME NIT Rourkela team members" |
| 50 | + className="rounded-md shadow-lg object-cover w-full h-auto" |
| 51 | + /> |
| 52 | + |
| 53 | + <img |
| 54 | + src={siteConfig.hero.image1} |
| 55 | + alt="Background figure 1" |
| 56 | + className="absolute" |
| 57 | + style={{ |
| 58 | + width: "705px", |
| 59 | + height: "705px", |
| 60 | + top: "-234px", |
| 61 | + left: "-151px", |
| 62 | + opacity: 0.36, |
| 63 | + }} |
| 64 | + /> |
| 65 | + |
| 66 | + <img |
| 67 | + src={siteConfig.hero.image2} |
| 68 | + alt="Background figure 2" |
| 69 | + className="absolute hidden min-[980px]:block" |
| 70 | + style={{ |
| 71 | + width: "478px", |
| 72 | + height: "478px", |
| 73 | + top: "189px", |
| 74 | + left: "481px", |
| 75 | + opacity: 0.36, |
| 76 | + }} |
| 77 | + /> |
| 78 | + </div> |
| 79 | + </div> |
| 80 | + </section> |
| 81 | + ); |
| 82 | +} |
0 commit comments