Skip to content

Commit

Permalink
feat: change font and color of Heading component
Browse files Browse the repository at this point in the history
  • Loading branch information
martapanc committed Oct 8, 2023
1 parent 26304b9 commit 025c250
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/atoms/headings/Heading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,20 @@
import * as React from 'react';
import { useTranslation } from 'react-i18next';

import './headings.css';

interface HeadingProps {
title: string;
}

const Heading = ({ title }: HeadingProps) => {
const { t } = useTranslation();

return <h1 className='mb-5'>{t(title)}</h1>;
return (
<h1 className='heading drop-shadow-lg mb-3 text-5xl font-bold'>
{t(title)}
</h1>
);
};

export default Heading;
10 changes: 10 additions & 0 deletions src/components/atoms/headings/headings.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.heading {
height: 52px;
background-image: radial-gradient(
circle at 10% 20%,
rgb(59, 149, 237) 0%,
rgb(7, 91, 173) 90%
);
background-clip: text;
color: transparent;
}

0 comments on commit 025c250

Please sign in to comment.