From ae003af4494c0233bdb416c5f9b9d807b6d80cbb Mon Sep 17 00:00:00 2001
From: Gorbachev Egor <7gorbachevm@gmail.com>
Date: Wed, 15 Nov 2023 17:41:17 +0700
Subject: [PATCH] Telegram UI kit guidlines - border radius and secondary
button
---
src/index.css | 3 ++-
src/screens/deck-form/deck-form.tsx | 2 +-
src/screens/deck-list/deck-loading.tsx | 2 +-
src/screens/deck-list/my-deck.tsx | 2 +-
src/screens/deck-list/public-deck.tsx | 2 +-
src/screens/deck-review/deck-preview.tsx | 8 +++----
src/screens/deck-review/share-deck-button.tsx | 8 +------
src/ui/button.tsx | 23 +++++++++----------
src/ui/progress-bar.tsx | 2 +-
src/ui/theme.tsx | 15 ++++++++----
10 files changed, 33 insertions(+), 34 deletions(-)
diff --git a/src/index.css b/src/index.css
index f7832417..9d7ee5eb 100644
--- a/src/index.css
+++ b/src/index.css
@@ -1,5 +1,6 @@
:root {
- font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
+ font-family: -apple-system, Inter, system-ui, Avenir, Helvetica, Arial,
+ sans-serif;
line-height: 1.5;
font-weight: 400;
font-synthesis: none;
diff --git a/src/screens/deck-form/deck-form.tsx b/src/screens/deck-form/deck-form.tsx
index 3558e247..401fea78 100644
--- a/src/screens/deck-form/deck-form.tsx
+++ b/src/screens/deck-form/deck-form.tsx
@@ -64,7 +64,7 @@ export const DeckForm = observer(() => {
className={css({
cursor: "pointer",
backgroundColor: theme.secondaryBgColor,
- borderRadius: 8,
+ borderRadius: theme.borderRadius,
padding: 12,
})}
>
diff --git a/src/screens/deck-list/deck-loading.tsx b/src/screens/deck-list/deck-loading.tsx
index cb3dca87..8f68607d 100644
--- a/src/screens/deck-list/deck-loading.tsx
+++ b/src/screens/deck-list/deck-loading.tsx
@@ -11,7 +11,7 @@ export const DeckLoading = () => {
justifyContent: "space-between",
cursor: "pointer",
gap: 4,
- borderRadius: 8,
+ borderRadius: theme.borderRadius,
padding: "13px 12px",
background: theme.secondaryBgColor,
})}
diff --git a/src/screens/deck-list/my-deck.tsx b/src/screens/deck-list/my-deck.tsx
index 3f2fe790..d98f7fca 100644
--- a/src/screens/deck-list/my-deck.tsx
+++ b/src/screens/deck-list/my-deck.tsx
@@ -27,7 +27,7 @@ export const MyDeck = observer((props: Props) => {
alignItems: "center",
cursor: "pointer",
gap: 4,
- borderRadius: 8,
+ borderRadius: theme.borderRadius,
padding: 12,
background: theme.secondaryBgColor,
})}
diff --git a/src/screens/deck-list/public-deck.tsx b/src/screens/deck-list/public-deck.tsx
index 5f444577..da71c76b 100644
--- a/src/screens/deck-list/public-deck.tsx
+++ b/src/screens/deck-list/public-deck.tsx
@@ -20,7 +20,7 @@ export const PublicDeck = observer((props: Props) => {
display: "flex",
flexDirection: "column",
gap: 4,
- borderRadius: 8,
+ borderRadius: theme.borderRadius,
padding: 12,
cursor: "pointer",
background: theme.secondaryBgColor,
diff --git a/src/screens/deck-review/deck-preview.tsx b/src/screens/deck-review/deck-preview.tsx
index 56caeeda..a8169ff8 100644
--- a/src/screens/deck-review/deck-preview.tsx
+++ b/src/screens/deck-review/deck-preview.tsx
@@ -35,6 +35,7 @@ export const DeckPreview = observer(() => {
display: "flex",
flexDirection: "column",
gap: 16,
+ paddingTop: 12,
})}
>
{
display: "flex",
flexDirection: "column",
gap: 16,
- borderRadius: 8,
- padding: "8px 12px",
+ borderRadius: theme.borderRadius,
+ padding: "8px 16px",
paddingBottom: 12,
background: theme.secondaryBgColor,
})}
@@ -74,9 +75,8 @@ export const DeckPreview = observer(() => {
{deckListStore.myId && deck.author_id === deckListStore.myId ? (