diff --git a/components/Sections.module.css b/components/Sections.module.css index b4b63f7..fb2fbd0 100644 --- a/components/Sections.module.css +++ b/components/Sections.module.css @@ -1,8 +1,8 @@ .sections { display: flex; flex-direction: row; - width: 50%; - gap: 15px; + min-width: calc(1000rem / 16); + gap: calc(15rem / 16); margin: 0 auto; } @@ -17,7 +17,7 @@ background-color: var(--label); height: calc(1rem / 16); width: 100%; - margin-top: calc(24rem / 16); + margin-top: calc(16rem / 16); } .nav { @@ -27,10 +27,8 @@ } .navItem { - display: flex; - flex-direction: row; - align-items: flex-start; margin: calc(20rem / 16); + margin-left: 0; } .navItem:first-child { @@ -39,14 +37,19 @@ .nav h4 { color: var(--secondary-accent); - margin: 0 calc(14rem / 16) 0 0; + margin: 0; + display: inline; } .nav a { color: var(--primary-text); } -.nav a:hover { - color: var(--primary-accent-light); +.nav a:hover p { text-decoration: underline; -} \ No newline at end of file +} + +.nav p { + margin: 0; + display: inline; +} diff --git a/components/Sections.tsx b/components/Sections.tsx index 93f3161..27a9fa1 100644 --- a/components/Sections.tsx +++ b/components/Sections.tsx @@ -8,20 +8,30 @@ interface SectionsData { } interface SectionsProps { + /* Whether to display the "Sections" title and separator that appears on the left. */ + showHeader?: boolean; data: SectionsData[]; } -export default function Sections({ data }: SectionsProps) { +export function Sections({ data, showHeader = true }: SectionsProps) { return (
-

Sections

-
+ {showHeader ? ( + <> +

Sections

+
+ + ) : ( + "" + )}
); }