From bd654ae3aa8ec26030cf45101a54f1a8957b4cef Mon Sep 17 00:00:00 2001 From: "MarvinL.com" Date: Tue, 14 Jan 2025 22:59:50 -0400 Subject: [PATCH] ui(nextjs): update ui & fix typo --- .gitignore | 8 -- apps/nextjs/package.json | 1 + apps/nextjs/public/favicon.ico | Bin 103027 -> 0 bytes apps/nextjs/public/t3-icon.svg | 13 ---- .../app/_components/map/navigation-bar.tsx | 8 +- apps/nextjs/src/app/globals.css | 18 ++--- apps/nextjs/src/app/layout.tsx | 2 +- apps/nextjs/src/app/page.tsx | 69 ++++++------------ pnpm-lock.yaml | 3 + 9 files changed, 40 insertions(+), 82 deletions(-) delete mode 100644 apps/nextjs/public/favicon.ico delete mode 100644 apps/nextjs/public/t3-icon.svg diff --git a/.gitignore b/.gitignore index ad78038..ebb5a30 100644 --- a/.gitignore +++ b/.gitignore @@ -53,11 +53,3 @@ dist/ .idea .vscode - -apps/expo/google-services.json - -apps/expo/google-service-account.json - -apps/expo/credentials.json - -apps/expo/credentials/ diff --git a/apps/nextjs/package.json b/apps/nextjs/package.json index 02b8452..71ac2e3 100644 --- a/apps/nextjs/package.json +++ b/apps/nextjs/package.json @@ -33,6 +33,7 @@ "mapbox-gl": "^3.9.1", "marked": "^15.0.5", "next": "^14.2.21", + "next-themes": "^0.4.3", "react": "catalog:react18", "react-dom": "catalog:react18", "superjson": "2.2.1", diff --git a/apps/nextjs/public/favicon.ico b/apps/nextjs/public/favicon.ico deleted file mode 100644 index f0058b404f98275b58117d309a8b3753c54aa619..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 103027 zcmeHQ2Urx>7Ty&Fq9`Ut6j2vDDmIJ}1OxUGd!nMmf}j}1ZmcM4?>&l9P-AQ{vG)cj zHbg~@u`8D_jBtx_mn#`ckav%B9T~REg}+&oJEC- zibMmDmr9jo7hADtFzS4KROO~3(Xx_aQQf-A@|G$h(UI=pbXJv%i$npF#G>LzN#4MM zB2kfrV$qyV9aB9YzsHqD!SK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4XHqtdd@iqWRhiO#MgPNibGd{gPrH%9%pZH0K8rlT0+Gr1+8J~_*ZKUt`+GKFs zXx=m9r*j)Q<(wGbgEjt5&UoBnPK+PU8h89}BjqzbiKBDNS%C2a>7ecz8mjdo zzT=ZnTIG_D86Dms-x)B3NY)t@=vuBX(evet0HXt4|G(9j*+l(l&374Kbf9A|C!ay7 zQ=8&oh6akWJ#n}fH+HH zH6^ROjV!CYeQK6O0;~n(Y{;@CkEUcvVu0h*vLw-Gz#p0=Nrjwr34Sj}KWM{s#|qbf z@f5fr8ps}vGIXOt2Z}S0y-!gPg}fuWe~|#}a|l-(TU5|BrVpnf80CKe=2)idG2Ih$ zsW2+2&sbJNh^p=Y(m-GgkO-s!H32qp`Ke6jwT*z7)sfa2Pk~*mI?8hSsgADG+;OP> zXW$iOSfq}h)%>6A5|l_cHtEYx*U@BPADbC@P5kZ9HeA)WGSVBsTYwt_P5kT8m*O%M zpm{J8P`5_b#7{GK3!rWdit22leiY-{*)<V - - - - - - - - - - - - diff --git a/apps/nextjs/src/app/_components/map/navigation-bar.tsx b/apps/nextjs/src/app/_components/map/navigation-bar.tsx index b42b688..6e5b6ac 100644 --- a/apps/nextjs/src/app/_components/map/navigation-bar.tsx +++ b/apps/nextjs/src/app/_components/map/navigation-bar.tsx @@ -1,11 +1,9 @@ "use client" -import { Dispatch, SetStateAction } from "react" import Link from "next/link" -import { Menu, Search } from "lucide-react" +import { Menu } from "lucide-react" import { Button } from "@oyo/ui/button" -import { Input } from "@oyo/ui/input" import { ThemeToggle } from "@oyo/ui/theme" export function NavigationBar({ @@ -31,8 +29,8 @@ export function NavigationBar({ {/*
-
- */} + */} + diff --git a/apps/nextjs/src/app/globals.css b/apps/nextjs/src/app/globals.css index 9269e4a..aa51ab9 100644 --- a/apps/nextjs/src/app/globals.css +++ b/apps/nextjs/src/app/globals.css @@ -4,13 +4,13 @@ @layer base { :root { - --background: 0 0% 100%; - --foreground: 240 10% 3.9%; + --background: "rgb(239, 232, 221)"; + --foreground: "rgb(36, 40, 43)"; --card: 0 0% 100%; --card-foreground: 240 10% 3.9%; --popover: 0 0% 100%; --popover-foreground: 240 10% 3.9%; - --primary: 327 66% 69%; + --primary: "rgb(94, 23, 235)"; --primary-foreground: 337 65.5% 17.1%; --secondary: 240 4.8% 95.9%; --secondary-foreground: 240 5.9% 10%; @@ -18,7 +18,7 @@ --muted-foreground: 240 3.8% 46.1%; --accent: 240 4.8% 95.9%; --accent-foreground: 240 5.9% 10%; - --destructive: 0 72.22% 50.59%; + --destructive: "rgb(223, 56, 33)"; --destructive-foreground: 0 0% 98%; --border: 240 5.9% 90%; --input: 240 5.9% 90%; @@ -27,21 +27,21 @@ } .dark { - --background: 240 10% 3.9%; - --foreground: 0 0% 98%; + --background: "rgb(36, 40, 43)"; + --foreground: "rgb(239, 232, 221)"; --card: 240 10% 3.9%; --card-foreground: 0 0% 98%; --popover: 240 10% 3.9%; --popover-foreground: 0 0% 98%; - --primary: 264 82% 56%; - --primary-foreground: 337 65.5% 17.1%; + --primary: "rgb(94, 23, 235)"; + --primary-foreground: "rgb(119, 51, 255)"; --secondary: 240 3.7% 15.9%; --secondary-foreground: 0 0% 98%; --muted: 240 3.7% 15.9%; --muted-foreground: 240 5% 64.9%; --accent: 240 3.7% 15.9%; --accent-foreground: 0 0% 98%; - --destructive: 0 62.8% 30.6%; + --destructive: "rgb(223, 56, 33)"; --destructive-foreground: 0 85.7% 97.3%; --border: 240 3.7% 15.9%; --input: 240 3.7% 15.9%; diff --git a/apps/nextjs/src/app/layout.tsx b/apps/nextjs/src/app/layout.tsx index cff80fc..6d393e7 100644 --- a/apps/nextjs/src/app/layout.tsx +++ b/apps/nextjs/src/app/layout.tsx @@ -4,7 +4,7 @@ import { GeistMono } from "geist/font/mono" import { GeistSans } from "geist/font/sans" import { cn } from "@oyo/ui" -import { ThemeProvider, ThemeToggle } from "@oyo/ui/theme" +import { ThemeProvider } from "@oyo/ui/theme" import { Toaster } from "@oyo/ui/toast" import { TRPCReactProvider } from "~/trpc/react" diff --git a/apps/nextjs/src/app/page.tsx b/apps/nextjs/src/app/page.tsx index b7953c7..753ccb8 100644 --- a/apps/nextjs/src/app/page.tsx +++ b/apps/nextjs/src/app/page.tsx @@ -1,24 +1,25 @@ +"use client" + import Image from "next/image" import Link from "next/link" import { MapPin, Navigation, Share2 } from "lucide-react" +import { useTheme } from "next-themes" import { Button } from "@oyo/ui/button" import { Card } from "@oyo/ui/card" - -import { api, HydrateClient } from "~/trpc/server" - -// export const runtime = "edge"; +import { ThemeToggle } from "@oyo/ui/theme" export default function HomePage() { // You can await this here if you don't want to show Suspense fallback below // void api.post.all.prefetch() - + const { resolvedTheme } = useTheme() + const isDark = resolvedTheme === "dark" return ( //
- {/*
- -
*/} +
+ +
- {/*
*/}
@@ -48,31 +42,16 @@ export default function HomePage() { Ne manquez plus aucun groupe grâce à la géolocalisation en direct

-
- {/*
- - -
- - - - -
- } - > - - -
- */} - {/* Hero Section */} - {/* How it Works Section */}
@@ -91,7 +70,7 @@ export default function HomePage() { icon: , title: "Suivez les déplacements", description: - "Sélectionne tes groupes préférés et suis leurs parcours endirect", + "Sélectionne tes groupes préférés et suis leurs parcours en direct", }, { icon: , @@ -111,7 +90,11 @@ export default function HomePage() { ))}
- @@ -120,21 +103,15 @@ export default function HomePage() {
{/* Pour les Membres Section */} -
+
-
+
-

Carvanavalier·e ?

+

Carnavalier·e ?

Télécharge l'application et partage la position de ton groupe en direct. diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index cd976a3..0f075bc 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -323,6 +323,9 @@ importers: next: specifier: ^14.2.21 version: 14.2.23(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + next-themes: + specifier: ^0.4.3 + version: 0.4.4(react-dom@18.3.1(react@18.3.1))(react@18.3.1) react: specifier: catalog:react18 version: 18.3.1