From b4e99959479d5f1bccf743d97da9ca49b3dc9a1d Mon Sep 17 00:00:00 2001 From: Saransh Jain Date: Sun, 13 Oct 2024 11:23:59 +0530 Subject: [PATCH 01/14] basic events page --- src/app/events/page.js | 86 ++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 83 insertions(+), 3 deletions(-) diff --git a/src/app/events/page.js b/src/app/events/page.js index ff7cb8b..5d43830 100644 --- a/src/app/events/page.js +++ b/src/app/events/page.js @@ -1,4 +1,84 @@ +import React from 'react'; +import Link from 'next/link'; + +// EventCard component +const EventCard = ({ event }) => { + return ( +
+ {event.name} +
+

{event.name}

+

{event.shortDesc}

+ + Get More Info! + +
+
+ ); +}; + +// EventsSection component +const EventsSection = ({ events }) => { + return ( +
+
+

Events

+
+ {events.map((event, index) => ( + + ))} +
+
+
+ ); +}; + +// Mock data for events +const eventsData = [ + { + name: "Gen AI Study Jams", + poster: "https://via.placeholder.com/400x200.png?text=Gen+AI+Study+Jams", + shortDesc: "An event about AI that explores the latest developments in generative AI technologies.", + communityLink: "https://community.dev/genai-study-jams" + }, + { + name: "Web Dev Workshop", + poster: "https://via.placeholder.com/400x200.png?text=Web+Dev+Workshop", + shortDesc: "Hands-on workshop covering modern web development techniques and best practices.", + communityLink: "https://community.dev/web-dev-workshop" + }, + // Add more events as needed +]; + +// Main EventsPage component export default function EventsPage() { - return

GDG Events

; -} -// THIS PAGE SHOULD BE DEPRECATED + return ( +
+
+
+

GDG Events

+ +
+
+
+ +
+
+
+

© 2024 GDG Events. All rights reserved.

