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: update the banner to promote London CFP on the website #1825

Merged
merged 5 commits into from
Jun 22, 2023

Conversation

thulieblack
Copy link
Member

PR with the update of the CFP banner with the London details.

@netlify
Copy link

netlify bot commented Jun 22, 2023

Deploy Preview for asyncapi-website ready!

Name Link
🔨 Latest commit 39f1fa1
🔍 Latest deploy log https://app.netlify.com/sites/asyncapi-website/deploys/64945d823ba8650008225234
😎 Deploy Preview https://deploy-preview-1825--asyncapi-website.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.

@github-actions
Copy link

github-actions bot commented Jun 22, 2023

⚡️ Lighthouse report for the changes in this PR:

Category Score
🔴 Performance 47
🟢 Accessibility 98
🟢 Best practices 100
🟢 SEO 100
🔴 PWA 30

Lighthouse ran on https://deploy-preview-1825--asyncapi-website.netlify.app/

Copy link
Member

@derberg derberg left a comment

Choose a reason for hiding this comment

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

made some suggestions

components/campaigns/AnnoucementHero.js Outdated Show resolved Hide resolved
components/campaigns/AnnoucementHero.js Outdated Show resolved Hide resolved
@@ -8,8 +8,8 @@ function shouldShowBanner() {
const month = new Date().getUTCMonth();
Copy link
Member

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

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

thulieblack and others added 4 commits June 22, 2023 16:34
Co-authored-by: Lukasz Gornicki <lpgornicki@gmail.com>
Co-authored-by: Lukasz Gornicki <lpgornicki@gmail.com>
Copy link
Member

@derberg derberg left a comment

Choose a reason for hiding this comment

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

❤️

@derberg derberg changed the title chore: update the banner to promote CFP on the website feat: update the banner to promote London CFP on the website Jun 22, 2023
@derberg
Copy link
Member

derberg commented Jun 22, 2023

/rtm

@asyncapi-bot asyncapi-bot merged commit 70d0a02 into master Jun 22, 2023
@asyncapi-bot asyncapi-bot deleted the thulieblack-patch-1 branch June 22, 2023 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants