File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed
src/components/UpcomingEventCard Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -21,9 +21,20 @@ const UpcomingEventsWrapper = styled.div`
2121 .blog-slider_img{
2222 max-height: 25rem;
2323 object-fit: cover;
24+ display: flex;
25+ align-items: center;
26+ justify-content: center;
27+ overflow: hidden;
2428 .gatsby-image-wrapper {
29+ width: 100%;
30+ height: 100%;
31+ display: flex;
32+ align-items: center;
33+ justify-content: center;
2534 img {
2635 max-height: 25rem;
36+ object-fit: cover !important;
37+ width: 100%;
2738 }
2839 }
2940 }
@@ -111,4 +122,4 @@ const UpcomingEventsWrapper = styled.div`
111122 }
112123` ;
113124
114- export default UpcomingEventsWrapper ;
125+ export default UpcomingEventsWrapper ;
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ const UpcomingEvents = ({ data }) => {
3737 < h3 className = "blog-slider_title" > { item . frontmatter . title } </ h3 >
3838 < p className = "blog-slider_date" > { item . frontmatter . date } </ p >
3939 < p className = "blog-slider_description" > { item . frontmatter . abstract } </ p >
40- < Button $secondary className = "blog-slider_button" $url = { item . frontmatter . eurl } title = "Join Now" $external = { true } />
40+ < Button $secondary className = "blog-slider_button" $url = { item . frontmatter . eurl || `/community/events/ ${ slugify ( item . frontmatter . title ) } ` } title = "Join Now" $external = { ! ! item . frontmatter . eurl } />
4141 </ div >
4242 </ div >
4343 </ SwiperSlide >
@@ -51,4 +51,4 @@ const UpcomingEvents = ({ data }) => {
5151 ) ;
5252} ;
5353
54- export default UpcomingEvents ;
54+ export default UpcomingEvents ;
You can’t perform that action at this time.
0 commit comments