-
Notifications
You must be signed in to change notification settings - Fork 2
Issue 16 create feature box component #19
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: main
Are you sure you want to change the base?
Conversation
Created the component as FeatureBox with two props: width and height, so you can dynamically change its size
|
would you please be able to include a screenshot of the component in the PR description? thanks! |
|
Done, tell me if you need any changes |
SafetyInObscurity
left a comment
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.
A good start! Some minor details to iron out before the pull
Added a custom dark purple colour to the config and globals files, seen in the desired component in the issue brief, as well as moving Also revised the feature box's props to title and text, instead of height and width (which now change from rem), which are strings that will be placed in the respective parts of the feature box.
SafetyInObscurity
left a comment
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.
Looking good! A few steps left for mobile compatibility and simplicity.
| <div | ||
| style={{ | ||
| width: "50rem", | ||
| height: "13rem", |
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.
I think the issue with the mobile version is this use of a fixed width. Ideally we want the element to fill the space it's given, rather than a fixed value. This also allows it to be used when it's not expected to fill the full viewport width.
Change Summary
Created a component named FeatureBox that fulfills the description of this issue. Along with the special shape, it's title and text contents can be modified per component via props of the same respective names.

Change Form
Other Information
Related issue