Skip to content

Commit

Permalink
chore: fixed eslint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
nickytonline committed Aug 8, 2024
1 parent 18270cb commit fc4692e
Showing 1 changed file with 31 additions and 31 deletions.
62 changes: 31 additions & 31 deletions components/sections/home-page/Newsletter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,37 +11,37 @@ import StrokeR3 from '../../../public/background-strokes/_3_rightStroke.svg'
import StrokeL3 from '../../../public/background-strokes/_3_leftStroke.svg'

const Newsletter = () => {
const handleSubscribeClick = () => {
window.open("https://news.opensauced.pizza/#/portal/signup", "_blank");
};
const handleSubscribeClick = () => {
window.open('https://news.opensauced.pizza/#/portal/signup', '_blank')
}

return (
<SectionWrapper pt={100} pb={250}>
<div className="relative w-screen">
<div className="absolute largeTablet:block top-[-14rem] largeTablet:-top-[10rem] left-[-30rem] largeTablet:left-[-15rem]">
<Image alt="Doodles" src={StrokeL3} />
</div>
<div className="absolute largeTablet:block top-[-14rem] largeTablet:-top-[22rem] right-[-34rem] largeTablet:-right-[32rem]">
<Image alt="Doodles" src={StrokeR3} />
</div>
</div>
<div className="flex flex-col items-center gap-y-8">
<Heading alignSmall="center">
$orange-to-yellowThe fast track$orange-to-yellow to open source
</Heading>
<Typography alignSmall="center" variant="body1" >
Stay up to date with the latest OpenSauced news and trends.
</Typography>
<GradientBorderWrapper>
<button
onClick={handleSubscribeClick}
className="relative box-border px-4 flex items-center justify-center w-[280px] h-[38px] text-[#FEEADD] pr-4 py-3 text-sm font-medium bg-[#211E1C] rounded-md largeTablet:w-[394px]"
>
<span className="text-brandOrange">Subscribe</span>
</button>
</GradientBorderWrapper>
</div>
</SectionWrapper>
)
return (
<SectionWrapper pt={100} pb={250}>
<div className="relative w-screen">
<div className="absolute largeTablet:block top-[-14rem] largeTablet:-top-[10rem] left-[-30rem] largeTablet:left-[-15rem]">
<Image alt="Doodles" src={StrokeL3} />
</div>
<div className="absolute largeTablet:block top-[-14rem] largeTablet:-top-[22rem] right-[-34rem] largeTablet:-right-[32rem]">
<Image alt="Doodles" src={StrokeR3} />
</div>
</div>
<div className="flex flex-col items-center gap-y-8">
<Heading alignSmall="center">
$orange-to-yellowThe fast track$orange-to-yellow to open source
</Heading>
<Typography alignSmall="center" variant="body1">
Stay up to date with the latest OpenSauced news and trends.
</Typography>
<GradientBorderWrapper>
<button
onClick={handleSubscribeClick}
className="relative box-border px-4 flex items-center justify-center w-[280px] h-[38px] text-[#FEEADD] pr-4 py-3 text-sm font-medium bg-[#211E1C] rounded-md largeTablet:w-[394px]"
>
<span className="text-brandOrange">Subscribe</span>
</button>
</GradientBorderWrapper>
</div>
</SectionWrapper>
)
}
export default Newsletter

0 comments on commit fc4692e

Please sign in to comment.