} /> + } /> } /> } /> } /> diff --git a/frontend/src/ui/components/Sidebar.tsx b/frontend/src/ui/components/Sidebar.tsx index 142f945..e4bdb20 100644 --- a/frontend/src/ui/components/Sidebar.tsx +++ b/frontend/src/ui/components/Sidebar.tsx @@ -33,6 +33,7 @@ const Container = styled('section', { const Header = styled('div', { padding: '0.8rem 1rem 1rem 0.8rem', + textAlign: 'center', }); const AppName = styled('h1', { @@ -46,19 +47,40 @@ const AppName = styled('h1', { paddingRight: '0.5rem', }); +const AppLink = styled(Link, { + all: 'unset', + cursor: 'pointer', + color: '$teal12', + '&:visited': { + color: '$teal12', + }, + display: 'flex', + flexDirection: 'column', + variants: { + status: { + active: { + backgroundColor: '$teal4', + borderRadius: '0.5rem', + }, + default: {}, + }, + }, +}); + const VersionLabel = styled('div', { textTransform: 'uppercase', fontSize: '0.75rem', fontWeight: 'bold', color: '$teal8', textAlign: 'center', + paddingBottom: '0.4rem', }); const UpdateButton = styled('a', { textTransform: 'uppercase', fontSize: '0.75rem', fontWeight: 'bold', - color: '$yellow12', + color: '$yellow12 !important', border: '1px solid $yellow7', padding: '0.2rem 0.4rem', marginTop: '0.5rem', @@ -129,6 +151,8 @@ export default function Sidebar({ sections, }: SidebarProps): React.ReactElement { const { t } = useTranslation(); + const resolved = useResolvedPath('/about'); + const matchApp = useMatch({ path: resolved.pathname, end: true }); const client = useSelector((state: RootState) => state.api.client); const [version, setVersion] = useState(null); const [lastVersion, setLastVersion] = @@ -178,13 +202,18 @@ export default function Sidebar({ options={{ scrollbars: { autoHide: 'scroll' } }} >
- - - {APPNAME} - - - {version && !dev ? version : t('debug.dev-build')} - + + + + {APPNAME} + + + {version && !dev ? version : t('debug.dev-build')} + + {!dev && lastVersion && !version.startsWith(lastVersion.name) && ( {t('menu.messages.update-available')} diff --git a/frontend/src/ui/pages/Strimertul.tsx b/frontend/src/ui/pages/Strimertul.tsx new file mode 100644 index 0000000..ff077bc --- /dev/null +++ b/frontend/src/ui/pages/Strimertul.tsx @@ -0,0 +1,5 @@ +import React from 'react'; + +export default function StrimertulPage(): React.ReactElement { + return
; +}