Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ui): small fixes #1505

Open
wants to merge 23 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 13 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
ed566e7
wip: ruler overflow hard cut-off
shanimal08 Feb 11, 2025
19028d7
wip: stats port error message
shanimal08 Feb 11, 2025
8ab9117
monerod url add button
shanimal08 Feb 11, 2025
8665654
change ruler fix to gradient instead + fix dup translation key
shanimal08 Feb 11, 2025
9136214
fix to cater for block time
shanimal08 Feb 11, 2025
42511b1
merge
shanimal08 Feb 11, 2025
a57f43f
rm commented out code
shanimal08 Feb 11, 2025
d7008eb
Merge branch 'main' into fix/ui_fixes
shanimal08 Feb 11, 2025
122219e
Merge branch 'main' into fix/ui_fixes
shanimal08 Feb 11, 2025
2492b02
Merge branch 'main' into fix/ui_fixes
shanimal08 Feb 11, 2025
86410e7
Merge branch 'main' into fix/ui_fixes
shanimal08 Feb 12, 2025
e4a95ae
fix cargo fmt
shanimal08 Feb 12, 2025
5c2f80f
Merge branch 'main' into fix/ui_fixes
shanimal08 Feb 12, 2025
9b687fa
use i18n context
shanimal08 Feb 12, 2025
8333450
Merge branch 'main' into fix/ui_fixes
shanimal08 Feb 13, 2025
26561fb
Merge branch 'main' into fix/ui_fixes
shanimal08 Feb 13, 2025
52bcaae
Merge branch 'main' into fix/ui_fixes
shanimal08 Feb 14, 2025
dcae794
Merge branch 'main' into fix/ui_fixes
shanimal08 Feb 14, 2025
25a681b
Merge branch 'main' into fix/ui_fixes
shanimal08 Feb 17, 2025
4d59f9e
Merge branch 'main' into fix/ui_fixes
shanimal08 Feb 17, 2025
e500b53
Merge branch 'main' into fix/ui_fixes
shanimal08 Feb 18, 2025
06ce3bd
Merge branch 'main' into fix/ui_fixes
shanimal08 Feb 20, 2025
5674e2a
Merge branch 'main' into fix/ui_fixes
shanimal08 Feb 21, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions public/locales/af/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"importing-wallet-copy": "Tari Universe sal outomaties herbegin sodra jou beursie ingevoer is",
"invalid-seed-words": "Voer 24 woorde in, geskei deur spasies",
"invalid-stats-server-port": "Ongeldige statistieke bedienerpoort",
"invalid-stats-server-port-empty": "Stats server port cannot be empty",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Translate the error message to Afrikaans.

The error message is currently in English while other messages in the file are in Afrikaans. This inconsistency affects the user experience for Afrikaans users.

Apply this diff to translate the message:

-  "invalid-stats-server-port-empty": "Stats server port cannot be empty",
+  "invalid-stats-server-port-empty": "Statistieke bedienerpoort kan nie leeg wees nie",
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"invalid-stats-server-port-empty": "Stats server port cannot be empty",
"invalid-stats-server-port-empty": "Statistieke bedienerpoort kan nie leeg wees nie",

"inviteCode": "Uitnodigingskode",
"is-on-orphan-chain": "Dit lyk of jy aan \"n vurk gekoppel is, en nie die hoofketting nie. Enige blokke wat jy wen, mag ongeldig verklaar word.",
"last-block-added-time": "Tyd toe laaste blok by ketting gevoeg was",
Expand Down
1 change: 1 addition & 0 deletions public/locales/cn/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"importing-wallet-copy": "钱包导入后,Tari Universe 将自动重启",
"invalid-seed-words": "输入24个用空格分隔的单词",
"invalid-stats-server-port": "无效的统计服务器端口",
"invalid-stats-server-port-empty": "Stats server port cannot be empty",
"inviteCode": "邀请代码",
"is-on-orphan-chain": "您似乎连接到了一个分叉,而不是主链。您赢得的任何区块可能会被作废。",
"last-block-added-time": "最后添加到链的块时间",
Expand Down
1 change: 1 addition & 0 deletions public/locales/de/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"importing-wallet-copy": "Tari Universe wird automatisch neu starten, sobald dein Wallet importiert wurde",
"invalid-seed-words": "Geben Sie 24 Wörter ein, getrennt durch Leerzeichen",
"invalid-stats-server-port": "Ungültiger Statistik-Server-Port",
"invalid-stats-server-port-empty": "Stats server port cannot be empty",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Translate the error message to German.

