-
Notifications
You must be signed in to change notification settings - Fork 0
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
recloned and added code #30
base: dev
Are you sure you want to change the base?
recloned and added code #30
Conversation
Looking good for now! There are 1-2 things to fix (which we haven't covered yet), and will be one of the topics of our next meeting! |
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.
Thank you for getting the changes in! I left a few comments on changes to match with our code quality standards and to give you some help with the box shadow you mentioned. Great progress though!
src/components/about/ValueCard.tsx
Outdated
|
||
return ( | ||
<div className={containerClasses}> | ||
<h2 className={titleClasses}>{title}</h2> |
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.
use div instead of h2
src/components/about/ValueCard.tsx
Outdated
"text-3xl text-leap-dark-green mb-6 text-center font-bold tracking-widest"; | ||
|
||
const boxClasses = | ||
"bg-leap-mid-green p-6 shadow-[0_4px_6px_rgba(0.9,1.9,0.9,1.9)] max-w-[300px] text-center text-white text-base leading-relaxed relative tracking-widest"; |
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.
look at this component for how to use tailwind box shadow: https://github.com/acm-ucr/leap-website/blob/dev/src/components/home/Value_Box.tsx
don't use max-w, or leading(regular w- is fine), text-base is also active by default so no need to have this part
src/components/about/ValueCard.tsx
Outdated
const containerClasses = "flex flex-col items-center my-8"; | ||
|
||
const titleClasses = | ||
"text-3xl text-leap-dark-green mb-6 text-center font-bold tracking-widest"; |
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.
tracking is unnecessary here
src/components/about/ValueCard.tsx
Outdated
|
||
const ValueCard: React.FC<ValueCardProps> = ({ title, text }) => { | ||
// Assign class names to variables for readability and maintainability | ||
const containerClasses = "flex flex-col items-center my-8"; |
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.
move these from being declared separately to being inline to be consistent with other components.
I created the card component and tried to closely match the design in the issue. The text is dynamic, making the component reusable for multiple purposes.
![image](https://private-user-images.githubusercontent.com/158416948/403224500-4ee7f384-5455-4b27-a408-ad2f839eca68.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNjI3MzgsIm5iZiI6MTczOTE2MjQzOCwicGF0aCI6Ii8xNTg0MTY5NDgvNDAzMjI0NTAwLTRlZTdmMzg0LTU0NTUtNGIyNy1hNDA4LWFkMmY4MzllY2E2OC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMFQwNDQwMzhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xOGFmOThiMWQyODUwNzkyMTk5ZTU1M2I0YTBlMmFiMTI4YWE4Zjk2OWVhOWVhNmVkMDI5MmY5ZTE5MDUzZDY4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.ZLft1uylBFX6_WEArJVJizLE4xV_osW2Vho3zDjyGdg)
![image](https://private-user-images.githubusercontent.com/158416948/403224525-4b389fb2-d8e2-4ce2-a446-0ae90d1e4600.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNjI3MzgsIm5iZiI6MTczOTE2MjQzOCwicGF0aCI6Ii8xNTg0MTY5NDgvNDAzMjI0NTI1LTRiMzg5ZmIyLWQ4ZTItNGNlMi1hNDQ2LTBhZTkwZDFlNDYwMC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMFQwNDQwMzhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT03MjZkM2FiODQ5OWQzOTZlZTkxZmUxOTEyOTA3NTAyZjU0YzMzZTk4YWY3Y2ZhMTEwNjM4MzZkZmJjNzRhNzRkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.hWS9CirAKTpGROxQnygQwN_lMe5OzhDFziul4TVcxMU)
Please review the implementation and let me know if there are any changes or improvements you'd like to see!
Attached is my output and the expected output:
fixes #11