Skip to content

Commit

Permalink
Merge branch 'master' into sgi-capp-at2/extension2890
Browse files Browse the repository at this point in the history
  • Loading branch information
quetzalliwrites authored May 9, 2024
2 parents 18397c3 + c432532 commit 906caa8
Show file tree
Hide file tree
Showing 4 changed files with 184 additions and 178 deletions.
126 changes: 56 additions & 70 deletions components/campaigns/AnnoucementHero.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,11 @@ function shouldShowBanner(cfpDeadline) {
}

export default function AnnouncementHero({ className = '', small = false, hideVideo = false }) {
//return null;


const [activeIndex, setActiveIndex] = useState(0);

const cfpDeadlineIndia = '2023-11-30T06:00:00Z'
const cfpDeadlineFrance = '2023-12-06T06:00:00Z'
const showBannerIndia = shouldShowBanner(cfpDeadlineIndia);
const showBannerFrance = shouldShowBanner(cfpDeadlineFrance);
const cfpDeadlineLondon = '2024-07-12T06:00:00Z';
const showBannerLondon = shouldShowBanner(cfpDeadlineLondon);

const Banner = ({ title, dateLocation, cfaText, eventName, cfpDeadline, link, city, activeBanner }) => {
return (
Expand Down Expand Up @@ -65,24 +62,14 @@ export default function AnnouncementHero({ className = '', small = false, hideVi

const banners = [
{
title: "AsyncAPI Conf",
city: "Bengaluru",
dateLocation: "30th of November, 2023 | Bengaluru, India",
cfaText: "Grab Free Tickets",
eventName: "AACoT'23 Bengaluru Edition",
cfpDeadline: cfpDeadlineIndia,
link: "https://conference.asyncapi.com/venue/bangalore",
show: showBannerIndia
},
{
title: "AsyncAPI Conf",
city: "Paris",
dateLocation: "8th of December, 2023 | Paris, France",
cfaText: "Get Free Tickets",
eventName: "AACoT'23 Paris Edition",
cfpDeadline: cfpDeadlineFrance,
link: "https://ticket.apidays.global/event/apidays-paris-2023/8a1f3904-e2be-4c69-a880-37d2ddf1027d/cart?coupon=ASYNCAPICONF23",
show: showBannerFrance
title: "AsyncAPI Conf on Tour'24",
city: "London",
dateLocation: "18 - 19 of September, 2024 | United Kingdom, London",
cfaText: "Apply To Speak",
eventName: "the end of Call for Speakers",
cfpDeadline: cfpDeadlineLondon,
link: "https://conference.asyncapi.com/venue/London",
show: showBannerLondon
}
];

Expand All @@ -109,50 +96,49 @@ export default function AnnouncementHero({ className = '', small = false, hideVi
};
}, [activeIndex]);

return ''
// return (
// <Container as="section" padding='' className={`text-center`}>
// <div className="relative flex flex-row justify-center items-center md:gap-4 overflow-x-hidden">
// <div className="h-8 w-8 rounded-full bg-primary-500 hover:bg-primary-600 cursor-pointer mb-2 absolute left-0 z-10 top-1/2 transform -translate-y-1/2 opacity-50 md:opacity-100 flex justify-center items-center" onClick={goToPrevious}>
// <ArrowLeft className='w-4 text-white' />
// </div>
// <div className='relative w-5/6 pr-3 flex flex-col gap-2 justify-center items-center'>
// <div className='relative w-full h-[18rem] lg:w-[38rem] lg:h-[17rem] overflow-hidden'>
// {banners.map((banner, index) => (
// banner.show && (
// <Banner
// key={index}
// title={banner.title}
// dateLocation={banner.dateLocation}
// cfaText={banner.cfaText}
// eventName={banner.eventName}
// cfpDeadline={banner.cfpDeadline}
// link={banner.link}
// city={banner.city}
// activeBanner={index === activeIndex % len}
// />
// )
// ))}
// </div>
// <div className="flex justify-center m-auto">
// {banners.map((banner, index) => (
// <div
// key={index}
// className={`h-2 w-2 rounded-full mx-1 cursor-pointer ${
// activeIndex % len === index ? 'bg-primary-500' : 'bg-gray-300'
// }`}
// onClick={() => goToIndex(index)}
// />
// ))}
// </div>
// </div>
// <div
// className="h-8 w-8 rounded-full bg-primary-500 hover:bg-primary-600 cursor-pointer mb-2 z-10 absolute right-0 top-1/2 transform -translate-y-1/2 opacity-50 md:opacity-100"
// onClick={goToNext}
// >
// <ArrowRight className='text-white' />
// </div>
// </div>
// </Container>
// );
return (
<Container as="section" padding='' className={`text-center`}>
<div className="relative flex flex-row justify-center items-center md:gap-4 overflow-x-hidden">
{numberOfVisibleBanners > 1 && <div className="h-8 w-8 rounded-full bg-primary-500 hover:bg-primary-600 cursor-pointer mb-2 absolute left-0 z-10 top-1/2 transform -translate-y-1/2 opacity-50 md:opacity-100 flex justify-center items-center" onClick={goToPrevious}>
<ArrowLeft className='w-4 text-white' />
</div>}
<div className='relative w-5/6 pr-3 flex flex-col gap-2 justify-center items-center'>
<div className='relative w-full h-[18rem] lg:w-[38rem] lg:h-[17rem] overflow-hidden'>
{banners.map((banner, index) => (
banner.show && (
<Banner
key={index}
title={banner.title}
dateLocation={banner.dateLocation}
cfaText={banner.cfaText}
eventName={banner.eventName}
cfpDeadline={banner.cfpDeadline}
link={banner.link}
city={banner.city}
activeBanner={index === activeIndex % len}
/>
)
))}
</div>
<div className="flex justify-center m-auto">
{banners.map((banner, index) => (
<div
key={index}
className={`h-2 w-2 rounded-full mx-1 cursor-pointer ${
activeIndex % len === index ? 'bg-primary-500' : 'bg-gray-300'
}`}
onClick={() => goToIndex(index)}
/>
))}
</div>
</div>
{numberOfVisibleBanners > 1 && <div
className="h-8 w-8 rounded-full bg-primary-500 hover:bg-primary-600 cursor-pointer mb-2 z-10 absolute right-0 top-1/2 transform -translate-y-1/2 opacity-50 md:opacity-100"
onClick={goToNext}
>
<ArrowRight className='text-white' />
</div>}
</div>
</Container>
);
}
28 changes: 28 additions & 0 deletions config/meetings.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,5 +192,33 @@
"url": "https://github.com/asyncapi/community/issues/1192",
"banner": "",
"date": "2024-05-09T14:00:00.000Z"
},
{
"title": "Maintainers Growth Working Group",
"calLink": "https://www.google.com/calendar/event?eid=ZG9tMTVxazhybm5vMnE2cHIxbG4wOHQ3djAgY19xOXRzZWlnbG9tZHNqNm5qdWh2YnB0czExY0Bn",
"url": "https://github.com/asyncapi/community/issues/1197",
"banner": "",
"date": "2024-05-08T14:00:00.000Z"
},
{
"title": "Essential Building Blocks Working Group",
"calLink": "https://www.google.com/calendar/event?eid=ZzQ4aDFsbnZpaXBmZ2h2amdrdWpxZXZrYmcgY19xOXRzZWlnbG9tZHNqNm5qdWh2YnB0czExY0Bn",
"url": "https://github.com/asyncapi/community/issues/1200",
"banner": "",
"date": "2024-05-14T18:00:00.000Z"
},
{
"title": "Community Meeting",
"calLink": "https://www.google.com/calendar/event?eid=bG5pdGoxcWZjc3VxMnJib2p2ZXZpYW8xM3MgY19xOXRzZWlnbG9tZHNqNm5qdWh2YnB0czExY0Bn",
"url": "https://github.com/asyncapi/community/issues/1201",
"banner": "https://github.com/asyncapi/community/assets/40604284/0b128389-fad9-4342-bbc6-4e5624327374",
"date": "2024-05-14T08:00:00.000Z"
},
{
"title": "Community Meeting",
"calLink": "https://www.google.com/calendar/event?eid=OWZwaWlyOWJ0dmExcDJ0c2llaXZiMXA3M3MgY19xOXRzZWlnbG9tZHNqNm5qdWh2YnB0czExY0Bn",
"url": "https://github.com/asyncapi/community/issues/1202",
"banner": "https://github.com/asyncapi/community/assets/40604284/be6af5ec-9697-4ba4-a70b-4b9dd2c54c78",
"date": "2024-05-28T16:00:00.000Z"
}
]
129 changes: 58 additions & 71 deletions dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,7 @@
"color": "0E8A16"
}
],
"score": 103.67002653848242
},
{
"id": "PR_kwDOFLhIt85q-42Y",
"isPR": true,
"isAssigned": true,
"title": "feat: initial infra for slack intergration",
"author": "Shurtu-gal",
"resourcePath": "/asyncapi/community/pull/1131",
"repo": "asyncapi/community",
"labels": [],
"score": 26.707236753681066
"score": 103.95720112723167
},
{
"id": "PR_kwDOFLhIt85js7KX",
Expand Down Expand Up @@ -84,22 +73,6 @@
"labels": [],
"score": 17.804824502454043
},
{
"id": "I_kwDOCVQpZM5M_dcV",
"isPR": false,
"isAssigned": true,
"title": "DocsUI: Messages Object output",
"author": "mcturco",
"resourcePath": "/asyncapi/asyncapi-react/issues/618",
"repo": "asyncapi/asyncapi-react",
"labels": [
{
"name": "stale",
"color": "ededed"
}
],
"score": 16.943300736206268
},
{
"id": "PR_kwDODou01c5YJ7kV",
"isPR": true,
Expand Down Expand Up @@ -159,15 +132,59 @@
"score": 14.933078614961456
},
{
"id": "PR_kwDOFLhIt85rY7Lw",
"isPR": true,
"id": "I_kwDOFi_gUM5hpuWl",
"isPR": false,
"isAssigned": true,
"title": "feat: add Maintainers Growth Working Group",
"title": "Improve kafka adapter",
"author": "KhudaDad414",
"resourcePath": "/asyncapi/glee/issues/411",
"repo": "asyncapi/glee",
"labels": [
{
"name": "enhancement",
"color": "a2eeef"
},
{
"name": "good first issue",
"color": "7057ff"
},
{
"name": "area/typescript",
"color": "007acc"
}
],
"score": 13.78438025996442
},
{
"id": "I_kwDODou01c5BZZv-",
"isPR": false,
"isAssigned": false,
"title": "Open Graph link preview image according to the document to open",
"author": "smoya",
"resourcePath": "/asyncapi/community/pull/1143",
"resourcePath": "/asyncapi/studio/issues/224",
"repo": "asyncapi/studio",
"labels": [
{
"name": "enhancement",
"color": "a2eeef"
},
{
"name": "keep-open",
"color": "f9dd4b"
}
],
"score": 13.703040335770691
},
{
"id": "I_kwDOFLhIt85bebeO",
"isPR": false,
"isAssigned": false,
"title": "Meeting Banners Storage",
"author": "AceTheCreator",
"resourcePath": "/asyncapi/community/issues/568",
"repo": "asyncapi/community",
"labels": [],
"score": 14.07155484871368
"score": 13.497205671215161
}
],
"goodFirstIssues": [
Expand Down Expand Up @@ -239,21 +256,6 @@
}
]
},
{
"id": "I_kwDOE8Qh385_rNaC",
"title": "Create a one for all input document for runtime to test all functionality",
"isAssigned": false,
"resourcePath": "/asyncapi/modelina/issues/1825",
"repo": "asyncapi/modelina",
"author": "jonaslagoni",
"area": "Unknown",
"labels": [
{
"name": "enhancement",
"color": "a2eeef"
}
]
},
{
"id": "I_kwDOE8Qh385-gvCP",
"title": "Add \"generated-code\" XmlDoc and `[GeneratedCode]` attribute to C# models.",
Expand Down Expand Up @@ -601,10 +603,6 @@
{
"name": "enhancement",
"color": "a2eeef"
},
{
"name": "stale",
"color": "ededed"
}
]
},
Expand Down Expand Up @@ -636,6 +634,10 @@
"name": "enhancement",
"color": "a2eeef"
},
{
"name": "stale",
"color": "ededed"
},
{
"name": "Kotlin generator",
"color": "61A95C"
Expand All @@ -655,6 +657,10 @@
"name": "enhancement",
"color": "a2eeef"
},
{
"name": "stale",
"color": "ededed"
},
{
"name": "Kotlin generator",
"color": "61A95C"
Expand Down Expand Up @@ -771,25 +777,6 @@
}
]
},
{
"id": "I_kwDOBW5R_c5IRxcq",
"title": "[📑 Docs]: update docs issues in ALL repos that are missing the `area/docs` label ",
"isAssigned": true,
"resourcePath": "/asyncapi/website/issues/682",
"repo": "asyncapi/website",
"author": "alequetzalli",
"area": "docs",
"labels": [
{
"name": "stale",
"color": "ededed"
},
{
"name": "📑 docs",
"color": "E50E99"
}
]
},
{
"id": "I_kwDOBW5R_c48lGJg",
"title": "Add visual on the \"generator\" and maybe others....",
Expand Down
Loading

0 comments on commit 906caa8

Please sign in to comment.