Skip to content

add front page content#92

Open
meganrm wants to merge 1 commit intomainfrom
feature/home-page-content
Open

add front page content#92
meganrm wants to merge 1 commit intomainfrom
feature/home-page-content

Conversation

@meganrm
Copy link
Copy Markdown
Collaborator

@meganrm meganrm commented Apr 2, 2026

Problem

The front page didn't have enough context about why the site is valuable

Solution

Added more text and and styling. I did not change the flow of the main page/verses the table page. I figured that would be a separate PR.

with claude

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

Steps to Verify:

  1. npm start

Screenshots (optional):

Screenshot 2026-04-02 at 3 23 42 PM

@meganrm meganrm requested a review from Copilot April 2, 2026 22:24
@netlify
Copy link
Copy Markdown

netlify bot commented Apr 2, 2026

Deploy Preview for project-idea-board ready!

Name Link
🔨 Latest commit c6ec21b
🔍 Latest deploy log https://app.netlify.com/projects/project-idea-board/deploys/69ceec9bdcd925000849149d
😎 Deploy Preview https://deploy-preview-92--project-idea-board.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Enhances the site’s front page to better explain the value of the content and guide users toward exploring the idea catalog.

Changes:

  • Reworked the index page template layout to add an intro section, “what you’ll find” cards, and a call-to-action.
  • Added new CSS module styling to support the updated sections and visual structure.
  • Updated the index markdown frontmatter copy (title/subheading/main pitch) to match the new messaging.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.

File Description
src/templates/index-page.tsx Adds new front-page sections (intro/audience, content-type cards, CTA) and updates the GraphQL/frontmatter usage accordingly.
src/style/index-page.module.css Introduces styling for the new sections (grid layout, cards, CTA, recent additions spacing).
src/pages/index.md Updates frontmatter text for the refreshed homepage messaging.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

contentTypesInner,
cta,
ctaButtons,
ctaLink,
Copy link

Copilot AI Apr 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ctaLink is destructured from the CSS module but never used in this component. With the current ESLint config (@typescript-eslint/no-unused-vars), this will fail linting. Remove ctaLink from the destructure (and consider deleting the corresponding .ctaLink styles if they’re no longer needed), or render an element that uses it.

Suggested change
ctaLink,

Copilot uses AI. Check for mistakes.
Comment on lines 50 to 56
interface IndexPageTemplateProps {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
image: any; // Replace `any` with a more specific type if possible
title: string;
heading: string;
subheading: string;
mainpitch: MainPitch;
description: string;
}
Copy link

Copilot AI Apr 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IndexPageTemplate no longer accepts/uses heading and description, but the CMS configuration and preview template still expose/pass those fields (see static/admin/config.yml and src/cms/preview-templates/IndexPagePreview.js). This makes the CMS UI misleading because edits to those fields won’t affect the rendered front page. Either wire these fields back into the template or update the CMS config/preview to remove them and align with the new content model.

Copilot uses AI. Check for mistakes.
Comment on lines +131 to +135
<Link to="/ideas">
<Button size="large" type="primary">
Browse Ideas
</Button>
</Link>
Copy link

Copilot AI Apr 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<Link> renders an <a>, and Ant Design’s <Button> renders a <button> by default, so this produces an interactive element nested inside another interactive element (<a><button>…</button></a>), which is invalid HTML and can cause accessibility/keyboard issues. Prefer a single interactive element (e.g., style the Gatsby Link as a button, or use an Ant Button that renders as a link via href/navigation).

Copilot uses AI. Check for mistakes.
Comment on lines +156 to +165
.ctaLink {
font-size: 14px;
color: var(--MEDIUM_GRAY);
text-decoration: underline;
}

.ctaLink:hover {
color: var(--primary-color);
}

Copy link

Copilot AI Apr 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.ctaLink styles are defined here but nothing in the updated index page uses this class. If you remove the unused ctaLink import from the template, consider removing these unused styles too to avoid dead CSS.

Suggested change
.ctaLink {
font-size: 14px;
color: var(--MEDIUM_GRAY);
text-decoration: underline;
}
.ctaLink:hover {
color: var(--primary-color);
}

Copilot uses AI. Check for mistakes.
Comment on lines 178 to 186
gatsbyImageData(quality: 100, layout: FULL_WIDTH)
}
}
heading
subheading
mainpitch {
title
description
}
description
}
Copy link

Copilot AI Apr 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this query, heading and description were removed from frontmatter, but the local QueryResult type above still requires frontmatter.heading and frontmatter.description. Please update the QueryResult interface (or switch to the generated Queries.* type for this query) so the TypeScript types match the actual GraphQL selection set.

Copilot uses AI. Check for mistakes.
@meganrm
Copy link
Copy Markdown
Collaborator Author

meganrm commented Apr 3, 2026

  • make this into an About page instead.
  • make cards slightly less vertically spacious
  • TODO: make the category cards clickable to filter the information (once we have enough to justify filters)
  • make sure the header shows up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants