From cf1572eb65a206699c05ac9d345c866ebc1e1447 Mon Sep 17 00:00:00 2001 From: Biniyam Date: Sat, 13 Apr 2024 07:02:21 +0300 Subject: [PATCH 1/4] Fix: Resolve lint issues, add missing imports, and update to Next.js 14.2 and Tailwind CSS 3.4.3 --- .pre-commit-config.yaml | 8 +- app/dev-meetup-v2.tsx | 428 +++--- app/faq/page.tsx | 59 +- app/layout.tsx | 26 +- app/not-found.tsx | 2 +- app/page.tsx | 429 +++--- components/Contributors.tsx | 95 +- components/button/ThemeButton.tsx | 14 +- components/nav/MobileNavItem.tsx | 38 +- components/nav/Nav.tsx | 207 ++- components/ui/button.tsx | 94 +- data/index.ts | 5 + index.d.ts | 1 - lib/utils.ts | 6 +- next.config.js | 11 +- package.json | 14 +- pages/404.tsx | 46 - pages/dev-meetup-v2.tsx | 250 ---- pnpm-lock.yaml | 2080 +++++++++++++++-------------- tailwind.config.ts | 160 +-- 20 files changed, 1892 insertions(+), 2081 deletions(-) delete mode 100644 index.d.ts delete mode 100644 pages/404.tsx delete mode 100644 pages/dev-meetup-v2.tsx diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index aeabba6..3ce0389 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,13 +9,7 @@ repos: language: system stages: [commit] - - id: lint - name: Next-Lint - entry: npx - args: [next, "lint"] - language: system - stages: [commit] - + - id: run-tests name: Run Tests entry: npm diff --git a/app/dev-meetup-v2.tsx b/app/dev-meetup-v2.tsx index c919e17..90fbc40 100644 --- a/app/dev-meetup-v2.tsx +++ b/app/dev-meetup-v2.tsx @@ -1,250 +1,248 @@ import PageHead from "@/components/PageHead"; import Nav from "@/components/nav/Nav"; -import React from "react"; import Image from "next/image"; +import Link from "next/link"; +import V2 from "../assets/Image/V2.jpg"; +import highlighted from "../assets/Image/highlighted.jpg"; import pic1 from "../assets/Image/pic1.jpg"; import pic2 from "../assets/Image/pic2.jpg"; import pic3 from "../assets/Image/pic3.jpg"; import pic4 from "../assets/Image/pic4.jpg"; import pic5 from "../assets/Image/pic5.jpg"; import pic6 from "../assets/Image/pic6.jpg"; -import V2 from "../assets/Image/V2.jpg"; -import highlighted from "../assets/Image/highlighted.jpg"; -import StickyBottomBanner from "@/components/StickyBottomBanner"; -import Link from "next/link"; const HeroSection = () => ( -
-
-
-

- Welcome to Codenight Events -

-
-
-

- Join us as we bring together passionate individuals from across the - tech landscape to explore cutting-edge technologies. -

- - Explore Upcoming Events - -
-
-
+
+
+
+

+ Welcome to Codenight Events +

+
+
+

+ Join us as we bring together passionate individuals from across the + tech landscape to explore cutting-edge technologies. +

+ + Explore Upcoming Events + +
+
+
); const Description = () => ( -
-
-

- About Codenight Events -

-

- At Codenight Events, we believe in - the power of community, curiosity, and collaboration. Our gatherings are - more than just tech meetups they are vibrant hubs of excitement, where - like-minded individuals come together to share stories, reconnect with - old friends, and make new ones. -

-
-
+
+
+

+ About Codenight Events +

+

+ At Codenight Events, we believe in + the power of community, curiosity, and collaboration. Our gatherings are + more than just tech meetups they are vibrant hubs of excitement, where + like-minded individuals come together to share stories, reconnect with + old friends, and make new ones. +

+
+
); const Gallery = () => ( -
-
-

- Past Meetups -

-
-
- Meetup 1 -
-
- Meetup 1 -
-
- Meetup 1 -
-
- Meetup 1 -
-
- Meetup 1 -
-
- Meetup 1 -
+
+
+

+ Past Meetups +

+
+
+ Meetup 1 +
+
+ Meetup 1 +
+
+ Meetup 1 +
+
+ Meetup 1 +
+
+ Meetup 1 +
+
+ Meetup 1 +
- {/* Add more meetup images here */} -
-
-
+ {/* Add more meetup images here */} +
+
+
); const Stats = () => ( -
-
-
-
-

Total Attendees

-

500+

-
-
-

Total Speakers

-

50+

-
-
-

Hours of Content

-

100+

-
-
-
-
+
+
+
+
+

Total Attendees

+

500+

+
+
+

Total Speakers

+

50+

+
+
+

Hours of Content

+

100+

+
+
+
+
); const Session = () => ( -
-
-

- Highlighted Session -

-
- Session 1 -
-

Get-Together

-

- We all learned that the challenges we face are mostly similar, and - networking is an essential approach to overcoming these - challenges.We had fun sharing stories, meeting old friends and new - ones, and challenging our ideas. -

- - Learn More - -
-
-
-
+
+
+

+ Highlighted Session +

+
+ Session 1 +
+

Get-Together

+

+ We all learned that the challenges we face are mostly similar, and + networking is an essential approach to overcoming these + challenges.We had fun sharing stories, meeting old friends and new + ones, and challenging our ideas. +

+ + Learn More + +
+
+
+
); const Email = () => ( -
-
-

- Subscribe to Our Newsletter -

-

- Be the first to know by signing up for our email list. -

-
- - -
-
-
+
+
+

+ Subscribe to Our Newsletter +

+

+ Be the first to know by signing up for our email list. +

+
+ + +
+
+
); const Upcoming = () => ( -
-
-

- Up coming events -

-
- dev meetup v2 -
-

Dev Meetup V2

-

- Last year, we hosted an amaizzing dev meetup that left us all - buzzing with excitement. we had alot of fun and we learned a lot - from each other. Even we put faces to the usernames and the voices - to the names. -

- - Learn More - -
-
-
-
+
+
+

+ Up coming events +

+
+ dev meetup v2 +
+

Dev Meetup V2

+

+ Last year, we hosted an amaizzing dev meetup that left us all + buzzing with excitement. we had alot of fun and we learned a lot + from each other. Even we put faces to the usernames and the voices + to the names. +

+ + Learn More + +
+
+
+
); const Footer = () => ( - + ); export default function events() { - return ( - <> - -
-
- {/* */} - - ); + return ( + <> + +
+
+ {/* */} + + ); } diff --git a/app/faq/page.tsx b/app/faq/page.tsx index 8ddfaf2..8ecc738 100644 --- a/app/faq/page.tsx +++ b/app/faq/page.tsx @@ -2,39 +2,38 @@ import FAQSingleCard from "@/components/FAQSingleCard"; import PageHead from "@/components/PageHead"; import StickyBottomBanner from "@/components/StickyBottomBanner"; -import Nav from "@/components/nav/Nav"; import { FAQData } from "@/data"; const FAQPage = () => { - return ( - <> - -