From 41a75d50c52475c6a401a460e110c50a88e7eac8 Mon Sep 17 00:00:00 2001 From: jmderby Date: Tue, 29 Oct 2024 10:50:47 -0700 Subject: [PATCH] removed preflight styles, updated powered by --- .../react-ui/src/components/auth/AuthForm.tsx | 5 +- .../methods/farcaster/FarcasterSignIn.tsx | 2 +- .../react-ui/src/components/common/Dialog.tsx | 2 +- .../components/common/PoweredByCrossmint.tsx | 12 +-- .../ui/react-ui/src/icons/poweredByLeaf.tsx | 78 ++++++++++++++++++- .../client/ui/react-ui/src/twind.config.ts | 6 -- 6 files changed, 84 insertions(+), 21 deletions(-) diff --git a/packages/client/ui/react-ui/src/components/auth/AuthForm.tsx b/packages/client/ui/react-ui/src/components/auth/AuthForm.tsx index 4f75cca3..6ab57651 100644 --- a/packages/client/ui/react-ui/src/components/auth/AuthForm.tsx +++ b/packages/client/ui/react-ui/src/components/auth/AuthForm.tsx @@ -43,7 +43,10 @@ export function AuthForm({ className }: { className?: string }) { ) : null} {step === "initial" || step === "otp" ? ( - + ) : null} ); diff --git a/packages/client/ui/react-ui/src/components/auth/methods/farcaster/FarcasterSignIn.tsx b/packages/client/ui/react-ui/src/components/auth/methods/farcaster/FarcasterSignIn.tsx index bc8ac972..41d1ba24 100644 --- a/packages/client/ui/react-ui/src/components/auth/methods/farcaster/FarcasterSignIn.tsx +++ b/packages/client/ui/react-ui/src/components/auth/methods/farcaster/FarcasterSignIn.tsx @@ -32,7 +32,7 @@ export function FarcasterSignIn() { className="font-medium" style={{ margin: "0px 32px", color: appearance?.colors?.textPrimary }} > - Sing in with Farcaster + Sign in with Farcaster Sign in with Farcaster diff --git a/packages/client/ui/react-ui/src/components/common/Dialog.tsx b/packages/client/ui/react-ui/src/components/common/Dialog.tsx index f8743d7d..e5db3818 100644 --- a/packages/client/ui/react-ui/src/components/common/Dialog.tsx +++ b/packages/client/ui/react-ui/src/components/common/Dialog.tsx @@ -42,7 +42,7 @@ const DialogContent = React.forwardRef - - - - Powered by Crossmint +

+

); } diff --git a/packages/client/ui/react-ui/src/icons/poweredByLeaf.tsx b/packages/client/ui/react-ui/src/icons/poweredByLeaf.tsx index 95ffd09f..c00d3f6d 100644 --- a/packages/client/ui/react-ui/src/icons/poweredByLeaf.tsx +++ b/packages/client/ui/react-ui/src/icons/poweredByLeaf.tsx @@ -1,11 +1,83 @@ -export const PoweredByLeaf = ({ color, size = "16" }: { color: string; size?: string }) => { +export const PoweredByLeaf = ({ color }: { color: string }) => { return ( - + + + + + + + + + + + + + + + + + + + diff --git a/packages/client/ui/react-ui/src/twind.config.ts b/packages/client/ui/react-ui/src/twind.config.ts index 51eda6c0..51bc1d09 100644 --- a/packages/client/ui/react-ui/src/twind.config.ts +++ b/packages/client/ui/react-ui/src/twind.config.ts @@ -90,12 +90,6 @@ export default defineConfig({ "500": "500ms", }, }, - fontFamily: { - sans: ["Inter", "sans-serif"], - }, - }, - preflight: { - "@import": `url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap')`, }, rules: [ [