diff --git a/src/renderer/components/CapeCard.tsx b/src/renderer/components/CapeCard.tsx index cee0c2b..7646445 100644 --- a/src/renderer/components/CapeCard.tsx +++ b/src/renderer/components/CapeCard.tsx @@ -67,6 +67,7 @@ export default function CapeCard({ width: 200, overflow: 'hidden', position: 'relative', // для позиционирования ценника + borderRadius: '1vw', }} > {/* Ценник для магазина */} @@ -97,7 +98,13 @@ export default function CapeCard({ }} /> - + {capeName} @@ -108,8 +115,8 @@ export default function CapeCard({ onClick={() => onAction(capeId)} disabled={actionDisabled} sx={{ - borderRadius: '20px', - p: '5px 25px', + borderRadius: '2vw', + p: '0.5vw 2.5vw', color: 'white', backgroundColor: 'rgb(0, 134, 0)', '&:hover': { diff --git a/src/renderer/components/TopBar.tsx b/src/renderer/components/TopBar.tsx index 91560ea..62a8a53 100644 --- a/src/renderer/components/TopBar.tsx +++ b/src/renderer/components/TopBar.tsx @@ -102,6 +102,11 @@ export default function TopBar({ onRegister, username }: TopBarProps) { } }, [username]); + const logout = () => { + localStorage.removeItem('launcher_config'); + navigate('/login'); + }; + return ( + {!isLoginPage && !isRegistrationPage && username && ( + + )} {/* Кнопка регистрации, если на странице логина */} - {username && ( + {!isLoginPage && !isRegistrationPage && username && ( Ваши плащи @@ -432,7 +432,7 @@ export default function Profile() { sx={{ display: 'flex', flexDirection: 'row', - gap: 2, + gap: '2vw', flexWrap: 'wrap', }} >