diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..6ce548b --- /dev/null +++ b/.env.example @@ -0,0 +1 @@ +DATABASE_URL=postgres://... \ No newline at end of file diff --git a/.gitignore b/.gitignore index 2bfee4b..7dc897f 100644 --- a/.gitignore +++ b/.gitignore @@ -26,6 +26,7 @@ yarn-error.log* .pnpm-debug.log* # local env files +.env .env*.local # vercel diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml deleted file mode 100644 index aeabba6..0000000 --- a/.pre-commit-config.yaml +++ /dev/null @@ -1,33 +0,0 @@ -repos: - - - repo: local - hooks: - - id: rome - name: Rome - entry: npx - args: [rome, "format", ".", "--write"] - 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 - args: [run, test] - language: system - pass_filenames: false - stages: [commit] - - - id: build - name: Build - entry: npx - args: [next, build] - language: system - pass_filenames: false - stages: [push] diff --git a/.vscode/extensions.json b/.vscode/extensions.json index da48ba3..5977fae 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,6 +1,5 @@ { "recommendations": [ - "rome.rome", "bradlc.vscode-tailwindcss", "dbaeumer.vscode-eslint", "vivaxy.vscode-conventional-commits" diff --git a/.vscode/settings.json b/.vscode/settings.json index 8f21ddd..e55c0b3 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -3,5 +3,4 @@ "editor.defaultFormatter": "esbenp.prettier-vscode" }, // "editor.formatOnSave": true, - "editor.defaultFormatter": "rome.rome" } diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 775a4a1..e48f99a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,6 +1,6 @@ # Contribution Guidelines -Thank you for considering contributing to our Rome-based project! We welcome any and all contributions, including bug reports, feature requests, code changes, and documentation improvements. To ensure a smooth and efficient collaboration, please read and follow these guidelines before submitting your contribution. +Thank you for considering contributing to our project! We welcome any and all contributions, including bug reports, feature requests, code changes, and documentation improvements. To ensure a smooth and efficient collaboration, please read and follow these guidelines before submitting your contribution. ## Getting Started @@ -20,7 +20,7 @@ When making changes to the code, please keep the following in mind: 1. Write clear and concise commit messages 2. Follow the existing code style and conventions 3. You code will be formatted using pre-commits before you commit any changes if you want to run it manually please run `pnpm run format:write` -4. A linter will also run before every commit to ensure that your changes follow our code style if you want to perform manual check please run `pnpm run lint:next` and `pnpm run lint:rome` +4. A linter will also run before every commit to ensure that your changes follow our code style if you want to perform manual check please run `pnpm run lint:next` 5. Check that your changes type-check by running `pnpm run type:check` 6. Update the documentation if necessary diff --git a/actions/meetup.ts b/actions/meetup.ts new file mode 100644 index 0000000..d3c4509 --- /dev/null +++ b/actions/meetup.ts @@ -0,0 +1,26 @@ +"use server"; + + +import { db } from "@/db" +import { guests } from "@/db/schema" + + + + +type Gender = "male" | "female" +type Fasting = "yes" | "no" +export const registerDevs = async (firstName: string , lastName: string, email:string , phone: string , gender:string, fasting:string , comment: string , status: string , profession: string ) => { + const registered = await db.insert(guests).values({ + email: email, + firstName:firstName, + lastName:lastName, + phone:phone, + gender: gender, + fasting: fasting, + comment: comment, + status: status, + profession: profession, + }) + return registered + +} \ No newline at end of file diff --git a/actions/subsctibe.ts b/actions/subsctibe.ts new file mode 100644 index 0000000..3012179 --- /dev/null +++ b/actions/subsctibe.ts @@ -0,0 +1,12 @@ +'use server' + +import { db } from "@/db" +import { subscribers } from "@/db/schema" + + +export const addSubscription = async (email: string) => { + const subs = await db.insert(subscribers).values({ + email:email, + }) + return subs +} \ No newline at end of file diff --git a/app/dev-meet/page.tsx b/app/dev-meet/page.tsx new file mode 100644 index 0000000..6e2854f --- /dev/null +++ b/app/dev-meet/page.tsx @@ -0,0 +1,35 @@ + +import { CountDown } from "@/components/events/countdown-wrapper"; +import { DevPic } from "@/components/events/dev-pic"; +import { Evented } from "@/components/events/evented"; +import { GetStarted } from "@/components/events/get-started"; +import HeroEvent from "@/components/events/here-event"; +import Organizers from "@/components/events/organizers"; +import { Schedule } from "@/components/events/schdule"; +import { Speakers } from "@/components/events/speakers"; +import { Sponsors } from "@/components/events/sponsors"; +import { Stats } from "@/components/events/stats"; +import { UpcomingEvent } from "@/components/events/upcoming-events"; +export const metadata = { + title: "CodeNight Events", + description: "Where we all gather and build the future" +} +const DevMeetupV2 = () => { + return ( + <> + + + + + + + + + + + + + ); +}; +export default DevMeetupV2; + diff --git a/app/layout.tsx b/app/layout.tsx index 231a79c..c735258 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,6 +1,9 @@ import StickyBottomBanner from "@/components/StickyBottomBanner"; import Nav from "@/components/nav/Nav"; +import { Toaster } from "@/components/ui/toaster"; + import "@/styles/globals.css"; + export default function RootLayout({ children, }: { @@ -8,12 +11,25 @@ export default function RootLayout({ }) { return ( + + + + +
+ ); diff --git a/app/page.tsx b/app/page.tsx index df1f9ce..1d8b237 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -222,13 +222,16 @@ const StickyBottomBanner = () => ( ); - +export const metadata = { + title: "CodeNight", + description: "Community of 🇪🇹 developers to showcase their projects" +} export default function Home() { return ( <> - + {/* */}
-