+
+
+
+ ); +} \ No newline at end of file From ffa0db810d254c9478d4f5acf0e7b92180db81a5 Mon Sep 17 00:00:00 2001 From: Saransh Jain Date: Sun, 13 Oct 2024 12:33:08 +0530 Subject: [PATCH 02/14] events page design --- package-lock.json | 15 +++++++++++++++ src/app/events/page.js | 24 ++++++++++++++++++++++++ 2 files changed, 39 insertions(+) diff --git a/package-lock.json b/package-lock.json index 1e828ce..a2d7eff 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5786,6 +5786,21 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/typescript": { + "version": "5.6.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.3.tgz", + "integrity": "sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==", + "dev": true, + "license": "Apache-2.0", + "peer": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, "node_modules/unbox-primitive": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", diff --git a/src/app/events/page.js b/src/app/events/page.js index 5d43830..8ae9f96 100644 --- a/src/app/events/page.js +++ b/src/app/events/page.js @@ -44,6 +44,30 @@ const EventsSection = ({ events }) => { // Mock data for events const eventsData = [ + { + name: "Gen AI Study Jams", + poster: "https://via.placeholder.com/400x200.png?text=Gen+AI+Study+Jams", + shortDesc: "An event about AI that explores the latest developments in generative AI technologies.", + communityLink: "https://community.dev/genai-study-jams" + }, + { + name: "Web Dev Workshop", + poster: "https://via.placeholder.com/400x200.png?text=Web+Dev+Workshop", + shortDesc: "Hands-on workshop covering modern web development techniques and best practices.", + communityLink: "https://community.dev/web-dev-workshop" + }, + { + name: "Gen AI Study Jams", + poster: "https://via.placeholder.com/400x200.png?text=Gen+AI+Study+Jams", + shortDesc: "An event about AI that explores the latest developments in generative AI technologies.", + communityLink: "https://community.dev/genai-study-jams" + }, + { + name: "Web Dev Workshop", + poster: "https://via.placeholder.com/400x200.png?text=Web+Dev+Workshop", + shortDesc: "Hands-on workshop covering modern web development techniques and best practices.", + communityLink: "https://community.dev/web-dev-workshop" + }, { name: "Gen AI Study Jams", poster: "https://via.placeholder.com/400x200.png?text=Gen+AI+Study+Jams", From f622cd0df363aab72824590c663a01dbc8269684 Mon Sep 17 00:00:00 2001 From: Saransh Jain Date: Sun, 13 Oct 2024 12:47:17 +0530 Subject: [PATCH 03/14] preety and linted code --- src/app/events/page.js | 58 +++++++++++++++++++++++++----------------- 1 file changed, 34 insertions(+), 24 deletions(-) diff --git a/src/app/events/page.js b/src/app/events/page.js index 8ae9f96..1a031b2 100644 --- a/src/app/events/page.js +++ b/src/app/events/page.js @@ -1,22 +1,22 @@ -import React from 'react'; -import Link from 'next/link'; +import React from "react"; +import Link from "next/link"; // EventCard component const EventCard = ({ event }) => { return (
- {event.name}

{event.name}

{event.shortDesc}

- Get More Info! @@ -31,7 +31,9 @@ const EventsSection = ({ events }) => { return (
-

Events

+

+ Events +

{events.map((event, index) => ( @@ -47,38 +49,44 @@ const eventsData = [ { name: "Gen AI Study Jams", poster: "https://via.placeholder.com/400x200.png?text=Gen+AI+Study+Jams", - shortDesc: "An event about AI that explores the latest developments in generative AI technologies.", - communityLink: "https://community.dev/genai-study-jams" + shortDesc: + "An event about AI that explores the latest developments in generative AI technologies.", + communityLink: "https://community.dev/genai-study-jams", }, { name: "Web Dev Workshop", poster: "https://via.placeholder.com/400x200.png?text=Web+Dev+Workshop", - shortDesc: "Hands-on workshop covering modern web development techniques and best practices.", - communityLink: "https://community.dev/web-dev-workshop" + shortDesc: + "Hands-on workshop covering modern web development techniques and best practices.", + communityLink: "https://community.dev/web-dev-workshop", }, { name: "Gen AI Study Jams", poster: "https://via.placeholder.com/400x200.png?text=Gen+AI+Study+Jams", - shortDesc: "An event about AI that explores the latest developments in generative AI technologies.", - communityLink: "https://community.dev/genai-study-jams" + shortDesc: + "An event about AI that explores the latest developments in generative AI technologies.", + communityLink: "https://community.dev/genai-study-jams", }, { name: "Web Dev Workshop", poster: "https://via.placeholder.com/400x200.png?text=Web+Dev+Workshop", - shortDesc: "Hands-on workshop covering modern web development techniques and best practices.", - communityLink: "https://community.dev/web-dev-workshop" + shortDesc: + "Hands-on workshop covering modern web development techniques and best practices.", + communityLink: "https://community.dev/web-dev-workshop", }, { name: "Gen AI Study Jams", poster: "https://via.placeholder.com/400x200.png?text=Gen+AI+Study+Jams", - shortDesc: "An event about AI that explores the latest developments in generative AI technologies.", - communityLink: "https://community.dev/genai-study-jams" + shortDesc: + "An event about AI that explores the latest developments in generative AI technologies.", + communityLink: "https://community.dev/genai-study-jams", }, { name: "Web Dev Workshop", poster: "https://via.placeholder.com/400x200.png?text=Web+Dev+Workshop", - shortDesc: "Hands-on workshop covering modern web development techniques and best practices.", - communityLink: "https://community.dev/web-dev-workshop" + shortDesc: + "Hands-on workshop covering modern web development techniques and best practices.", + communityLink: "https://community.dev/web-dev-workshop", }, // Add more events as needed ]; @@ -91,7 +99,9 @@ export default function EventsPage() {

GDG Events

@@ -105,4 +115,4 @@ export default function EventsPage() {
); -} \ No newline at end of file +} From 8e80dda83c7c02323fc2b0d17b94fc5f42b5fcfe Mon Sep 17 00:00:00 2001 From: Saransh Jain Date: Sun, 13 Oct 2024 13:22:09 +0530 Subject: [PATCH 04/14] Newly updated everything working so far --- src/app/events/page.js | 118 ------------------------------- src/app/page.js | 82 ++++++++++++++++++--- src/components/EventCard.jsx | 26 +++++++ src/components/Events.jsx | 13 ++++ src/components/EventsSection.jsx | 39 ++++++++++ 5 files changed, 150 insertions(+), 128 deletions(-) delete mode 100644 src/app/events/page.js create mode 100644 src/components/EventCard.jsx create mode 100644 src/components/Events.jsx create mode 100644 src/components/EventsSection.jsx diff --git a/src/app/events/page.js b/src/app/events/page.js deleted file mode 100644 index 1a031b2..0000000 --- a/src/app/events/page.js +++ /dev/null @@ -1,118 +0,0 @@ -import React from "react"; -import Link from "next/link"; - -// EventCard component -const EventCard = ({ event }) => { - return ( -
- ); -}; - -// EventsSection component -const EventsSection = ({ events }) => { - return ( -
-
-

- Events -

-
- {events.map((event, index) => ( - - ))} -
-
-
- ); -}; - -// Mock data for events -const eventsData = [ - { - name: "Gen AI Study Jams", - poster: "https://via.placeholder.com/400x200.png?text=Gen+AI+Study+Jams", - shortDesc: - "An event about AI that explores the latest developments in generative AI technologies.", - communityLink: "https://community.dev/genai-study-jams", - }, - { - name: "Web Dev Workshop", - poster: "https://via.placeholder.com/400x200.png?text=Web+Dev+Workshop", - shortDesc: - "Hands-on workshop covering modern web development techniques and best practices.", - communityLink: "https://community.dev/web-dev-workshop", - }, - { - name: "Gen AI Study Jams", - poster: "https://via.placeholder.com/400x200.png?text=Gen+AI+Study+Jams", - shortDesc: - "An event about AI that explores the latest developments in generative AI technologies.", - communityLink: "https://community.dev/genai-study-jams", - }, - { - name: "Web Dev Workshop", - poster: "https://via.placeholder.com/400x200.png?text=Web+Dev+Workshop", - shortDesc: - "Hands-on workshop covering modern web development techniques and best practices.", - communityLink: "https://community.dev/web-dev-workshop", - }, - { - name: "Gen AI Study Jams", - poster: "https://via.placeholder.com/400x200.png?text=Gen+AI+Study+Jams", - shortDesc: - "An event about AI that explores the latest developments in generative AI technologies.", - communityLink: "https://community.dev/genai-study-jams", - }, - { - name: "Web Dev Workshop", - poster: "https://via.placeholder.com/400x200.png?text=Web+Dev+Workshop", - shortDesc: - "Hands-on workshop covering modern web development techniques and best practices.", - communityLink: "https://community.dev/web-dev-workshop", - }, - // Add more events as needed -]; - -// Main EventsPage component -export default function EventsPage() { - return ( -
-
-
-

GDG Events

- -
-
-
- -
-
-
-

© 2024 GDG Events. All rights reserved.

-
-
-
- ); -} diff --git a/src/app/page.js b/src/app/page.js index c47fdd6..ffdd086 100644 --- a/src/app/page.js +++ b/src/app/page.js @@ -1,15 +1,75 @@ "use client"; import Navbar from "@/components/Navbar"; -import Links from "../components/Links"; +import EventsSection from "@/components/EventsSection"; // Import EventsSection, which includes EventCard and Events +import Links from "@/components/Links"; // If you have Links component + +// Mock event data for the EventCard component +const eventsData = [ + { + name: "Gen AI Study Jams", + poster: "https://via.placeholder.com/400x200.png?text=Gen+AI+Study+Jams", + shortDesc: + "An event about AI that explores the latest developments in generative AI technologies.", + communityLink: "https://community.dev/genai-study-jams", + }, + { + name: "Web Dev Workshop", + poster: "https://via.placeholder.com/400x200.png?text=Web+Dev+Workshop", + shortDesc: + "Hands-on workshop covering modern web development techniques and best practices.", + communityLink: "https://community.dev/web-dev-workshop", + }, + { + name: "Gen AI Study Jams", + poster: "https://via.placeholder.com/400x200.png?text=Gen+AI+Study+Jams", + shortDesc: + "An event about AI that explores the latest developments in generative AI technologies.", + communityLink: "https://community.dev/genai-study-jams", + }, + { + name: "Web Dev Workshop", + poster: "https://via.placeholder.com/400x200.png?text=Web+Dev+Workshop", + shortDesc: + "Hands-on workshop covering modern web development techniques and best practices.", + communityLink: "https://community.dev/web-dev-workshop", + }, + { + name: "Gen AI Study Jams", + poster: "https://via.placeholder.com/400x200.png?text=Gen+AI+Study+Jams", + shortDesc: + "An event about AI that explores the latest developments in generative AI technologies.", + communityLink: "https://community.dev/genai-study-jams", + }, + { + name: "Web Dev Workshop", + poster: "https://via.placeholder.com/400x200.png?text=Web+Dev+Workshop", + shortDesc: + "Hands-on workshop covering modern web development techniques and best practices.", + communityLink: "https://community.dev/web-dev-workshop", + },{ + name: "Gen AI Study Jams", + poster: "https://via.placeholder.com/400x200.png?text=Gen+AI+Study+Jams", + shortDesc: + "An event about AI that explores the latest developments in generative AI technologies.", + communityLink: "https://community.dev/genai-study-jams", + }, + { + name: "Web Dev Workshop", + poster: "https://via.placeholder.com/400x200.png?text=Web+Dev+Workshop", + shortDesc: + "Hands-on workshop covering modern web development techniques and best practices.", + communityLink: "https://community.dev/web-dev-workshop", + }, +]; + export default function Home() { - // Function to scroll to the section + // Function to scroll to the second section const scrollToSection = () => { const section = document.getElementById("more-section"); if (section) { section.scrollIntoView({ behavior: "smooth" }); setTimeout(() => { - // this method is used to move down the nav when clicked on button. window.scrollBy({ top: -1, behavior: "smooth", @@ -20,7 +80,9 @@ export default function Home() { return ( <> + {/* Navbar */} + {/* First Section */}
-