The error message is in English but should be translated to German to maintain consistency with other localized strings.

Apply this diff to translate the message:

-  "invalid-stats-server-port-empty": "Stats server port cannot be empty",
+  "invalid-stats-server-port-empty": "Statistik-Server-Port darf nicht leer sein",
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"invalid-stats-server-port-empty": "Stats server port cannot be empty",
"invalid-stats-server-port-empty": "Statistik-Server-Port darf nicht leer sein",

"inviteCode": "Einladungscode",
"is-on-orphan-chain": "Sie scheinen mit einem Fork verbunden zu sein und nicht mit der Hauptkette. Alle gewonnenen Blöcke könnten ungültig werden.",
"last-block-added-time": "Letzte Blockzeit, die zur Kette hinzugefügt wurde",
Expand Down
1 change: 1 addition & 0 deletions public/locales/en/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"importing-wallet-copy": "Tari Universe will restart automatically once your wallet has been imported",
"invalid-seed-words": "Enter 24 words separated by spaces",
"invalid-stats-server-port": "Invalid stats server port",
"invalid-stats-server-port-empty": "Stats server port cannot be empty",
"inviteCode": "Invite Code",
"is-on-orphan-chain": "You seem to be connected to a fork, and not the main chain. Any blocks you win might be invalidated.",
"last-block-added-time": "Last block added to chain time",
Expand Down
1 change: 1 addition & 0 deletions public/locales/fr/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"importing-wallet-copy": "Tari Universe redémarrera automatiquement une fois que votre portefeuille aura été importé",
"invalid-seed-words": "Entrez 24 mots séparés par des espaces",
"invalid-stats-server-port": "Port du serveur de statistiques invalide",
"invalid-stats-server-port-empty": "Stats server port cannot be empty",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Translate the error message to French.

The error message is in English but should be translated to French to maintain consistency with other localized strings.

Apply this diff to translate the message:

-  "invalid-stats-server-port-empty": "Stats server port cannot be empty",
+  "invalid-stats-server-port-empty": "Le port du serveur de statistiques ne peut pas être vide",
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"invalid-stats-server-port-empty": "Stats server port cannot be empty",
"invalid-stats-server-port-empty": "Le port du serveur de statistiques ne peut pas être vide",

"inviteCode": "Code d\"invitation",
"is-on-orphan-chain": "Vous semblez être connecté à une branche secondaire, et non à la chaîne principale. Tout bloc que vous gagnez pourrait être invalidé.",
"last-block-added-time": "Heure du dernier bloc ajouté à la chaîne",
Expand Down
1 change: 1 addition & 0 deletions public/locales/hi/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"importing-wallet-copy": "एक बार आपका वॉलेट आयात हो जाने पर Tari Universe स्वचालित रूप से पुनः आरंभ होगा",
"invalid-seed-words": "24 शब्दों को स्पेस से अलग करके दर्ज करें",
"invalid-stats-server-port": "अमान्य सांख्यिकी सर्वर पोर्ट",
"invalid-stats-server-port-empty": "Stats server port cannot be empty",
"inviteCode": "आमंत्रण कोड",
"is-on-orphan-chain": "आप एक फोर्क से जुड़े हुए प्रतीत होते हैं, और मुख्य चेन से नहीं। आपके द्वारा जीते गए किसी भी ब्लॉक को अमान्य किया जा सकता है।",
"last-block-added-time": "श्रृंखला में जोड़ा गया अंतिम ब्लॉक समय",
Expand Down
1 change: 1 addition & 0 deletions public/locales/id/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"importing-wallet-copy": "Tari Universe akan memulai ulang secara otomatis setelah dompet Anda diimpor",
"invalid-seed-words": "Masukkan 24 kata yang dipisahkan oleh spasi",
"invalid-stats-server-port": "Port server statistik tidak valid",
"invalid-stats-server-port-empty": "Stats server port cannot be empty",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Translate the error message to Indonesian.

The error message is currently in English while other messages in the file are in Indonesian. This inconsistency affects the user experience for Indonesian users.

