Skip to content

Conversation

rileychh
Copy link
Member

@rileychh rileychh commented Mar 6, 2025

This pull request includes significant updates to the Vue components and styles in the application. The main changes involve refactoring the structure of several pages to use the newly created FeatureCard component and updating the CSS classes for better consistency and maintainability.

Component Refactoring:

  • app/components/FeatureCard.vue: Introduced a new FeatureCard component to encapsulate the layout and styling of feature cards, including props for title, imageSrc, imageAlt, and toggleFn.

Page Updates:

Style Updates:

  • app/app.vue: Updated CSS classes from .npc-paragraph and .npc-box to .container and .card, and removed unused styles to streamline the CSS. [1] [2]

These changes improve the codebase by making the layout more consistent and easier to maintain, while also introducing a reusable component for feature cards.

@rileychh rileychh requested review from Copilot and kevinlee-06 March 6, 2025 02:41
Copy link

@Copilot 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.

PR Overview

This pull request refactors the page structures and styles to improve maintainability and consistency by introducing a new reusable FeatureCard component and standardizing CSS class names.

  • Introduced FeatureCard.vue to encapsulate feature card layout and styling
  • Updated multiple pages (projects, not-found, join, index, contact) to use the new FeatureCard and revised CSS classes
  • Cleaned up unused code and streamlined app-level styles in app.vue and error.vue

Reviewed Changes

File Description
app/components/FeatureCard.vue Introduces a new reusable component for feature cards
app/pages/projects.vue Refactored to use FeatureCard and imported new asset images
app/pages/not-found.vue Updated page structure and standardized CSS class usage
app/pages/join.vue Converted existing layout to FeatureCard with updated slot usage
app/pages/index.vue Revised structure to adopt the new container class
app/pages/contact.vue Modified layout to use semantic article/section elements and new CSS classes
app/error.vue Removed unused imports to simplify the error page code
app/app.vue Updated global styles, renaming classes from npc-paragraph/npc-box to container/card

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

Copy link
Contributor

@kevinlee-06 kevinlee-06 left a comment

Choose a reason for hiding this comment

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

大跑版

image
image

Copy link

cloudflare-workers-and-pages bot commented Mar 6, 2025

Deploying website with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3c2556b
Status: ✅  Deploy successful!
Preview URL: https://8d09fbfa.website-ex0.pages.dev
Branch Preview URL: https://refactor-styles.website-ex0.pages.dev

View logs

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