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

feat: create application call-to-action #24

Merged
merged 9 commits into from
Dec 22, 2022
Merged

Conversation

mxmason
Copy link
Collaborator

@mxmason mxmason commented Dec 22, 2022

Summary

This PR adds a component that tracks whether or not applications are open, based on the date of the build and the date of the expected cohort kickoff.

Screenshots

"Open" view:
apply_open
"Closed" view:
apply_closed

Related issues

Closes #20

@mxmason mxmason requested a review from segdeha December 22, 2022 00:29
@mxmason mxmason self-assigned this Dec 22, 2022
@netlify
Copy link

netlify bot commented Dec 22, 2022

Deploy Preview for the-collab-lab ready!

Name Link
🔨 Latest commit 18c1a96
🔍 Latest deploy log https://app.netlify.com/sites/the-collab-lab/deploys/63a3abb8b65fcd00089e63cb
😎 Deploy Preview https://deploy-preview-24--the-collab-lab.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.

Comment on lines 9 to 16
// The application window is open for 1 week,
// starting 2 weeks before the cohort kickoff
// and ending 1 week before the cohort kickoff
// (we're using 15 days to accout for Christmas this quarter)
const [windowStart, windowEnd] = [
addDays(cohortKickoffDate, -15),
addDays(cohortKickoffDate, -7),
];
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@segdeha Is this general logic (and my exception for christmas) correct? If we can't rely on "Kickoff minus 2 weeks" we could have the component accept a kickoff date and a tuple to indicate the application window

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I'd prefer to explicitly pass in dates for the start and end of the application window. That way, we can more easily work around things like holidays without potentially having to change the component.

Comment on lines +63 to +71
.c-button {
appearance: button;
background-color: var(--color-black-light);
border: 1px solid var(--color-black-light);
border-radius: 4px;
color: var(--color-blue-mid);
padding: 0.5rem 1.6rem;
text-decoration: none;
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 Not attached to a button-like appearance for "apply now", by any means; we can go with large text as well

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like it! Makes it clear the user it taking an action.

Copy link
Member

@segdeha segdeha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for pulling this together so quickly! I commented in place that I think I prefer to pass in explicit start and end dates for the application window. That probably means also passing in a 3rd prop for the start of the cohort so none of the dates are dependent on each other. Thanks!

Comment on lines 9 to 16
// The application window is open for 1 week,
// starting 2 weeks before the cohort kickoff
// and ending 1 week before the cohort kickoff
// (we're using 15 days to accout for Christmas this quarter)
const [windowStart, windowEnd] = [
addDays(cohortKickoffDate, -15),
addDays(cohortKickoffDate, -7),
];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I'd prefer to explicitly pass in dates for the start and end of the application window. That way, we can more easily work around things like holidays without potentially having to change the component.

<p class="u-text-small">
💡 Want a reminder of our next application window?
<a
href="/ics/Q1-2023-Application-Window.ics"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Beyond the scope of this PR, but I'd love it if we can dynamically generate this .ics file in the future!

Comment on lines +63 to +71
.c-button {
appearance: button;
background-color: var(--color-black-light);
border: 1px solid var(--color-black-light);
border-radius: 4px;
color: var(--color-blue-mid);
padding: 0.5rem 1.6rem;
text-decoration: none;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like it! Makes it clear the user it taking an action.

@mxmason mxmason requested a review from segdeha December 22, 2022 00:58
Copy link
Member

@segdeha segdeha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@mxmason mxmason merged commit 98109e5 into main Dec 22, 2022
@mxmason mxmason deleted the feat/application-cta-logic branch September 2, 2023 04:22
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.

Application open/closed component
2 participants