-
-
Notifications
You must be signed in to change notification settings - Fork 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
Landing page #114
Landing page #114
Conversation
aimun-naharr
commented
Jan 24, 2023
✅ Deploy Preview for activities-reactplay ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
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.
@aimunhidden485 Some review comments
pages/index.js
Outdated
useEffect(() => { | ||
router.push('/hackrplay/2022/home'); | ||
}, []); | ||
// useEffect(() => { |
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.
Remove the commented code
pages/index.js
Outdated
// useEffect(() => { | ||
// router.push('/hackrplay/2022/home'); | ||
// }, []); | ||
const recentEvent={ |
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.
Instead of two objects, have one array with all the events. Each of the event object should have name, description, image, link, isInProgress properties. If isInProgress true, then it is current, else false.
pages/index.js
Outdated
const recentEvent={ | ||
name: '#2PlaysAMonth', | ||
description: 'Lorem ipsum dolor sit amet consectetur adipisicing elit. Corporis, debitis?' | ||
} |
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.
We will get this array of event objects from DB in the future. For now, you can hardcode
components/Banner.js
Outdated
@@ -0,0 +1,15 @@ | |||
import React from 'react'; | |||
|
|||
const Banner = ({recentEvent}) => { |
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.
Change the name to CurrentInitiatives(even the file name)
Hello @aimunhidden485 Can you please make this one ready with resolving merge conflicts? |
okay I'm trying |
Closing this one as there is another PR raised by @aimunhidden485 |