AlexsLemonade / AlexsLemonade/refinebio-web

Rename the Hero component to Card and refactor component structure

Open
#461 0 comments 0 reactions 1 assignee Claimed by @nozomione View on GitHub
Post QA
Dominant language
JavaScript
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

### Context

We currently use the `Hero` component which renders a white box with a drop shadow.

This component is used on the following pages:

- Homepage
- About

e.g. ) `Hero` on the about page

![Image](https://github.com/user-attachments/assets/fcf5373e-cdbc-4e89-898f-354ea4c7e5ac)

The `Hero` component defines styles for the `div` container. It also manages the spacing for the header and body content within it, and accepts `header` and `children` props.

### Problem or idea

We want to make the following changes to `Hero`:
- Remove the `header` prop
- Allow parent components to manage the spacing of content for more flexibility
- Rename `Hero` to `Card` to better align with its intended use

### Solution or next step

- Rename `Hero` to `Card`
- Remove the `header` prop and any related styling from the component
- Update the parent components (i.e., homepage, about) to reflect these changes

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.