diff --git a/apps/consent/app/components/button/primary-button-component.tsx b/apps/consent/app/components/button/primary-button-component.tsx index a8e69330c5..0f9a86d7cf 100644 --- a/apps/consent/app/components/button/primary-button-component.tsx +++ b/apps/consent/app/components/button/primary-button-component.tsx @@ -25,8 +25,10 @@ const PrimaryButton: React.FC = ({ disabled={loadOrDisable} {...buttonProps} className={`flex-1 ${ - !loadOrDisable ? "bg-orange-500" : "bg-orange-600" - } text-white p-2 rounded-lg text-sm hover:bg-orange-600`} + !loadOrDisable + ? "bg-[var(--primaryButtonBackground)]" + : "bg-[var(--primaryButtonBackground)]" + } text-[var(--primaryButtonFont)] p-2 rounded-lg text-sm hover:bg-[var(--primaryButtonBackground)]`} > {loadOrDisable ? : children} diff --git a/apps/consent/app/components/button/secondary-button-component.tsx b/apps/consent/app/components/button/secondary-button-component.tsx index 96815ddc0e..d786a98a60 100644 --- a/apps/consent/app/components/button/secondary-button-component.tsx +++ b/apps/consent/app/components/button/secondary-button-component.tsx @@ -21,7 +21,7 @@ const SecondaryButton: React.FC = ({ diff --git a/apps/consent/app/components/card/card.module.css b/apps/consent/app/components/card/card.module.css index 7e98888271..bcb2de357b 100644 --- a/apps/consent/app/components/card/card.module.css +++ b/apps/consent/app/components/card/card.module.css @@ -6,11 +6,9 @@ @media (min-width: 768px) { .card { - background-color: white; + background-color: var(--backgroundColor); border-radius: 0.5rem; - box-shadow: - rgba(0, 0, 0, 0.144) 0px 1px 3px 0px, - rgba(27, 31, 35, 0.144) 0px 0px 0px 1px; + box-shadow: var(--shadow); width: auto; margin: auto; width: 25em; diff --git a/apps/consent/app/components/input-component.tsx b/apps/consent/app/components/input-component.tsx index 5239156422..1df23590fb 100644 --- a/apps/consent/app/components/input-component.tsx +++ b/apps/consent/app/components/input-component.tsx @@ -9,11 +9,27 @@ const InputComponent: React.FC = ({ label, id, ...inputProps }) => { return (
{label ? ( -
) } diff --git a/apps/consent/app/components/logo/index.tsx b/apps/consent/app/components/logo/index.tsx index 36a60f68c7..bac3916a8c 100644 --- a/apps/consent/app/components/logo/index.tsx +++ b/apps/consent/app/components/logo/index.tsx @@ -1,11 +1,62 @@ import React from "react" -import Image from "next/image" const Logo: React.FC = () => { return ( -
- Galoy -
+ + + + + + + + + + ) } diff --git a/apps/consent/app/components/main-container/index.tsx b/apps/consent/app/components/main-container/index.tsx index 77fc319166..cda502f690 100644 --- a/apps/consent/app/components/main-container/index.tsx +++ b/apps/consent/app/components/main-container/index.tsx @@ -6,7 +6,7 @@ interface MainContentProps { const MainContent: React.FC = ({ children }) => { return ( -
+
{children}
) diff --git a/apps/consent/app/components/next-themes-provider.tsx b/apps/consent/app/components/next-themes-provider.tsx new file mode 100644 index 0000000000..3a91385da6 --- /dev/null +++ b/apps/consent/app/components/next-themes-provider.tsx @@ -0,0 +1,11 @@ +"use client" +import React, { ReactNode } from "react" +import { ThemeProvider } from "next-themes" + +interface Props { + children: ReactNode +} + +export default function Theme({ children }: Props) { + return {children} +} diff --git a/apps/consent/app/components/scope-item/scope-item.module.css b/apps/consent/app/components/scope-item/scope-item.module.css index 66e3bc0922..f355cf0550 100644 --- a/apps/consent/app/components/scope-item/scope-item.module.css +++ b/apps/consent/app/components/scope-item/scope-item.module.css @@ -8,12 +8,14 @@ border-radius: 0.5rem; margin-bottom: 0.5em; position: relative; + color: var(--inputColor); + background-color: var(--inputBackground); } .custom_label { position: relative; cursor: pointer; - flex-grow: 1; + flex-grow: 1; } .text-gray-700 { diff --git a/apps/consent/app/components/separator.tsx b/apps/consent/app/components/separator.tsx index 343f901929..6e881e4a53 100644 --- a/apps/consent/app/components/separator.tsx +++ b/apps/consent/app/components/separator.tsx @@ -8,13 +8,13 @@ const Separator: React.FC = ({ children }) => { return (
-
+
- + {children}
-
+
) diff --git a/apps/consent/app/consent/page.tsx b/apps/consent/app/consent/page.tsx index 4272170982..3cee7b34ab 100644 --- a/apps/consent/app/consent/page.tsx +++ b/apps/consent/app/consent/page.tsx @@ -132,7 +132,7 @@ const Consent = async ({ searchParams }: { searchParams: ConsentProps }) => {
-

+

Application {client.client_name || client.client_id} wants access resources on your behalf and to:

@@ -141,13 +141,10 @@ const Consent = async ({ searchParams }: { searchParams: ConsentProps }) => { ))} -

+

Do you want to be asked next time when this application wants to access your - data? -

-

- The application will not be able to ask for more permissions without your - consent. + data? The application will not be able to ask for more permissions without + your consent.

    {client.policy_uri && ( @@ -173,7 +170,7 @@ const Consent = async ({ searchParams }: { searchParams: ConsentProps }) => { value="1" className="mr-2" /> -