From 8186cd934a18c6dbd45f1ee6f8988c40de279be8 Mon Sep 17 00:00:00 2001 From: Gilbert Date: Thu, 8 Aug 2024 22:39:45 -0500 Subject: [PATCH] Implement figma styles --- .prettierrc.cjs | 6 + package.json | 3 +- public/img/logo.svg | 10 ++ public/img/logomark.svg | 5 + public/index.html | 20 ++- src/App.css | 38 ----- src/App.tsx | 10 +- src/components/Header.tsx | 41 +++-- src/components/TermsAndConditionsCard.tsx | 129 +++++++++------- src/components/TermsAndConditionsDialog.tsx | 32 ++-- src/components/ui/BodyText.tsx | 10 ++ src/components/ui/Button.tsx | 100 ++++++++++++ src/components/ui/Card.tsx | 46 ++++++ src/index.css | 54 +++++-- src/layout/SignPageLayout.tsx | 72 +++------ src/pages/ConnectWallet.tsx | 51 ++----- src/pages/OnboardingSuccess.tsx | 81 +++++----- src/pages/SignWithCosmos.tsx | 159 +++++++++++--------- src/pages/SignWithNitroKey.tsx | 139 +++++++++-------- src/pages/TermsAndConditions.tsx | 55 +++---- tailwind.config.js | 71 +++++++++ yarn.lock | 24 ++- 22 files changed, 689 insertions(+), 467 deletions(-) create mode 100644 .prettierrc.cjs create mode 100644 public/img/logo.svg create mode 100644 public/img/logomark.svg delete mode 100644 src/App.css create mode 100644 src/components/ui/BodyText.tsx create mode 100644 src/components/ui/Button.tsx create mode 100644 src/components/ui/Card.tsx create mode 100644 tailwind.config.js diff --git a/.prettierrc.cjs b/.prettierrc.cjs new file mode 100644 index 0000000..166e019 --- /dev/null +++ b/.prettierrc.cjs @@ -0,0 +1,6 @@ +module.exports = { + trailingComma: 'all', + printWidth: 100, + tabWidth: 2, + arrowParens: 'always', +} diff --git a/package.json b/package.json index 7fb041e..3d97201 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,8 @@ "resolve": "^1.20.0", "semver": "^7.3.5", "stream-browserify": "^3.0.0", - "tailwindcss": "^3.0.2", + "tailwind-variants": "^0.2.1", + "tailwindcss": "^3.4.8", "typescript": "^4.9.5" }, "scripts": { diff --git a/public/img/logo.svg b/public/img/logo.svg new file mode 100644 index 0000000..9d1038e --- /dev/null +++ b/public/img/logo.svg @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/public/img/logomark.svg b/public/img/logomark.svg new file mode 100644 index 0000000..cdff782 --- /dev/null +++ b/public/img/logomark.svg @@ -0,0 +1,5 @@ + + + diff --git a/public/index.html b/public/index.html index af672cf..aaece55 100644 --- a/public/index.html +++ b/public/index.html @@ -5,10 +5,7 @@ - + + + + + + Testnet Onboarding App -
+