-
-
Notifications
You must be signed in to change notification settings - Fork 755
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: update the banner to promote London CFP on the website #1825
Conversation
✅ Deploy Preview for asyncapi-website ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
⚡️ Lighthouse report for the changes in this PR:
Lighthouse ran on https://deploy-preview-1825--asyncapi-website.netlify.app/ |
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.
made some suggestions
@@ -8,8 +8,8 @@ function shouldShowBanner() { | |||
const month = new Date().getUTCMonth(); |
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.
new function
function shouldShowBanner(cfpDeadline) {
const currentDate = new Date(); // Get the current date
const deadline = new Date(cfpDeadline); // Convert the cfpDeadline string to a Date object
// Check if the current date is after the deadline
if (currentDate > deadline) {
return false;
}
return true;
}
//month=4 is May | ||
if (year > 2023 || month !== 4) { | ||
//month=6 is June | ||
if (year > 2023 || month !== 6) { |
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.
then banner will not show it in July either
I suggested changes that make the code suggestions much easier to maintain and banner to be more accurate, precise to a month day and not month only
Co-authored-by: Lukasz Gornicki <lpgornicki@gmail.com>
Co-authored-by: Lukasz Gornicki <lpgornicki@gmail.com>
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.
❤️
/rtm |
PR with the update of the CFP banner with the London details.