Skip to content

Commit

Permalink
fix: re-enable hub homepage dropdown categories
Browse files Browse the repository at this point in the history
reenables talks & roundtables and updates styling
  • Loading branch information
rccsousa committed Oct 25, 2024
1 parent e207a15 commit ad9d958
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/app/_blocks/HubContentGrid/NavBar/DropdownMenu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ export default function DropdownMenu({
{/* TODO : Renable once pages are styled */}
{/* <li onClick={() => handleButtonClick('CaseStudies')}>
{iconMap['CaseStudies']} Case Studies
</li>
</li>*/}
<li onClick={() => handleButtonClick('TalksAndRoundtables')}>
{iconMap['TalksAndRoundtables']} Talks & Roundtables
</li>*/}
</li>
</ul>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
border-left: 2px solid var(--dark-rock-800);
background-color: white;
margin-top: -8px;
margin-bottom: -40px;
padding-top: 6px;
overflow: hidden;
}

.dropdownMenuContainer::after {
Expand Down
2 changes: 0 additions & 2 deletions src/app/_blocks/HubContentGrid/NavBar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ export default function ContentNavBar({
}

return (
// todo: make whole button clickable?

<div className={styles.contentNav}>
<DropdownMenu activeButton={activeButton} onActiveButtonChange={handleButtonClick} />

Expand Down
4 changes: 2 additions & 2 deletions src/app/_blocks/HubContentGrid/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default function HubContentGrid({ content }) {
};


const dynamicColor = {
const dynamicStyles = {
"--dynamic-color": colorMap[activeButton],
} as React.CSSProperties

Expand All @@ -36,7 +36,7 @@ export default function HubContentGrid({ content }) {
return (
<div>
<ContentNavBar activeButton={activeButton} onActiveButtonChange={handleActiveButtonChange} />
<div className={styles.contentGridContainer} style={dynamicColor}>
<div className={styles.contentGridContainer} style={dynamicStyles}>
<div className={styles.contentGrid}>
{filteredContent.map((article, i) => (
<div className={styles.contentCard}>
Expand Down
1 change: 0 additions & 1 deletion src/app/_blocks/HubContentGrid/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
margin: 40px auto;
border-bottom-right-radius: 45px;
border-bottom-left-radius: 45px;
border-top-right-radius: 45px;
border: 1px solid var(--dark-rock-800);
border-top: none;
overflow: hidden;
Expand Down
5 changes: 3 additions & 2 deletions src/app/_components/ArchiveButton/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const iconMap = {
}

import styles from './styles.module.css'
import Link from "next/link";

function formatTitle(text: string) {
return text
Expand All @@ -24,10 +25,10 @@ interface ArchiveButtonProps {

export default function ArchiveButton({ collection, color }: ArchiveButtonProps) {
return (
<a href={`/${collection}`} style={{ color: color || 'var(--dark-rock-800)' }}>
<Link href={`/${collection}`} style={{ color: color || 'var(--dark-rock-800)' }}>
<h6 className={styles.container}>
{iconMap[collection]} {formatTitle(collection)}
</h6>
</a>
</Link>
)
}

0 comments on commit ad9d958

Please sign in to comment.