Skip to content

Feat/redesign programs page#793

Merged
jeromehardaway merged 2 commits into
masterfrom
feat/redesign-programs-page
Jul 12, 2025
Merged

Feat/redesign programs page#793
jeromehardaway merged 2 commits into
masterfrom
feat/redesign-programs-page

Conversation

@jeromehardaway

Copy link
Copy Markdown
Contributor

This pull request introduces new components and refactors the Programs page to enhance its design and usability. Key changes include the addition of reusable components (CTA, Hero, and ProgramCard) and the restructuring of the Programs page to use these components for improved modularity and visual appeal.

New Components

  • src/components/cta/index.tsx: Added a CTA component with a call-to-action section encouraging users to apply to the program.
  • src/components/hero/index.tsx: Introduced a Hero component for displaying a visually appealing header section with program details.
  • src/components/program-card/index.tsx: Created a ProgramCard component to display individual program information in a card format, including title, description, and a link to learn more.

Refactoring of Programs Page

  • src/pages/programs.tsx: Replaced inline program card implementation with the new ProgramCard component and added the HeroArea section to improve page structure. Updated text content and layout for better readability and user experience. [1] [2]

@jeromehardaway jeromehardaway requested a review from Copilot July 12, 2025 05:19
@jeromehardaway jeromehardaway self-assigned this Jul 12, 2025
@vercel

vercel Bot commented Jul 12, 2025

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
vets-who-code-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 12, 2025 5:21am

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

A redesign of the Programs page to improve modularity and visual appeal by introducing reusable components and restructuring layout

  • Added ProgramCard, Hero, and CTA components for consistent styling and reuse
  • Refactored Programs page to use HeroArea for the header and ProgramCard for listing programs
  • Updated page title, SEO metadata, and introductory text

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
src/pages/programs.tsx Refactored to include HeroArea, program cards grid, updated title and layout
src/components/program-card/index.tsx Added ProgramCard component for individual program display
src/components/hero/index.tsx Introduced Hero component for header section
src/components/cta/index.tsx Created CTA component for call-to-action sections
Comments suppressed due to low confidence (1)

src/components/program-card/index.tsx:13

  • [nitpick] There are currently no tests covering the ProgramCard component; adding unit or snapshot tests would help ensure it renders correctly and handles props as expected.
const ProgramCard = ({ program }: Props) => {

return (
<div className="tw-bg-[#091f40] tw-text-white tw-py-20">
<div className="tw-container">
<h1 className="tw-text-4xl tw-font-bold">Our Program</h1>

Copilot AI Jul 12, 2025

Copy link

Choose a reason for hiding this comment

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

The heading text reads “Our Program” (singular), but should likely be “Our Programs” to align with the page’s plural context.

Suggested change
<h1 className="tw-text-4xl tw-font-bold">Our Program</h1>
<h1 className="tw-text-4xl tw-font-bold">Our Programs</h1>

Copilot uses AI. Check for mistakes.
Comment thread src/pages/programs.tsx
))}
</div>
</section>
<hr className="tw-my-12 tw-border-t tw-border-gray-200" />

Copilot AI Jul 12, 2025

Copy link

Choose a reason for hiding this comment

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

The CTA component is defined but not used on this page; consider importing and placing <CTA /> after the horizontal rule to prompt users to apply.

Suggested change
<hr className="tw-my-12 tw-border-t tw-border-gray-200" />
<hr className="tw-my-12 tw-border-t tw-border-gray-200" />
<CTA />

Copilot uses AI. Check for mistakes.
@github-actions

Copy link
Copy Markdown

🔍 Code Quality Score Breakdown:

  • 📖 Readability: 5/10
  • 📈 Scalability: 5/10
  • 🚀 Performance: 5/10
  • 🛠️ Maintainability: 8/10
  • ✅ Overall Score: 5.8/10

💡 Recommendations:

  • 🧹 Reduce ESLint warnings to improve readability.
  • 📦 Break up complex functions or components.
  • ⚙️ Consider splitting large files or lazy-loading.
  • 🔁 Refactor to increase your overall score next cycle.

@jeromehardaway jeromehardaway merged commit ab9ba27 into master Jul 12, 2025
5 checks passed
@jeromehardaway jeromehardaway deleted the feat/redesign-programs-page branch July 12, 2025 05:39
jonulak added a commit that referenced this pull request Jul 13, 2025
commit ab9ba27
Author: Jerome Hardaway <jerome@vetswhocode.io>
Date:   Sat Jul 12 01:39:36 2025 -0400

    Feat/redesign programs page (#793)

    * Feat: Redesign programs page with new Hero, ProgramCard, and CTA components

    * feat: update Programs page layout with new HeroArea and ProgramCard integration

    ---------

    Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>

commit 39d578b
Author: Jerome Hardaway <jerome@vetswhocode.io>
Date:   Sat Jul 12 00:32:49 2025 -0400

    Program pages (#792)

    * Add core programs for veterans: Core Curriculum, Mentorship, Mission-Ready, and Studio

    - Created new MDX files for Core Curriculum, Mentorship Program, Mission-Ready Platform, and Studio.
    - Implemented program overview, outcomes, and how it works sections in each program's MDX file.
    - Developed a programs index page to display all programs with descriptions and links.
    - Added dynamic routing for individual program pages using Next.js.

    * chore: add @types/mdx dependency and update yarn.lock

    - Added @types/mdx version 2.0.13 to package.json.
    - Cleaned up yarn.lock by removing unused @emotion dependencies and ensuring proper versioning for existing packages.

    * Update src/pages/programs/[slug].tsx

    Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

    ---------

    Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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