Apply this diff to translate the message:

-  "invalid-stats-server-port-empty": "Stats server port cannot be empty",
+  "invalid-stats-server-port-empty": "Port server statistik tidak boleh kosong",
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"invalid-stats-server-port-empty": "Stats server port cannot be empty",
"invalid-stats-server-port-empty": "Port server statistik tidak boleh kosong",

"inviteCode": "Kode Undangan",
"is-on-orphan-chain": "Anda tampaknya terhubung ke cabang, bukan rantai utama. Blok yang Anda menangkan mungkin akan dibatalkan.",
"last-block-added-time": "Waktu blok terakhir ditambahkan ke rantai",
Expand Down
1 change: 1 addition & 0 deletions public/locales/ja/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"importing-wallet-copy": "ウォレットがインポートされると、Tari Universe は自動的に再起動します",
"invalid-seed-words": "スペースで区切って24の単語を入力してください",
"invalid-stats-server-port": "無効な統計サーバーポート",
"invalid-stats-server-port-empty": "Stats server port cannot be empty",
"inviteCode": "招待コード",
"is-on-orphan-chain": "フォークに接続されているようです。メインチェーンではありません。獲得したブロックは無効になる可能性があります。",
"last-block-added-time": "最後のブロックがチェーンに追加された時間",
Expand Down
1 change: 1 addition & 0 deletions public/locales/ko/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"importing-wallet-copy": "지갑이 가져오면 Tari Universe가 자동으로 재시작됩니다",
"invalid-seed-words": "공백으로 구분된 24개의 단어를 입력하세요",
"invalid-stats-server-port": "잘못된 통계 서버 포트",
"invalid-stats-server-port-empty": "Stats server port cannot be empty",
"inviteCode": "초대 코드",
"is-on-orphan-chain": "당신은 포크에 연결된 것 같으며, 메인 체인이 아닙니다. 당신이 획득한 블록은 무효화될 수 있습니다.",
"last-block-added-time": "마지막 블록 체인 추가 시간",
Expand Down
1 change: 1 addition & 0 deletions public/locales/pl/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"importing-wallet-copy": "Tari Universe uruchomi się ponownie automatycznie po zaimportowaniu portfela",
"invalid-seed-words": "Wprowadź 24 słowa oddzielone spacjami",
"invalid-stats-server-port": "Nieprawidłowy port serwera statystyk",
"invalid-stats-server-port-empty": "Stats server port cannot be empty",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Translate the error message to Polish.

The error message is currently in English while other messages in the file are in Polish. This inconsistency affects the user experience for Polish users.

Apply this diff to translate the message:

-  "invalid-stats-server-port-empty": "Stats server port cannot be empty",
+  "invalid-stats-server-port-empty": "Port serwera statystyk nie może być pusty",
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"invalid-stats-server-port-empty": "Stats server port cannot be empty",
"invalid-stats-server-port-empty": "Port serwera statystyk nie może być pusty",

"inviteCode": "Kod Zaproszenia",
"is-on-orphan-chain": "Wygląda na to, że jesteś połączony z rozwidleniem, a nie z głównym łańcuchem. Wszelkie wygrane bloki mogą zostać unieważnione.",
"last-block-added-time": "Czas dodania ostatniego bloku do łańcucha",
Expand Down
1 change: 1 addition & 0 deletions public/locales/ru/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"importing-wallet-copy": "Tari Universe автоматически перезапустится после импорта вашего кошелька",
"invalid-seed-words": "Введите 24 слова, разделенные пробелами",
"invalid-stats-server-port": "Неверный порт сервера статистики",
"invalid-stats-server-port-empty": "Stats server port cannot be empty",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Translate the error message to Russian.

The error message is currently in English while other messages in the file are in Russian. This inconsistency affects the user experience for Russian users.

Apply this diff to translate the message:

-  "invalid-stats-server-port-empty": "Stats server port cannot be empty",
+  "invalid-stats-server-port-empty": "Порт сервера статистики не может быть пустым",
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"invalid-stats-server-port-empty": "Stats server port cannot be empty",
"invalid-stats-server-port-empty": "Порт сервера статистики не может быть пустым",

