Skip to content

Commit

Permalink
update: add a paragraph to hero + style fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
teoh4770 committed Mar 5, 2024
1 parent 1817613 commit e183eb4
Showing 1 changed file with 26 additions and 12 deletions.
38 changes: 26 additions & 12 deletions src/components/sections/Hero.section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,36 @@ import { HeroBackgroundMobile, HeroBackgroundDesktop } from '@assets';

const HeroSection = () => {
return (
<div className="relative isolate">
<div className="-z-10">
<HeroBackgroundMobile className={'block sm:hidden'} />
<HeroBackgroundDesktop className={'hidden sm:block'} />
</div>
<div className="relative -translate-y-2/3 space-y-4 text-center sm:translate-y-0 sm:absolute sm:left-0 sm:top-0 sm:mt-0 sm:p-10 lg:p-14 sm:space-y-2 sm:text-left lg:space-y-7">
<div className="stacked place-items-end-center sm:place-items-start">
<HeroBackgroundMobile
className={'media block pb-16 sm:hidden xl:translate-y-20'}
/>
<HeroBackgroundDesktop
className={'media hidden sm:block xl:translate-y-20'}
/>

<div className="space-y-1 pb-4 text-center sm:pl-24 sm:pt-12 sm:text-left lg:pl-16 lg:pt-16 2xl:pl-60 2xl:pt-24">
<img
className="mx-auto aspect-square w-20 sm:mx-0 lg:w-28 xl:w-32"
className="inline-block aspect-square w-20 sm:mx-0 lg:w-28 xl:w-32 2xl:w-52"
src="src/assets/logo.svg"
alt="Hawkhack logo"
/>
<h1 className="bg-gradient-to-b from-[#2B6469] to-[#00CEDB] bg-clip-text text-transparent text-4xl font-extrabold lg:text-5.5xl xl:text-7xl">
HawkHack 2024
</h1>
<p className="text-2xl font-bold sm:hidden">April 5th - 7th</p>
<p className="text-2xl font-bold sm:hidden">In Person</p>
<div className="sm:space-y-2">
<h1 className="bg-gradient-to-b from-[#2B6469] to-[#00CEDB] bg-clip-text text-4xl font-extrabold text-transparent lg:text-5.5xl xl:text-7xl">
HawkHack 2024
</h1>
<p className="font-semibold text-[#2B6469] xl:text-2xl 2xl:text-3.5xl ">
Hosted at Wilfrid Laurier University
</p>
</div>
<div>
<p className="text-2xl font-bold text-[#2B6469] sm:hidden">
April 5th - 7th
</p>
<p className="text-2xl font-bold text-[#2B6469] sm:hidden">
In Person
</p>
</div>
</div>
</div>
);
Expand Down

0 comments on commit e183eb4

Please sign in to comment.