- Welcome to the next section! -

- -

- Here's more information about GDG-BU and what we do. -

+ {/* EventsSection component - Renders event cards */} + +
+ + {/* Links Section */} +
+
); diff --git a/src/components/EventCard.jsx b/src/components/EventCard.jsx new file mode 100644 index 0000000..65d5865 --- /dev/null +++ b/src/components/EventCard.jsx @@ -0,0 +1,26 @@ +const EventCard = ({ event }) => { + return ( +
+ {event.name} +
+

{event.name}

+

{event.shortDesc}

+ + Get More Info! + +
+
+ ); + }; + + export default EventCard; + \ No newline at end of file diff --git a/src/components/Events.jsx b/src/components/Events.jsx new file mode 100644 index 0000000..fb97623 --- /dev/null +++ b/src/components/Events.jsx @@ -0,0 +1,13 @@ +import EventCard from './EventCard'; + +const Events = ({ events }) => { + return ( +
+ {events.map((event, index) => ( + + ))} +
+ ); +}; + +export default Events; diff --git a/src/components/EventsSection.jsx b/src/components/EventsSection.jsx new file mode 100644 index 0000000..12931c8 --- /dev/null +++ b/src/components/EventsSection.jsx @@ -0,0 +1,39 @@ +import React, { useState } from "react"; +import Events from "./Events"; + +const EventsSection = ({ events }) => { + // State to track how many events are shown initially + const [visibleEvents, setVisibleEvents] = useState(6); + + // Function to load more events + const loadMoreEvents = () => { + setVisibleEvents((prev) => prev + 6); // Load 6 more events + }; + + return ( +
+
+

+ Upcoming Events +

+ + {/* Render the Events component with only the visible events */} + + + {/* Display the "Next" arrow if there are more events to show */} + {visibleEvents < events.length && ( +
+ +
+ )} +
+
+ ); +}; + +export default EventsSection; From 911127290299e1e59502bf643f12cf28c6d3f72f Mon Sep 17 00:00:00 2001 From: Saransh Jain Date: Sun, 13 Oct 2024 15:23:46 +0530 Subject: [PATCH 05/14] Correct display --- package-lock.json | 12 ++++- package.json | 3 +- src/app/globals.css | 10 +++++ src/app/page.js | 5 ++- src/components/EventCard.jsx | 49 ++++++++++---------- src/components/Events.jsx | 2 +- src/components/EventsSection.jsx | 76 +++++++++++++++++++++----------- src/components/Links.jsx | 42 +++++++++--------- 8 files changed, 124 insertions(+), 75 deletions(-) diff --git a/package-lock.json b/package-lock.json index a2d7eff..3055c5e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,7 +14,8 @@ "next": "14.2.13", "react": "^18", "react-dom": "^18", - "react-icons": "^5.3.0" + "react-icons": "^5.3.0", + "react-swipeable": "^7.0.1" }, "devDependencies": { "eslint": "^8.57.1", @@ -4863,6 +4864,15 @@ "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", "license": "MIT" }, + "node_modules/react-swipeable": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/react-swipeable/-/react-swipeable-7.0.1.tgz", + "integrity": "sha512-RKB17JdQzvECfnVj9yDZsiYn3vH0eyva/ZbrCZXZR0qp66PBRhtg4F9yJcJTWYT5Adadi+x4NoG53BxKHwIYLQ==", + "license": "MIT", + "peerDependencies": { + "react": "^16.8.3 || ^17 || ^18" + } + }, "node_modules/react-transition-group": { "version": "4.4.5", "resolved": "https://registry.npmjs.org/react-transition-group/-/react-transition-group-4.4.5.tgz", diff --git a/package.json b/package.json index 87b40c7..0ba22cc 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,8 @@ "next": "14.2.13", "react": "^18", "react-dom": "^18", - "react-icons": "^5.3.0" + "react-icons": "^5.3.0", + "react-swipeable": "^7.0.1" }, "devDependencies": { "eslint": "^8.57.1", diff --git a/src/app/globals.css b/src/app/globals.css index 3b46056..0c90b97 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -25,6 +25,16 @@ body { text-wrap: balance; } } +/* Add this in your CSS file */ +.no-scrollbar::-webkit-scrollbar { + display: none; /* Safari and Chrome */ +} + +.no-scrollbar { + -ms-overflow-style: none; /* Internet Explorer and Edge */ + scrollbar-width: none; /* Firefox */ +} + /* Loading screen styling */ .loading-screen { diff --git a/src/app/page.js b/src/app/page.js index ffdd086..b774762 100644 --- a/src/app/page.js +++ b/src/app/page.js @@ -31,7 +31,7 @@ const eventsData = [ name: "Web Dev Workshop", poster: "https://via.placeholder.com/400x200.png?text=Web+Dev+Workshop", shortDesc: - "Hands-on workshop covering modern web development techniques and best practices.", + "Hands-on workshop covering modern web development techniques and best practices.Hands-on workshop covering modern web development", communityLink: "https://community.dev/web-dev-workshop", }, { @@ -108,7 +108,7 @@ export default function Home() { {/* Second Section */}
{/* EventsSection component - Renders event cards */} @@ -121,3 +121,4 @@ export default function Home() { ); } + \ No newline at end of file diff --git a/src/components/EventCard.jsx b/src/components/EventCard.jsx index 65d5865..913205b 100644 --- a/src/components/EventCard.jsx +++ b/src/components/EventCard.jsx @@ -1,26 +1,27 @@ +import React from "react"; + const EventCard = ({ event }) => { - return ( -
- {event.name} -
-

{event.name}

-

{event.shortDesc}

- - Get More Info! - -
+ return ( +
+ {event.name} +
+

{event.name}

+

{event.shortDesc}

+ + Learn More +
- ); - }; - - export default EventCard; - \ No newline at end of file +
+ ); +}; + +export default EventCard; diff --git a/src/components/Events.jsx b/src/components/Events.jsx index fb97623..3519c8b 100644 --- a/src/components/Events.jsx +++ b/src/components/Events.jsx @@ -1,4 +1,4 @@ -import EventCard from './EventCard'; +import EventCard from "./EventCard"; const Events = ({ events }) => { return ( diff --git a/src/components/EventsSection.jsx b/src/components/EventsSection.jsx index 12931c8..23f8dbf 100644 --- a/src/components/EventsSection.jsx +++ b/src/components/EventsSection.jsx @@ -1,37 +1,63 @@ -import React, { useState } from "react"; -import Events from "./Events"; +import { useState, useEffect } from "react"; +import EventCard from "./EventCard"; const EventsSection = ({ events }) => { - // State to track how many events are shown initially - const [visibleEvents, setVisibleEvents] = useState(6); + const [visibleEvents, setVisibleEvents] = useState(6); // Default for desktop + const [isMobile, setIsMobile] = useState(false); + + // Check if the window width is less than a certain value to determine mobile view + const handleResize = () => { + if (window.innerWidth < 768) { // Mobile breakpoint + setIsMobile(true); + setVisibleEvents(3); // Show 3 events on mobile + } else { + setIsMobile(false); + setVisibleEvents(6); // Show 6 events on desktop + } + }; + + useEffect(() => { + handleResize(); // Check the size on component mount + window.addEventListener("resize", handleResize); // Attach event listener + + // Cleanup event listener on component unmount + return () => { + window.removeEventListener("resize", handleResize); + }; + }, []); - // Function to load more events const loadMoreEvents = () => { - setVisibleEvents((prev) => prev + 6); // Load 6 more events + setVisibleEvents((prevVisible) => prevVisible + (isMobile ? 3 : 6)); // Load 3 more for mobile, 6 for desktop }; return ( -
-
-

- Upcoming Events -

- - {/* Render the Events component with only the visible events */} - - - {/* Display the "Next" arrow if there are more events to show */} - {visibleEvents < events.length && ( -
- +
{/* Full-width black background */} +

+ Events +

+ + {/* Event cards area with full width and responsive grid */} +
+
{/* Maximum width set with full padding */} +
+ {events.slice(0, visibleEvents).map((event, index) => ( + + ))}
- )} +
+ + {/* Load More Button */} + {visibleEvents < events.length && ( +
+ +
+ )}
); }; diff --git a/src/components/Links.jsx b/src/components/Links.jsx index 2a6b74f..310ff89 100644 --- a/src/components/Links.jsx +++ b/src/components/Links.jsx @@ -1,6 +1,6 @@ "use client"; -import React from "react"; +import React from "react"; // Ensure this line is only here once import { FaInstagram } from "react-icons/fa"; import { FaWhatsapp } from "react-icons/fa"; import { TbListDetails } from "react-icons/tb"; @@ -19,16 +19,14 @@ const hyperlinks = [ { name: "Junior Core Forms", href: "https://forms.gle/AGnZKZiE1SjMPLpw8", - icon: , - bgcolor: - "text-violet-400 border-2 border-violet-400 hover:bg-violet-400/15", + icon: , + bgcolor: "text-violet-400 border-2 border-violet-400 hover:bg-violet-400/15", }, { name: "Whatsapp", href: "https://chat.whatsapp.com/Coiz2mWaHIQJs1c91jrYsB", - icon: , - bgcolor: - "text-emerald-400 border-2 border-emerald-400 hover:bg-emerald-400/15", + icon: , + bgcolor: "text-emerald-400 border-2 border-emerald-400 hover:bg-emerald-400/15", }, { name: "Instagram", @@ -40,46 +38,48 @@ const hyperlinks = [ name: "Community.dev", href: "https://gdg.community.dev/gdg-on-campus-bennett-university-greater-noida-india/", icon: ( -

+

<>

), bgcolor: "text-sky-400 border-2 border-sky-400 hover:bg-sky-400/15", }, ]; + const Links = () => { return ( -
- {hyperlinks.map((link, index) => { - return ( +
+ {/* Heading for Links Section */} +

Useful Links

+ +
+ {hyperlinks.map((link, index) => ( - ); - })} + /> + ))} +
); }; -export default Links; - const Link = ({ name, href, icon, bgcolor }) => { return ( - +
{icon} -

+

{name}

); }; + +export default Links; From e737616ce113fae77fee349a076c61df569e79a4 Mon Sep 17 00:00:00 2001 From: Saransh Jain Date: Sun, 13 Oct 2024 15:32:45 +0530 Subject: [PATCH 06/14] fixed the logo --- src/components/Navbar.jsx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/components/Navbar.jsx b/src/components/Navbar.jsx index fc4e1f2..c3435bd 100644 --- a/src/components/Navbar.jsx +++ b/src/components/Navbar.jsx @@ -36,13 +36,14 @@ export default function Navbar () { className="flex items-center space-x-3 rtl:space-x-reverse" > Flowbite Logo + src="/assets/logo_gdg.png" // Corrected path + alt="GDG Logo" + width={32} + height={32} + /> + - Flowbite + GDG Bennett University
From bcca13320e0ffd167155e80f363ed4aa4dae28a3 Mon Sep 17 00:00:00 2001 From: Saransh Jain Date: Sun, 13 Oct 2024 15:49:24 +0530 Subject: [PATCH 07/14] added events section & added json file for database --- public/data/events.json | 51 ++++++++++++++++++++++++++++ src/app/page.js | 74 ++++++++--------------------------------- 2 files changed, 65 insertions(+), 60 deletions(-) create mode 100644 public/data/events.json diff --git a/public/data/events.json b/public/data/events.json new file mode 100644 index 0000000..ef785fd --- /dev/null +++ b/public/data/events.json @@ -0,0 +1,51 @@ +[ + { + "name": "Gen AI Study Jams", + "poster": "https://via.placeholder.com/400x200.png?text=Gen+AI+Study+Jams", + "shortDesc": "An event about AI that explores the latest developments in generative AI technologies.", + "communityLink": "https://community.dev/genai-study-jams" + }, + { + "name": "Web Dev Workshop", + "poster": "https://via.placeholder.com/400x200.png?text=Web+Dev+Workshop", + "shortDesc": "Hands-on workshop covering modern web development techniques and best practices.", + "communityLink": "https://community.dev/web-dev-workshop" + }, + { + "name": "Mobile App Hackathon", + "poster": "https://via.placeholder.com/400x200.png?text=Mobile+App+Hackathon", + "shortDesc": "Collaborate with peers to build a mobile application in 48 hours!", + "communityLink": "https://community.dev/mobile-app-hackathon" + }, + { + "name": "Data Science Bootcamp", + "poster": "https://via.placeholder.com/400x200.png?text=Data+Science+Bootcamp", + "shortDesc": "Join us for an intensive bootcamp on data science fundamentals.", + "communityLink": "https://community.dev/data-science-bootcamp" + }, + { + "name": "Gen AI Study Jams", + "poster": "https://via.placeholder.com/400x200.png?text=Gen+AI+Study+Jams", + "shortDesc": "An event about AI that explores the latest developments in generative AI technologies.", + "communityLink": "https://community.dev/genai-study-jams" + }, + { + "name": "Web Dev Workshop", + "poster": "https://via.placeholder.com/400x200.png?text=Web+Dev+Workshop", + "shortDesc": "Hands-on workshop covering modern web development techniques and best practices.", + "communityLink": "https://community.dev/web-dev-workshop" + }, + { + "name": "Mobile App Hackathon", + "poster": "https://via.placeholder.com/400x200.png?text=Mobile+App+Hackathon", + "shortDesc": "Collaborate with peers to build a mobile application in 48 hours!", + "communityLink": "https://community.dev/mobile-app-hackathon" + }, + { + "name": "Data Science Bootcamp", + "poster": "https://via.placeholder.com/400x200.png?text=Data+Science+Bootcamp", + "shortDesc": "Join us for an intensive bootcamp on data science fundamentals.", + "communityLink": "https://community.dev/data-science-bootcamp" + } + ] + \ No newline at end of file diff --git a/src/app/page.js b/src/app/page.js index b774762..be37ab0 100644 --- a/src/app/page.js +++ b/src/app/page.js @@ -1,69 +1,24 @@ "use client"; +import { useEffect, useState } from "react"; // Import useEffect and useState import Navbar from "@/components/Navbar"; import EventsSection from "@/components/EventsSection"; // Import EventsSection, which includes EventCard and Events import Links from "@/components/Links"; // If you have Links component -// Mock event data for the EventCard component -const eventsData = [ - { - name: "Gen AI Study Jams", - poster: "https://via.placeholder.com/400x200.png?text=Gen+AI+Study+Jams", - shortDesc: - "An event about AI that explores the latest developments in generative AI technologies.", - communityLink: "https://community.dev/genai-study-jams", - }, - { - name: "Web Dev Workshop", - poster: "https://via.placeholder.com/400x200.png?text=Web+Dev+Workshop", - shortDesc: - "Hands-on workshop covering modern web development techniques and best practices.", - communityLink: "https://community.dev/web-dev-workshop", - }, - { - name: "Gen AI Study Jams", - poster: "https://via.placeholder.com/400x200.png?text=Gen+AI+Study+Jams", - shortDesc: - "An event about AI that explores the latest developments in generative AI technologies.", - communityLink: "https://community.dev/genai-study-jams", - }, - { - name: "Web Dev Workshop", - poster: "https://via.placeholder.com/400x200.png?text=Web+Dev+Workshop", - shortDesc: - "Hands-on workshop covering modern web development techniques and best practices.Hands-on workshop covering modern web development", - communityLink: "https://community.dev/web-dev-workshop", - }, - { - name: "Gen AI Study Jams", - poster: "https://via.placeholder.com/400x200.png?text=Gen+AI+Study+Jams", - shortDesc: - "An event about AI that explores the latest developments in generative AI technologies.", - communityLink: "https://community.dev/genai-study-jams", - }, - { - name: "Web Dev Workshop", - poster: "https://via.placeholder.com/400x200.png?text=Web+Dev+Workshop", - shortDesc: - "Hands-on workshop covering modern web development techniques and best practices.", - communityLink: "https://community.dev/web-dev-workshop", - },{ - name: "Gen AI Study Jams", - poster: "https://via.placeholder.com/400x200.png?text=Gen+AI+Study+Jams", - shortDesc: - "An event about AI that explores the latest developments in generative AI technologies.", - communityLink: "https://community.dev/genai-study-jams", - }, - { - name: "Web Dev Workshop", - poster: "https://via.placeholder.com/400x200.png?text=Web+Dev+Workshop", - shortDesc: - "Hands-on workshop covering modern web development techniques and best practices.", - communityLink: "https://community.dev/web-dev-workshop", - }, -]; - export default function Home() { + const [eventsData, setEventsData] = useState([]); // State to hold events data + + // Function to fetch events data from the JSON file + useEffect(() => { + const fetchEventsData = async () => { + const response = await fetch("/data/events.json"); // Adjust the path to your JSON file + const data = await response.json(); + setEventsData(data); + }; + + fetchEventsData(); + }, []); + // Function to scroll to the second section const scrollToSection = () => { const section = document.getElementById("more-section"); @@ -121,4 +76,3 @@ export default function Home() { ); } - \ No newline at end of file From 932f48cabc0f31ae4ec637e6508d46c810fa160a Mon Sep 17 00:00:00 2001 From: Saransh Jain Date: Sun, 13 Oct 2024 15:54:19 +0530 Subject: [PATCH 08/14] preety and linted --- src/components/EventsSection.jsx | 13 ++++++++----- src/components/Links.jsx | 10 +++++++--- src/components/Navbar.jsx | 15 +++++++-------- 3 files changed, 22 insertions(+), 16 deletions(-) diff --git a/src/components/EventsSection.jsx b/src/components/EventsSection.jsx index 23f8dbf..a6d05bc 100644 --- a/src/components/EventsSection.jsx +++ b/src/components/EventsSection.jsx @@ -7,7 +7,8 @@ const EventsSection = ({ events }) => { // Check if the window width is less than a certain value to determine mobile view const handleResize = () => { - if (window.innerWidth < 768) { // Mobile breakpoint + if (window.innerWidth < 768) { + // Mobile breakpoint setIsMobile(true); setVisibleEvents(3); // Show 3 events on mobile } else { @@ -31,14 +32,17 @@ const EventsSection = ({ events }) => { }; return ( -
{/* Full-width black background */} +
+ {" "} + {/* Full-width black background */}

Events

- {/* Event cards area with full width and responsive grid */}
-
{/* Maximum width set with full padding */} +
+ {" "} + {/* Maximum width set with full padding */}
{events.slice(0, visibleEvents).map((event, index) => ( @@ -46,7 +50,6 @@ const EventsSection = ({ events }) => {
- {/* Load More Button */} {visibleEvents < events.length && (
diff --git a/src/components/Links.jsx b/src/components/Links.jsx index 310ff89..d1157d1 100644 --- a/src/components/Links.jsx +++ b/src/components/Links.jsx @@ -20,13 +20,15 @@ const hyperlinks = [ name: "Junior Core Forms", href: "https://forms.gle/AGnZKZiE1SjMPLpw8", icon: , - bgcolor: "text-violet-400 border-2 border-violet-400 hover:bg-violet-400/15", + bgcolor: + "text-violet-400 border-2 border-violet-400 hover:bg-violet-400/15", }, { name: "Whatsapp", href: "https://chat.whatsapp.com/Coiz2mWaHIQJs1c91jrYsB", icon: , - bgcolor: "text-emerald-400 border-2 border-emerald-400 hover:bg-emerald-400/15", + bgcolor: + "text-emerald-400 border-2 border-emerald-400 hover:bg-emerald-400/15", }, { name: "Instagram", @@ -74,7 +76,9 @@ const Link = ({ name, href, icon, bgcolor }) => { className={`${bgcolor} bg-transparent hover:scale-110 transform translate duration-300 ease-in-out w-80 justify-between md:w-fit min-h-fit py-4 flex md:justify-around gap-x-6 items-center px-5 rounded-2xl`} > {icon} -

+

{name}

diff --git a/src/components/Navbar.jsx b/src/components/Navbar.jsx index c3435bd..56022f4 100644 --- a/src/components/Navbar.jsx +++ b/src/components/Navbar.jsx @@ -1,8 +1,7 @@ import { useEffect, useState } from "react"; import Image from "next/image"; - -export default function Navbar () { +export default function Navbar() { const [visible, setVisible] = useState(false); const [scrollPosition, setScrollPosition] = useState(0); @@ -36,11 +35,11 @@ export default function Navbar () { className="flex items-center space-x-3 rtl:space-x-reverse" > GDG Logo + src="/assets/logo_gdg.png" // Corrected path + alt="GDG Logo" + width={32} + height={32} + /> GDG Bennett University @@ -122,4 +121,4 @@ export default function Navbar () { ); -}; +} From b56a7cb6a82f4cddea6109bc41a561252e445088 Mon Sep 17 00:00:00 2001 From: Saransh Jain Date: Sun, 13 Oct 2024 21:10:23 +0530 Subject: [PATCH 09/14] sample data updated --- public/data/events.json | 8 ++++---- src/components/EventCard.jsx | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/public/data/events.json b/public/data/events.json index ef785fd..fcbefbb 100644 --- a/public/data/events.json +++ b/public/data/events.json @@ -1,9 +1,9 @@ [ { - "name": "Gen AI Study Jams", - "poster": "https://via.placeholder.com/400x200.png?text=Gen+AI+Study+Jams", - "shortDesc": "An event about AI that explores the latest developments in generative AI technologies.", - "communityLink": "https://community.dev/genai-study-jams" + "name": "Hacktober Fest - Bennett University", + "poster": "https://res.cloudinary.com/startup-grind/image/upload/c_scale,w_2560/c_crop,h_640,w_2560,y_0.1_mul_h_sub_0.1_mul_640/c_crop,h_640,w_2560/c_fill,dpr_2.0,f_auto,g_center,q_auto:good/v1/gcs/platform-data-goog/event_banners/story%20%281%29_gKjrKjJ.jpg", + "shortDesc": "We at GDG On Campus-Bennett University bring to you all Hacktober Fest!! Exclusively for beginners, to help you hop on to the contribution spree with GDG BU and step a foot into your OSS journey (Internal Event).", + "communityLink": "https://gdg.community.dev/events/details/google-gdg-on-campus-bennett-university-greater-noida-india-presents-hacktober-fest-bennett-university/" }, { "name": "Web Dev Workshop", diff --git a/src/components/EventCard.jsx b/src/components/EventCard.jsx index 913205b..b224154 100644 --- a/src/components/EventCard.jsx +++ b/src/components/EventCard.jsx @@ -2,11 +2,11 @@ import React from "react"; const EventCard = ({ event }) => { return ( -
+
{event.name}

{event.name}

From fa1f14d196556da4cd40463d3fddcee122a6c822 Mon Sep 17 00:00:00 2001 From: Saransh Jain Date: Tue, 15 Oct 2024 11:23:32 +0530 Subject: [PATCH 10/14] Removed unecessary comments --- src/app/page.js | 13 +++++-------- src/components/EventsSection.jsx | 18 ++++++------------ 2 files changed, 11 insertions(+), 20 deletions(-) diff --git a/src/app/page.js b/src/app/page.js index be37ab0..84788a1 100644 --- a/src/app/page.js +++ b/src/app/page.js @@ -1,17 +1,16 @@ "use client"; -import { useEffect, useState } from "react"; // Import useEffect and useState +import { useEffect, useState } from "react"; import Navbar from "@/components/Navbar"; -import EventsSection from "@/components/EventsSection"; // Import EventsSection, which includes EventCard and Events -import Links from "@/components/Links"; // If you have Links component +import EventsSection from "@/components/EventsSection"; +import Links from "@/components/Links"; export default function Home() { - const [eventsData, setEventsData] = useState([]); // State to hold events data + const [eventsData, setEventsData] = useState([]); - // Function to fetch events data from the JSON file useEffect(() => { const fetchEventsData = async () => { - const response = await fetch("/data/events.json"); // Adjust the path to your JSON file + const response = await fetch("/data/events.json"); const data = await response.json(); setEventsData(data); }; @@ -19,7 +18,6 @@ export default function Home() { fetchEventsData(); }, []); - // Function to scroll to the second section const scrollToSection = () => { const section = document.getElementById("more-section"); if (section) { @@ -65,7 +63,6 @@ export default function Home() { id="more-section" className="flex flex-col items-center justify-center min-h-screen p-8 pb-20 gap-8 sm:p-50 text-center" > - {/* EventsSection component - Renders event cards */}
diff --git a/src/components/EventsSection.jsx b/src/components/EventsSection.jsx index a6d05bc..5139831 100644 --- a/src/components/EventsSection.jsx +++ b/src/components/EventsSection.jsx @@ -2,47 +2,42 @@ import { useState, useEffect } from "react"; import EventCard from "./EventCard"; const EventsSection = ({ events }) => { - const [visibleEvents, setVisibleEvents] = useState(6); // Default for desktop + const [visibleEvents, setVisibleEvents] = useState(6); const [isMobile, setIsMobile] = useState(false); - // Check if the window width is less than a certain value to determine mobile view const handleResize = () => { if (window.innerWidth < 768) { // Mobile breakpoint setIsMobile(true); - setVisibleEvents(3); // Show 3 events on mobile + setVisibleEvents(3); } else { setIsMobile(false); - setVisibleEvents(6); // Show 6 events on desktop + setVisibleEvents(6); } }; useEffect(() => { - handleResize(); // Check the size on component mount - window.addEventListener("resize", handleResize); // Attach event listener + handleResize(); + window.addEventListener("resize", handleResize); - // Cleanup event listener on component unmount return () => { window.removeEventListener("resize", handleResize); }; }, []); const loadMoreEvents = () => { - setVisibleEvents((prevVisible) => prevVisible + (isMobile ? 3 : 6)); // Load 3 more for mobile, 6 for desktop + setVisibleEvents((prevVisible) => prevVisible + (isMobile ? 3 : 6)); }; return (
{" "} - {/* Full-width black background */}

Events

- {/* Event cards area with full width and responsive grid */}
{" "} - {/* Maximum width set with full padding */}
{events.slice(0, visibleEvents).map((event, index) => ( @@ -50,7 +45,6 @@ const EventsSection = ({ events }) => {
- {/* Load More Button */} {visibleEvents < events.length && (
); } diff --git a/src/components/Navbar.jsx b/src/components/Navbar.jsx index 56022f4..350b08e 100644 --- a/src/components/Navbar.jsx +++ b/src/components/Navbar.jsx @@ -10,9 +10,9 @@ export default function Navbar() { const currentScrollPos = window.scrollY; if (currentScrollPos > scrollPosition) { - setVisible(false); //scrolling down + setVisible(false); } else { - setVisible(true); //scrolling up + setVisible(true); } setScrollPosition(currentScrollPos); @@ -35,7 +35,7 @@ export default function Navbar() { className="flex items-center space-x-3 rtl:space-x-reverse" > GDG Logo Date: Tue, 15 Oct 2024 11:31:12 +0530 Subject: [PATCH 12/14] Updated Events.json --- public/data/events.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/public/data/events.json b/public/data/events.json index db556aa..2617678 100644 --- a/public/data/events.json +++ b/public/data/events.json @@ -9,7 +9,13 @@ "name": "Gen AI Study Jam - Info Session", "poster": "https://res.cloudinary.com/startup-grind/image/upload/c_fill,w_500,h_500,g_center/c_fill,dpr_2.0,f_auto,g_center,q_auto:good/v1/gcs/platform-data-goog/events/WhatsApp%20Image%202024-09-27%20at%2003.02.09_msfU7tg.jpeg", "shortDesc": "Hands-on workshop covering modern web development techniques and best practices.", - "communityLink": "https://community.dev/web-dev-workshop" + "communityLink": "https://gdg.community.dev/events/details/google-gdg-on-campus-bennett-university-greater-noida-india-presents-gen-ai-study-jam-info-session-build-with-ai/" + }, + { + "name": "GDG BU Infosession [Previously GDSC BU]", + "poster": "https://res.cloudinary.com/startup-grind/image/upload/c_scale,w_2560/c_crop,h_640,w_2560,y_0.47_mul_h_sub_0.47_mul_640/c_crop,h_640,w_2560/c_fill,dpr_2.0,f_auto,g_center,q_auto:good/v1/gcs/platform-data-goog/event_banners/GDG-OC-Evergreen-horizontal-White_puqYfyI.png", + "shortDesc": "This is an info-session for freshers and on campus developers to let them know what GDG on campus BU is about.", + "communityLink": "https://gdg.community.dev/events/details/google-gdg-on-campus-bennett-university-greater-noida-india-presents-gdg-bu-infosession-previously-gdsc-bu/" } ] From ca899d27fc6a84ccb4c181407a4da837c35f5c5c Mon Sep 17 00:00:00 2001 From: Saransh Jain Date: Tue, 15 Oct 2024 11:40:24 +0530 Subject: [PATCH 13/14] preety and eslint check done --- src/app/globals.css | 1 - src/app/layout.js | 5 ++--- src/app/page.js | 10 +++++----- src/components/EventsSection.jsx | 12 ++++++------ src/components/Links.jsx | 3 +-- src/components/Loader.jsx | 1 - src/components/Navbar.jsx | 4 ++-- 7 files changed, 16 insertions(+), 20 deletions(-) diff --git a/src/app/globals.css b/src/app/globals.css index 0c90b97..fa31ebc 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -35,7 +35,6 @@ body { scrollbar-width: none; /* Firefox */ } - /* Loading screen styling */ .loading-screen { position: fixed; diff --git a/src/app/layout.js b/src/app/layout.js index 485335f..12a3aee 100644 --- a/src/app/layout.js +++ b/src/app/layout.js @@ -1,4 +1,4 @@ -"use client"; +"use client"; import { useState, useEffect } from "react"; import localFont from "next/font/local"; @@ -22,7 +22,7 @@ export default function RootLayout({ children }) { useEffect(() => { const timeout = setTimeout(() => setIsLoading(false), 3000); // Simulated loading delay - return () => clearTimeout(timeout); + return () => clearTimeout(timeout); }, []); return ( @@ -38,7 +38,6 @@ export default function RootLayout({ children }) { ); } - const styles = { loadingScreen: { display: "flex", diff --git a/src/app/page.js b/src/app/page.js index 5eb6720..f0d8e70 100644 --- a/src/app/page.js +++ b/src/app/page.js @@ -2,19 +2,19 @@ import { useEffect, useState } from "react"; import Navbar from "@/components/Navbar"; -import EventsSection from "@/components/EventsSection"; -import Links from "@/components/Links"; +import EventsSection from "@/components/EventsSection"; +import Links from "@/components/Links"; export default function Home() { - const [eventsData, setEventsData] = useState([]); + const [eventsData, setEventsData] = useState([]); useEffect(() => { const fetchEventsData = async () => { - const response = await fetch("/data/events.json"); + const response = await fetch("/data/events.json"); const data = await response.json(); setEventsData(data); }; - + fetchEventsData(); }, []); diff --git a/src/components/EventsSection.jsx b/src/components/EventsSection.jsx index 5139831..66fd36c 100644 --- a/src/components/EventsSection.jsx +++ b/src/components/EventsSection.jsx @@ -2,23 +2,23 @@ import { useState, useEffect } from "react"; import EventCard from "./EventCard"; const EventsSection = ({ events }) => { - const [visibleEvents, setVisibleEvents] = useState(6); + const [visibleEvents, setVisibleEvents] = useState(6); const [isMobile, setIsMobile] = useState(false); const handleResize = () => { if (window.innerWidth < 768) { // Mobile breakpoint setIsMobile(true); - setVisibleEvents(3); + setVisibleEvents(3); } else { setIsMobile(false); - setVisibleEvents(6); + setVisibleEvents(6); } }; useEffect(() => { - handleResize(); - window.addEventListener("resize", handleResize); + handleResize(); + window.addEventListener("resize", handleResize); return () => { window.removeEventListener("resize", handleResize); @@ -26,7 +26,7 @@ const EventsSection = ({ events }) => { }, []); const loadMoreEvents = () => { - setVisibleEvents((prevVisible) => prevVisible + (isMobile ? 3 : 6)); + setVisibleEvents((prevVisible) => prevVisible + (isMobile ? 3 : 6)); }; return ( diff --git a/src/components/Links.jsx b/src/components/Links.jsx index 3459c36..1ef98cd 100644 --- a/src/components/Links.jsx +++ b/src/components/Links.jsx @@ -1,6 +1,6 @@ "use client"; -import React from "react"; +import React from "react"; import { FaInstagram } from "react-icons/fa"; import { FaWhatsapp } from "react-icons/fa"; import { TbListDetails } from "react-icons/tb"; @@ -51,7 +51,6 @@ const hyperlinks = [ const Links = () => { return (
- {/* Heading for Links Section */}

Useful Links

diff --git a/src/components/Loader.jsx b/src/components/Loader.jsx index 5c77e76..3d3e75e 100644 --- a/src/components/Loader.jsx +++ b/src/components/Loader.jsx @@ -13,7 +13,6 @@ export default function Loader() { />
-
); } diff --git a/src/components/Navbar.jsx b/src/components/Navbar.jsx index 350b08e..7ae6c9b 100644 --- a/src/components/Navbar.jsx +++ b/src/components/Navbar.jsx @@ -10,7 +10,7 @@ export default function Navbar() { const currentScrollPos = window.scrollY; if (currentScrollPos > scrollPosition) { - setVisible(false); + setVisible(false); } else { setVisible(true); } @@ -35,7 +35,7 @@ export default function Navbar() { className="flex items-center space-x-3 rtl:space-x-reverse" > GDG Logo Date: Tue, 15 Oct 2024 19:45:01 +0530 Subject: [PATCH 14/14] fixed --- src/app/globals.css | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/src/app/globals.css b/src/app/globals.css index fa31ebc..f9c8b0b 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -25,17 +25,16 @@ body { text-wrap: balance; } } -/* Add this in your CSS file */ + .no-scrollbar::-webkit-scrollbar { - display: none; /* Safari and Chrome */ + display: none; } .no-scrollbar { - -ms-overflow-style: none; /* Internet Explorer and Edge */ - scrollbar-width: none; /* Firefox */ + -ms-overflow-style: none; + scrollbar-width: none; } -/* Loading screen styling */ .loading-screen { position: fixed; inset: 0; @@ -50,7 +49,6 @@ body { animation: spin 2s linear infinite; } -/* Spinning animation */ @keyframes spin { from { transform: rotate(0deg); @@ -81,13 +79,3 @@ body { display: inline-block; animation: dots 1.5s steps(3, end) infinite; } -/* -module.exports = { - theme: { - extend: { - animation: { - 'dots': 'dots 1.5s steps(3, end) infinite', // Animation for the dots - }, - }, - }, -}; */