diff --git a/src/components/global/SectionTitle.tsx b/src/components/global/SectionTitle.tsx index e1ff9b2..8bfba1d 100644 --- a/src/components/global/SectionTitle.tsx +++ b/src/components/global/SectionTitle.tsx @@ -3,7 +3,7 @@ import { Link } from "react-router-dom"; // Types interface Props { - givenClass: string; + givenClass?: string; title: string; linkData?: { title: string; @@ -13,7 +13,7 @@ interface Props { const SectionTitle: React.FC = ({ givenClass, title, linkData }) => { return ( -
+

{title}

{linkData ? {linkData.title} : null}
diff --git a/src/styles/_section-title.scss b/src/styles/_section-title.scss index e69de29..3ce0f8b 100644 --- a/src/styles/_section-title.scss +++ b/src/styles/_section-title.scss @@ -0,0 +1,18 @@ +.section-title { + display: flex; + align-items: center; + justify-content: space-between; + gap: 4rem; + + h2 { + font-size: 2.4rem; + } + + a { + display: block; + padding: 1rem; + background: $main; + color: $white; + font-size: 1.6rem; + } +}