"inviteCode": "Код приглашения",
"is-on-orphan-chain": "Похоже, вы подключены к форку, а не к основной цепочке. Любые выигранные вами блоки могут быть аннулированы.",
"last-block-added-time": "Время добавления последнего блока в цепь",
Expand Down
1 change: 1 addition & 0 deletions public/locales/tr/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"importing-wallet-copy": "Cüzdanınız içe aktarıldığında Tari Universe otomatik olarak yeniden başlayacak",
"invalid-seed-words": "Boşluklarla ayrılmış 24 kelime girin",
"invalid-stats-server-port": "Geçersiz istatistik sunucu portu",
"invalid-stats-server-port-empty": "Stats server port cannot be empty",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Translate the error message to Turkish.

The error message is currently in English while other messages in the file are in Turkish. This inconsistency affects the user experience for Turkish users.

Apply this diff to translate the message:

-  "invalid-stats-server-port-empty": "Stats server port cannot be empty",
+  "invalid-stats-server-port-empty": "İstatistik sunucu portu boş olamaz",
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"invalid-stats-server-port-empty": "Stats server port cannot be empty",
"invalid-stats-server-port-empty": "İstatistik sunucu portu boş olamaz",

"inviteCode": "Davet Kodu",
"is-on-orphan-chain": "Bir çatal ile bağlantılı görünüyorsunuz, ana zincirle değil. Kazandığınız bloklar geçersiz kılınabilir.",
"last-block-added-time": "Zincir zamanına eklenen son blok",
Expand Down
2 changes: 2 additions & 0 deletions src/components/elements/buttons/IconButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const BaseIconButton = styled.button<StyleProps>`
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
height: 34px;
width: 34px;
border-radius: 100%;
Expand All @@ -22,6 +23,7 @@ const BaseIconButton = styled.button<StyleProps>`
}
&:disabled {
opacity: 0.3;
pointer-events: none;
}

