aboutsummaryrefslogtreecommitdiff
path: root/components/navbar.tsx
diff options
context:
space:
mode:
authorlonkaars <l.leblansch@gmail.com>2021-04-21 09:57:40 +0200
committerlonkaars <l.leblansch@gmail.com>2021-04-21 09:57:40 +0200
commitde2853cc4793b7948b94525a0a4f964e49943131 (patch)
tree4b8a15dccf1b8d9d3aea80899fe36cedcc09af23 /components/navbar.tsx
parent93f24011f9613b7785b37dc4b0c963d9be22ba30 (diff)
even more components without inline css
Diffstat (limited to 'components/navbar.tsx')
-rw-r--r--components/navbar.tsx42
1 files changed, 4 insertions, 38 deletions
diff --git a/components/navbar.tsx b/components/navbar.tsx
index 7f6e694..5ce43bb 100644
--- a/components/navbar.tsx
+++ b/components/navbar.tsx
@@ -54,25 +54,7 @@ export function NavBar() {
})();
}, []);
- return <div
- className='navbar bg-800'
- style={{
- width: 48,
- height: '100%',
-
- lineHeight: 0,
-
- display: 'inline-block',
-
- position: 'fixed',
- top: 0,
- left: 0,
-
- overflow: 'visible',
- whiteSpace: 'nowrap',
- zIndex: 2,
- }}
- >
+ return <div className='navbar bg-800 h100vh dispinbl t0 l0 posfix'>
<div className='item'>
<Logo />
</div>
@@ -90,29 +72,13 @@ export function NavBar() {
</a>
<div className='bg-800 bottomArea'>
- {loggedIn && <a
- className='item'
- style={{
- overflow: 'visible',
- position: 'relative',
- }}
- >
+ {loggedIn && <a className='notifications item posrel'>
<div
- style={{ cursor: 'pointer' }}
+ className='iconWrapper'
onClick={() => setNotificationsAreaVisible(!notificationsAreaVisible)}
>
<NotificationsIcon />
- {gotNotifications && <div
- style={{
- backgroundColor: 'var(--disk-a)',
- width: 8,
- height: 8,
- borderRadius: 4,
- position: 'absolute',
- top: 2,
- right: 2,
- }}
- />}
+ {gotNotifications && <div className='notificationDot posabs' />}
</div>
<NotificationsArea
visible={notificationsAreaVisible}