Skip to content

Commit

Permalink
fix: Remove articles not yet finished
Browse files Browse the repository at this point in the history
  • Loading branch information
anth-volk committed Oct 30, 2024
1 parent f36a9c3 commit e99ce72
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions src/pages/home/HomeElectionBanner.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,11 @@ const primaryArticles = [
shortTitle: "Harris EITC",
link: "/us/research/harris-eitc",
},
{
title: "Harris High-Income Tax Reform Proposal",
shortTitle: "Harris High-Income",
link: "#",
},
{
title: "Trump Social Security Tax Exemption Proposal",
shortTitle: "Trump Social Security",
link: "/us/research/social-security-tax-exemption",
},
{
title: "Trump Combined Tax Reform Proposal",
shortTitle: "Trump Combined Tax Reforms",
link: "#",
},
];

const secondaryArticles = [
Expand Down Expand Up @@ -86,9 +76,11 @@ export default function HomeElectionBanner() {
<LinkButton
type="primary"
text={shouldUseShortTitle ? article.shortTitle : article.title}
// style={{ width: "100%" }}
link={article.link}
key={String(index).concat(article.text)}
style={{
gridColumn: windowWidth < 950 ? "span 1" : "span 5",
}}
/>
);
});
Expand All @@ -98,9 +90,11 @@ export default function HomeElectionBanner() {
<LinkButton
type="secondary"
text={shouldUseShortTitle ? article.shortTitle : article.title}
style={{ width: "100%" }}
link={article.link}
key={String(index).concat(article.text)}
style={{
gridColumn: windowWidth < 950 ? "span 1" : "span 3",
}}
/>
);
});
Expand Down Expand Up @@ -281,8 +275,10 @@ export default function HomeElectionBanner() {
style={{
display: "grid",
gap: "16px",
// 15 columns: lowest common multiple of 3 (# of primary articles)
// and 5 (# of secondary articles)
gridTemplateColumns:
windowWidth < 950 ? "repeat(2, 1fr)" : "repeat(5, 1fr)",
windowWidth < 950 ? "repeat(2, 1fr)" : "repeat(15, 1fr)",
gridTemplateRows:
windowWidth < 950 ? "repeat(5, 1fr)" : "repeat(2, 1fr)",
}}
Expand Down

0 comments on commit e99ce72

Please sign in to comment.