2022-04-20 15:29:34 +05:00

34 lines
978 B
TypeScript

import React, { FC } from 'react';
import { Container } from '@components/ui';
import { ArrowRight } from '@components/icons';
import s from './Hero.module.css';
import Link from 'next/link';
interface HeroProps {
className?: string;
headline: string;
description: string;
}
const Hero: FC<HeroProps> = ({ headline, description }) => {
return (
<div className="bg-accent-9 border-b border-t border-accent-2">
<Container>
<div className={s.root}>
<h2 className={s.title}>{headline}</h2>
<div className={s.description}>
<p>{description}</p>
<Link href="/">
<a className="flex items-center text-accent-0 pt-3 font-bold hover:underline cursor-pointer w-max-content">
Read it here
<ArrowRight width="20" heigh="20" className="ml-1" />
</a>
</Link>
</div>
</div>
</Container>
</div>
);
};
export default Hero;