Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 29 additions & 13 deletions src/components/UpcomingEventCard/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,43 +8,59 @@ import "swiper/css/bundle";
import Button from "../../reusecore/Button";
import slugify from "../../utils/slugify";


const UpcomingEvents = ({ data }) => {
return (
<UpcomingEventsWrapper>
<div className="blog-slider swiper">
<div style={{
display: "block"
}} className="blog-slider__wrp swiper-wrapper"
<div
style={{
display: "block",
}}
className="blog-slider__wrp swiper-wrapper"
>

<Swiper
spaceBetween={50}
slidesPerView={1}
modules={[Mousewheel, Pagination]}
pagination={{ clickable: true }}
>
{data.nodes.map(item => {
{data.nodes.map((item) => {
return (
<SwiperSlide key={item.id}>
<div className="blog-slider_item swiper-slide">
<div className="blog-slider_img">
<Link to={`/community/events/${slugify(item.frontmatter.title)}`}>
<Image {...item.frontmatter.thumbnail} alt={item.frontmatter.title} />
<Link
to={`/community/events/${slugify(item.frontmatter.title)}`}
>
<Image
{...item.frontmatter.thumbnail}
alt={item.frontmatter.title}
/>
</Link>
</div>
<div className="blog-slider_content">
<h3 className="blog-slider_title">{item.frontmatter.title}</h3>
<p className="blog-slider_date">{item.frontmatter.date}</p>
<p className="blog-slider_description">{item.frontmatter.abstract}</p>
<Button $secondary className="blog-slider_button" $url={item.frontmatter.eurl} title="Join Now" $external={true} />
<h3 className="blog-slider_title">
{item.frontmatter.title}
</h3>
<p className="blog-slider_date">
{item.frontmatter.date}
</p>
<p className="blog-slider_description">
{item.frontmatter.abstract}
</p>
<Button
$secondary
className="blog-slider_button"
url={item.frontmatter.eurl}
title="Join Now"
$external={true}
/>
</div>
</div>
</SwiperSlide>
);
})}
</Swiper>

</div>
</div>
</UpcomingEventsWrapper>
Expand Down
Loading