|
1 | 1 | import Footer from "@/components/Footer"; |
| 2 | +import Header from "@/components/header"; |
| 3 | +import Card from "@/components/HomePage/Events_Cards/card"; |
2 | 4 | import Navbar from "@/components/Navbar"; |
3 | 5 | import ScrollToTop from "@/components/ScrollToTop"; |
4 | | -import Image from "next/image"; |
5 | | -import Link from "next/link"; |
6 | 6 | import { useState } from "react"; |
7 | | -import about from "../../../public/about.png"; |
8 | | -import blog from "../../../public/blog.jpg"; |
9 | | -import coffee from "../../../public/coffee.jpg"; |
10 | | -import quiz from "../../../public/quiz.jpg"; |
11 | | -import spaces from "../../../public/spaces.jpg"; |
12 | | -import tech from "../../../public/tech-events.jpg"; |
| 7 | +import EventData from "../../components/content/events"; |
13 | 8 |
|
14 | 9 | const Events = () => { |
15 | 10 | const [searchInput, setSearchInput] = useState(""); |
16 | 11 |
|
17 | | - const eventsData = [ |
18 | | - { |
19 | | - name: "Webinars", |
20 | | - description: |
21 | | - "Webinars are highly valuable resources for individuals interested in technology and software development. We conduct webinars at regular intervals for individuals looking to enhance their technical skills.", |
22 | | - image: tech, |
23 | | - link: "/events/tech", |
24 | | - }, |
25 | | - { |
26 | | - name: "Blog-a-thons", |
27 | | - description: |
28 | | - "Participate in our thrilling Blog-a-thon event, where passionate writers and tech enthusiasts come together to showcase their expertise and share their insights on trending tech topics.", |
29 | | - image: blog, |
30 | | - link: "/events/blogathon", |
31 | | - }, |
32 | | - { |
33 | | - name: "Quiz Nights", |
34 | | - description: |
35 | | - "Participate in our thrilling Blog-a-thon event, where passionate writers and tech enthusiasts come together to showcase their expertise and share their insights on trending tech topics.", |
36 | | - image: quiz, |
37 | | - link: "/events/quiz", |
38 | | - }, |
39 | | - { |
40 | | - name: "Coffee Chats", |
41 | | - description: |
42 | | - "Unwind and engage in meaningful conversations with our Coffee Chats, where you can connect with fellow tech enthusiasts in a relaxed and informal setting.", |
43 | | - image: coffee, |
44 | | - link: "/events/coffee", |
45 | | - }, |
46 | | - { |
47 | | - name: "Twitter Spaces", |
48 | | - description: |
49 | | - "Unwind and engage in meaningful conversations with our Coffee Chats, where you can connect with fellow tech enthusiasts in a relaxed and informal setting.", |
50 | | - image: spaces, |
51 | | - link: "/events/spaces", |
52 | | - }, |
53 | | - ]; |
54 | | - const [EventsData,] = useState(eventsData); |
55 | | - const FilteredData = EventsData.filter((event) => |
56 | | - event.name.toLowerCase().includes(searchInput.toLowerCase()) |
| 12 | + |
| 13 | + const [Data,] = useState(EventData); |
| 14 | + const FilteredData = Data.filter((event) => |
| 15 | + event.title.toLowerCase().includes(searchInput.toLowerCase()) |
57 | 16 | ); |
58 | 17 |
|
59 | 18 | return ( |
60 | 19 | <> |
61 | 20 | <Navbar /> |
62 | | - <div style={{ marginTop: 100, color: 'white', alignItems: 'center' }}> |
63 | | - <h1 className="text-5xl font-bold text-center text-blue-500">Welcome to the DevsInTech Community Events Page!</h1> |
64 | | - <div className='w-[100%] flex flex-wrap mx-auto justify-center items-center mt-26 py-8 mb-5 max-w-screen-2xl format-card'> |
65 | | - <div className="md:w-2/3 ml-5" data-aos="fade-left" data-aos-duration="500"> |
66 | | - <p className="team-description font-bold text-2xl text-center"> |
67 | | - At DevsInTech, we believe in fostering a vibrant and inclusive community of tech enthusiasts, developers, and industry professionals. Our events are designed to bring together like-minded individuals to learn, share knowledge, and network.<br></br> Join our community to stay updated on the latest tech trends, expand your skillset, and connect with fellow developers. |
68 | | - </p> |
69 | | - </div> |
70 | | - </div> |
71 | | - </div> |
72 | | - |
73 | | - <div |
74 | | - className="book-formats-container" |
75 | | - style={{ marginTop: 100, color: "white" }} |
76 | | - > |
77 | | - <div className="w-11/12 flex flex-wrap mx-auto justify-center items-center mt-26 py-8 mb-5 max-w-screen-2xl format-card"> |
78 | | - <div className="" data-aos="fade-right" data-aos-duration="500"> |
79 | | - <Image |
80 | | - src={about} |
81 | | - className="team-member-image rounded-lg" |
82 | | - alt="team" |
83 | | - /> |
84 | | - </div> |
85 | | - <div |
86 | | - className="md:w-1/2 ml-5 items-center text-center" |
87 | | - data-aos="fade-left" |
88 | | - data-aos-duration="500" |
89 | | - > |
90 | | - <h1 className="text-5xl mb-7 font-bold text-blue-500">Features</h1> |
91 | | - <ul className="team-description text-left ml-3 text-3xl"> |
92 | | - <li className="mb-5">Networking Opportunities</li> |
93 | | - <li className="mb-5">Learning from Industry Experts</li> |
94 | | - <li className="mb-5">Collaboration and Partnership <span className="ml-10">Opportunities</span> </li> |
95 | | - <li className="mb-5">Stay Up-to-Date with the Latest Tech Trends</li> |
96 | | - <li className="mb-5">Expand Your Knowledge and Skillset</li> |
97 | | - </ul> |
98 | | - </div> |
99 | | - </div> |
100 | | - </div> |
101 | | - |
102 | | - <h1 className="text-6xl font-bold text-center text-blue-500 mt-10 py-4"> |
103 | | - Explore our Events! |
104 | | - </h1> |
| 21 | + <Header name="Explore our events" /> |
105 | 22 | <form> |
106 | 23 | <label |
107 | 24 | htmlFor="default-search" |
@@ -148,49 +65,12 @@ const Events = () => { |
148 | 65 |
|
149 | 66 | <div className="grid md:grid-cols-2 my-10 lg:grid-cols-3 gap-6 max-w-xs md:max-w-full m-auto"> |
150 | 67 | {FilteredData.map((event, index) => ( |
151 | | - <div |
| 68 | + <Card |
152 | 69 | key={index} |
153 | | - className="max-w-sm border border-gray-200 rounded-lg shadow dark:bg-gray-800 dark:border-gray-700" |
154 | | - > |
155 | | - <Link href={event.link}> |
156 | | - <Image |
157 | | - className="rounded-t-lg" |
158 | | - src={event.image} |
159 | | - alt="" |
160 | | - height={4000} |
161 | | - width={6000} |
162 | | - /> |
163 | | - </Link> |
164 | | - <div className="p-5"> |
165 | | - <Link href={event.link}> |
166 | | - <h5 className="mb-2 text-2xl font-bold tracking-tight text-white text-center"> |
167 | | - {event.name} |
168 | | - </h5> |
169 | | - </Link> |
170 | | - <p className="mb-5 font-medium text-gray-400 text-lg text-justify"> |
171 | | - {event.description} |
172 | | - </p> |
173 | | - <Link |
174 | | - href={event.link} |
175 | | - className="relative w-max items-center py-3 px-7 font-medium transition-all duration-75 group flex flex-row gap-1 bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 outline-none text-white" |
176 | | - > |
177 | | - Explore... |
178 | | - <svg |
179 | | - aria-hidden="true" |
180 | | - className="w-4 h-4 ml-2 -mr-1" |
181 | | - fill="currentColor" |
182 | | - viewBox="0 0 20 20" |
183 | | - xmlns="http://www.w3.org/2000/svg" |
184 | | - > |
185 | | - <path |
186 | | - fillRule="evenodd" |
187 | | - d="M10.293 3.293a1 1 0 011.414 0l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-4.293-4.293a1 1 0 010-1.414z" |
188 | | - clipRule="evenodd" |
189 | | - /> |
190 | | - </svg> |
191 | | - </Link> |
192 | | - </div> |
193 | | - </div> |
| 70 | + text={event.text} |
| 71 | + img={event.img} |
| 72 | + title={event.title} |
| 73 | + /> |
194 | 74 | ))} |
195 | 75 | </div> |
196 | 76 |
|
|
0 commit comments