Skip to content

DIS-30-Landing-Page-Process-Flow#25

Merged
huiii421 merged 29 commits intomainfrom
DIS-30-Landing-Page-Process-Flow
May 5, 2025
Merged

DIS-30-Landing-Page-Process-Flow#25
huiii421 merged 29 commits intomainfrom
DIS-30-Landing-Page-Process-Flow

Conversation

@huiii421
Copy link
Copy Markdown
Contributor

desktop
image

mobile:
image

keypoints:

  • Defines a Step type and an array of four step objects (id, title, description, imageUrl).
  • Uses useState to track activeStep, and useRef plus offset calculations to center the active card in its scroll container.
  • Handles click events on step cards via handleStepChange, with smooth horizontal scrolling.
  • Implements touch support (handleTouchStart, handleTouchMove, handleTouchEnd) to detect left/right swipes and change steps.
  • Adds an auto‑play useEffect timer that advances to the next step every 5 seconds (loops back to the first).
  • Leverages Material UI’s , , and for responsive design, grid layout, and active/inactive styling.
  • Integrates Next.js’s for performant image rendering inside the step viewport.

@huiii421 huiii421 changed the title processFlow_v1 DIS-30-Landing-Page-Process-Flow Apr 22, 2025
@Qiming-Liu Qiming-Liu requested a review from Copilot April 23, 2025 05:54
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

This PR implements the landing page process flow by adding a new ProcessFlow component with swipe and auto‑play functionalities, as well as introducing supporting UI elements and theme adjustments.

  • Adds a responsive ProcessFlow component with smooth scrolling and touch support
  • Introduces a new CTAButton component and updates the theme and layout for improved UI consistency
  • Integrates the ProcessFlow component into the HeroSection and updates the app layout

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/theme/index.ts Sets up custom theming with spacing, typography, breakpoints, etc.
src/components/ui/CTAButton.tsx Implements a variant-based CTA button using Material UI styles.
src/components/features/landing/ProcessFlow.tsx Implements step-based process flow with smooth scrolling and swipes.
src/components/features/landing/HeroSection.tsx Integrates the ProcessFlow component into the hero section.
src/app/layout.tsx Modifies the layout with hydration suppression and updated styling.

@Dispatch-AI-com Dispatch-AI-com deleted a comment from Copilot AI Apr 23, 2025
Copy link
Copy Markdown
Collaborator

@Qiming-Liu Qiming-Liu left a comment

Choose a reason for hiding this comment

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

Change the file structure

@huiii421
Copy link
Copy Markdown
Contributor Author

Change the file structure

Modification about the file structure completed

@sguming sguming closed this Apr 29, 2025
@sguming sguming reopened this Apr 29, 2025
@huiii421 huiii421 enabled auto-merge (squash) May 5, 2025 07:31
@huiii421 huiii421 disabled auto-merge May 5, 2025 07:31
@huiii421 huiii421 merged commit 28bf8d3 into main May 5, 2025
1 check passed
@huiii421 huiii421 deleted the DIS-30-Landing-Page-Process-Flow branch May 5, 2025 07:32
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.

4 participants