-
Notifications
You must be signed in to change notification settings - Fork 5
Refactor page structure and styles #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: nuxt
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deploying website with
|
| Latest commit: |
3c2556b
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://8d09fbfa.website-ex0.pages.dev |
| Branch Preview URL: | https://refactor-styles.website-ex0.pages.dev |


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
FeatureCardcomponent and updating the CSS classes for better consistency and maintainability.Component Refactoring:
app/components/FeatureCard.vue: Introduced a newFeatureCardcomponent to encapsulate the layout and styling of feature cards, including props fortitle,imageSrc,imageAlt, andtoggleFn.Page Updates:
app/pages/contact.vue: Refactored the layout to use the newFeatureCardcomponent and updated CSS classes from.npc-paragraphand.npc-boxto.containerand.card. [1] [2] [3]app/pages/join.vue: Replaced the old layout with theFeatureCardcomponent for better structure and maintainability. [1] [2] [3] [4]app/pages/projects.vue: Updated the projects page to use theFeatureCardcomponent, ensuring a consistent design and easier maintenance. [1] [2] [3]app/pages/not-found.vue: Changed the layout to use the.containerclass for consistency with other pages. [1] [2] [3]Style Updates:
app/app.vue: Updated CSS classes from.npc-paragraphand.npc-boxto.containerand.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.