${({ $size }) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,18 @@ import styled from 'styled-components';

export const StyledInput = styled(Input)<{ hasError?: boolean }>(({ theme, hasError }) => ({
borderColor: hasError ? theme.palette.error.main : theme.colorsAlpha.darkAlpha[10],
boxSizing: 'border-box',
}));

export const NodesSettingsContainer = styled.div`
display: flex;
flex-direction: column;

width: 100%;
position: relative;
border-top: 1px solid ${({ theme }) => theme.palette.divider};
padding-top: 20px;
margin-top: 10px;
margin-top: 20px;
&:before {
content: 'Monerod Nodes URLs';
position: absolute;
Expand All @@ -26,3 +28,14 @@ export const NodesSettingsContainer = styled.div`
letter-spacing: -0.1px;
padding-right: 12px;
`;

export const AddButtonContainer = styled.div`
position: absolute;
background-color: ${({ theme }) => theme.palette.background.paper};
top: -18px;
right: 0;
width: 42px;
display: flex;
align-items: center;
justify-content: flex-end;
`;
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { Button } from '@app/components/elements/buttons/Button.tsx';

import { Controller, useFieldArray, useForm } from 'react-hook-form';
import { IconButton } from '@app/components/elements/buttons/IconButton';
import { NodesSettingsContainer, StyledInput } from './MonerodMarkup.styles';
import { AddButtonContainer, NodesSettingsContainer, StyledInput } from './MonerodMarkup.styles';

import {
SettingsGroup,
Expand Down Expand Up @@ -89,9 +89,13 @@ const MonerodMarkup = () => {
)}
</SettingsGroupAction>
</SettingsGroup>

{!form_use_monero_fail ? (
<NodesSettingsContainer>
<AddButtonContainer>
<IconButton onClick={() => append('')}>
<IoAddCircleOutline color="green" size={20} />
</IconButton>
</AddButtonContainer>
{fields.map((field, index) => (
<Stack key={field.id} direction="row" alignItems="center" style={{ margin: '4px 0' }}>
<Controller
Expand All @@ -115,16 +119,11 @@ const MonerodMarkup = () => {
);
}}
/>
{fields.length > 1 && (
<IconButton onClick={() => remove(index)}>
<IoRemoveCircleOutline color="red" size={20} />
</IconButton>
)}
<IconButton onClick={() => remove(index)} disabled={fields.length <= 1}>
<IoRemoveCircleOutline color="red" size={20} />
</IconButton>
</Stack>
))}
<IconButton onClick={() => append('')}>
<IoAddCircleOutline color="green" size={20} />
</IconButton>
</NodesSettingsContainer>
) : null}
</SettingsGroupWrapper>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ const P2poolMarkup = () => {
const [editedCustomStatsServerPort, setEditedCustomStatsServerPort] = useState(customStatsServerPort);
const [isRandomStatsServerPort, setIsRandomStatsServerPort] = useState(!customStatsServerPort);
const [currentStatsServerPort, setCurrentStatsServerPort] = useState(customStatsServerPort);

useEffect(() => {
invoke('get_used_p2pool_stats_server_port').then(setCurrentStatsServerPort).catch(console.error);
}, []);
Expand Down Expand Up @@ -76,6 +75,12 @@ const P2poolMarkup = () => {
[currentStatsServerPort, editedCustomStatsServerPort, isRandomStatsServerPort]
);

const errorMessage = !currentStatsServerInputPort
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nested ternary are hard to read, what about using just i18n context for example ?

const emptyContext = hasStatsServerPortError(currentStatsServerInputPort) ?  "empty" :  "notEmpty"
const errorMessage =  !currentStatsServerInputPort ? t("invalid-stats-server-port", { context: emptyContext }) : null

Docs: https://www.i18next.com/translation-function/context

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oooh nice, thank you @Misieq01 <3

updated!
also changed the contextSeparator in i18init, to keep it consistent with our keys, but LMK if i should revert that and rather change the keys that will use context?

? t('invalid-stats-server-port-empty')
: hasStatsServerPortError(currentStatsServerInputPort)
? t('invalid-stats-server-port')
: null;

return (
<>
<SettingsGroupWrapper>
Expand All @@ -88,7 +93,7 @@ const P2poolMarkup = () => {
</Typography>
</SettingsGroupTitle>
</SettingsGroupContent>
<SettingsGroupAction style={{ alignItems: 'center' }}>
<SettingsGroupAction style={{ alignItems: 'center', minHeight: 50 }}>
{isSaveButtonVisible && <Button onClick={onSave}>{t('save')}</Button>}
</SettingsGroupAction>
</SettingsGroup>
Expand All @@ -108,9 +113,7 @@ const P2poolMarkup = () => {
setEditedCustomStatsServerPort(Number(target.value.trim()));
}}
/>
<ErrorTypography variant="p">
{hasStatsServerPortError(currentStatsServerInputPort) && t('invalid-stats-server-port')}
</ErrorTypography>
<ErrorTypography variant="p">{!isRandomStatsServerPort && errorMessage}</ErrorTypography>
</SettingsGroupContent>
<SettingsGroupAction>
<ToggleSwitch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,24 @@ export const BlockTimeContainer = styled.div`
font-weight: 500;
position: relative;
align-items: flex-end;
z-index: 1;

&:after {
content: '';
position: absolute;
background: linear-gradient(150deg, transparent 50%, #fff 90%);
right: 0;
bottom: 0;
width: 130px;
height: 120px;
z-index: 0;
}
`;

export const TitleTypography = styled(Typography)`
font-size: 13px;
color: ${({ theme }) => theme.palette.text.secondary};
z-index: 1;
`;

export const TimerTypography = styled.div`
Expand All @@ -23,6 +36,7 @@ export const TimerTypography = styled.div`
gap: 2px;
display: flex;
text-transform: uppercase;
z-index: 1;
`;

export const SpacedNum = styled('span')`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import * as m from 'motion/react-m';
import { convertHexToRGBA } from '@app/utils/convertHex.ts';

export const Wrapper = styled.div`
overflow: hidden;
top: 40px;
width: 60vw;
display: flex;
Expand Down
11 changes: 11 additions & 0 deletions src/theme/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@ export const DashboardContainer = styled.div<{ $visualModeOff?: boolean }>`
padding: 20px;
height: 100%;

&:after {
content: '';
position: absolute;
background: radial-gradient(140% 90% at 35% 20%, transparent 93%, #fff 98%);
right: 0;
bottom: 0;
width: 100%;
height: 100%;
z-index: 0;
}

${({ $visualModeOff, theme }) =>
$visualModeOff &&
css`
Expand Down