Skip to content
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

Closed
wants to merge 14 commits into from
Closed

Landing page #114

wants to merge 14 commits into from

Conversation

aimun-naharr
Copy link
Collaborator

ReactPlay presents HACK-R-PLAY

@netlify
Copy link

netlify bot commented Jan 24, 2023

Deploy Preview for activities-reactplay ready!

Name Link
🔨 Latest commit 9f7a286
🔍 Latest deploy log https://app.netlify.com/sites/activities-reactplay/deploys/63cfdd0ed373c6000892056c
😎 Deploy Preview https://deploy-preview-114--activities-reactplay.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@aimun-naharr aimun-naharr changed the base branch from main to 2-plays-a-month January 24, 2023 08:20
@atapas
Copy link
Member

atapas commented Jan 24, 2023

Thanks @aimunhidden485 for putting it together!

  • This header shouldn't be shown when we are on the landing page

image. Remove that header.

  • Have you tested this section with other cards?
    image

Copy link
Member

@atapas atapas left a 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(() => {
Copy link
Member

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={
Copy link
Member

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?'
}
Copy link
Member

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

pages/index.js Outdated Show resolved Hide resolved
@@ -0,0 +1,15 @@
import React from 'react';

const Banner = ({recentEvent}) => {
Copy link
Member

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)

@aimun-naharr
Copy link
Collaborator Author

Thanks @aimunhidden485 for putting it together!

  • This header shouldn't be shown when we are on the landing page

image. Remove that header.

  • Have you tested this section with other cards?
    image

yeah if I add more objects it would look like this
image

Base automatically changed from 2-plays-a-month to main January 26, 2023 08:21
@atapas
Copy link
Member

atapas commented Feb 10, 2023

Hello @aimunhidden485 Can you please make this one ready with resolving merge conflicts?

@atapas atapas linked an issue Feb 10, 2023 that may be closed by this pull request
@aimun-naharr
Copy link
Collaborator Author

Hello @aimunhidden485 Can you please make this one ready with resolving merge conflicts?

okay I'm trying

@aimun-naharr
Copy link
Collaborator Author

@atapas
Initiatives by ReactPlay

@atapas
Copy link
Member

atapas commented Feb 18, 2023

Closing this one as there is another PR raised by @aimunhidden485

@atapas atapas closed this Feb 18, 2023
@atapas atapas deleted the landing-page branch February 18, 2023 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The Hustle Home page
3 participants