From 8451fe927cfc7436140e92a87144a8c1a84ad69b Mon Sep 17 00:00:00 2001 From: Alexis Benoliel Date: Fri, 9 Aug 2024 16:13:01 +0200 Subject: [PATCH] Fix colors --- app/page.tsx | 119 ++++-------------- .../side-panel/test-side-panel.tsx | 2 +- app/test/page.tsx | 20 +-- .../adapters/default/default.adapter.tsx | 6 +- 4 files changed, 28 insertions(+), 119 deletions(-) diff --git a/app/page.tsx b/app/page.tsx index 05b8d62a7..33068b8de 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -1,7 +1,12 @@ "use client"; import { useAuth0 } from "@auth0/auth0-react"; -import Image from "next/image"; + +import { TestSidePanel } from "@/app/test/_components/side-panel/test-side-panel"; + +import { AnimatedColumnGroup } from "@/shared/components/animated-column-group/animated-column-group"; +import { AnimatedColumn } from "@/shared/components/animated-column-group/animated-column/animated-column"; +import { SecondaryNavigation } from "@/shared/features/navigation/secondary-navigation/secondary-navigation"; export default function Home() { const { isAuthenticated, isLoading, error, loginWithRedirect } = useAuth0(); @@ -20,102 +25,20 @@ export default function Home() { } return ( -
-
-

- Get started by editing  - app/page.tsx -

-
- - By Vercel Logo - -
-
- -
- Next.js Logo -
- -
- -

- Docs{" "} - - -> - -

-

- Find in-depth information about Next.js features and API. -

-
- - -

- Learn{" "} - - -> - -

-

- Learn about Next.js in an interactive course with quizzes! -

-
- - -

- Templates{" "} - - -> - -

-

Explore starter templates for Next.js.

-
- - -

- Deploy{" "} - - -> - -

-

- Instantly deploy your Next.js site to a shareable URL with Vercel. -

-
-
-
+
+ + + +
CONTENT
+
+ +
+
); } diff --git a/app/test/_components/side-panel/test-side-panel.tsx b/app/test/_components/side-panel/test-side-panel.tsx index 3724d277b..bda1ea697 100644 --- a/app/test/_components/side-panel/test-side-panel.tsx +++ b/app/test/_components/side-panel/test-side-panel.tsx @@ -20,7 +20,7 @@ export function TestSidePanel() { autoWidth={false} width={panelSize} initialWidth={200} - className="h-full bg-pink-900" + className="h-full bg-container-4" onClick={onSizeChange} > SIDE PANEL diff --git a/app/test/page.tsx b/app/test/page.tsx index 1dd71f13b..4a0f4bc2c 100644 --- a/app/test/page.tsx +++ b/app/test/page.tsx @@ -5,14 +5,10 @@ import { TestSidePanel } from "@/app/test/_components/side-panel/test-side-panel import { AnimatedColumnGroup } from "@/shared/components/animated-column-group/animated-column-group"; import { AnimatedColumn } from "@/shared/components/animated-column-group/animated-column/animated-column"; import { SecondaryNavigation } from "@/shared/features/navigation/secondary-navigation/secondary-navigation"; -import { cn } from "@/shared/helpers/cn"; -import { useIsMobile } from "@/shared/hooks/ui/use-media-query"; export default function TestPage() { - // TODO UPDATE THIS TO MAKE A COMPONENT - const isMobile = useIsMobile(); return ( -
+
- -
- CONTENT -
+ +
CONTENT
- {/*
*/} - {/*
CONTENT
*/} - {/*
*/}
); } diff --git a/design-system/molecules/item-nav/adapters/default/default.adapter.tsx b/design-system/molecules/item-nav/adapters/default/default.adapter.tsx index 30e67bd63..923212565 100644 --- a/design-system/molecules/item-nav/adapters/default/default.adapter.tsx +++ b/design-system/molecules/item-nav/adapters/default/default.adapter.tsx @@ -47,7 +47,7 @@ function Content({ ); } -export function ItemNavDefaultAdapter({ ...props }: ItemNavPort) { +export function ItemNavDefaultAdapter({ isFolded, ...props }: ItemNavPort) { const { isDisabled, classNames, onClick, ...linkProps } = props; const slots = ItemNavDefaultVariants({ isDisabled, @@ -56,14 +56,14 @@ export function ItemNavDefaultAdapter({ ...props }: ItemNavPort) { if (onClick) { return ( ); } return ( - {({ isExternal }) => } + {({ isExternal }) => } ); }