|
| 1 | +import Link from 'next/link'; |
| 2 | +import React from 'react'; |
| 3 | +import type { EventData } from '../../types/index'; |
| 4 | +import DisplayRC from './DisplayRC'; |
| 5 | + |
| 6 | +const events: EventData[] = [ |
| 7 | + { |
| 8 | + id: 1, |
| 9 | + title: 'Physical Meetups', |
| 10 | + description: 'Physical meetups where we share, learn and network.', |
| 11 | + image_url: '/images/physical_meetup.jpg', |
| 12 | + target: |
| 13 | + 'https://kommunity.com/reactjs-developer-community-kenya-reactdevske/events', |
| 14 | + }, |
| 15 | + { |
| 16 | + id: 2, |
| 17 | + title: 'Weekly Online Standups', |
| 18 | + description: |
| 19 | + 'Weekly open calls in the community’s Telegram group discussing industry-related topics.', |
| 20 | + image_url: '/images/weekly_standups.png', |
| 21 | + target: 'https://bit.ly/joinreactdevske', |
| 22 | + }, |
| 23 | + { |
| 24 | + id: 3, |
| 25 | + title: 'Community Power Sessions', |
| 26 | + description: |
| 27 | + 'Community members meet and share technical concepts with other members of the community.', |
| 28 | + image_url: '/images/community_sessions.png', |
| 29 | + target: 'https://www.youtube.com/channel/UC9_eVcPBk4T-DcZLHpQfy4w/videos', |
| 30 | + }, |
| 31 | + { |
| 32 | + id: 4, |
| 33 | + title: 'Joint Meetups', |
| 34 | + description: 'Meetups hosted in collaboration with other tech communities.', |
| 35 | + image_url: 'https://bit.ly/placeholder-img', |
| 36 | + target: |
| 37 | + 'https://kommunity.com/reactjs-developer-community-kenya-reactdevske/events', |
| 38 | + }, |
| 39 | + { |
| 40 | + id: 5, |
| 41 | + title: 'Monthly Online Standups', |
| 42 | + description: |
| 43 | + 'Monthly open calls on Google Meet bringing together people from different communities.', |
| 44 | + image_url: '/images/physical_meetup.jpg', |
| 45 | + target: |
| 46 | + 'https://kommunity.com/reactjs-developer-community-kenya-reactdevske/events', |
| 47 | + }, |
| 48 | + { |
| 49 | + id: 6, |
| 50 | + title: 'Community Challenges', |
| 51 | + description: |
| 52 | + 'We organize open source challenges to keep the community engaged.', |
| 53 | + image_url: '/images/physical_meetup.jpg', |
| 54 | + target: 'https://github.com/reactdeveloperske/community-coding-challenges', |
| 55 | + }, |
| 56 | +]; |
| 57 | + |
| 58 | +export default function Events() { |
| 59 | + return ( |
| 60 | + <section |
| 61 | + id="events" |
| 62 | + className="relative flex flex-col items-center justify-center w-full py-16 bg-white md:py-20 gap-y-2 md:gap-y-5" |
| 63 | + > |
| 64 | + <p className="flex items-center justify-center font-light tracking-wide"> |
| 65 | + Events |
| 66 | + </p> |
| 67 | + <h2 className="pb-2 text-2xl font-bold md:pb-10">Community Events</h2> |
| 68 | + <div className="grid grid-cols-1 gap-y-4 md:gap-y-10 gap-x-6 sm:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4 xl:gap-x-8 md:grid-cols-2 bg-[#09AFC6] px-4 md:px-10 lg:px-16 py-8 md:py-14 xl:py-16"> |
| 69 | + {events.map((event) => ( |
| 70 | + <DisplayRC |
| 71 | + key={event.id} |
| 72 | + id={event.id} |
| 73 | + title={event.title} |
| 74 | + image_url={event.image_url} |
| 75 | + description={event.description} |
| 76 | + target={event.target} |
| 77 | + /> |
| 78 | + ))} |
| 79 | + |
| 80 | + <div className="flex items-center justify-center pt-1 tracking-wide text-white md:pt-0 md:text-right md:absolute md:bottom-24 md:right-10 2xl:bottom-36 lg:right-16 hover:tracking-widest hover:transition-all hover:duration-500 hover:underline"> |
| 81 | + <Link href="https://kommunity.com/reactjs-developer-community-kenya-reactdevske/events"> |
| 82 | + <a target="_blank">See More</a> |
| 83 | + </Link> |
| 84 | + </div> |
| 85 | + </div> |
| 86 | + </section> |
| 87 | + ); |
| 88 | +} |
0 commit comments