Skip to content

Commit b8c1e82

Browse files
committed
Use term "My dashboard", remove bg, mobile icon
1 parent 829c8b6 commit b8c1e82

File tree

4 files changed

+31
-24
lines changed

4 files changed

+31
-24
lines changed

public/static/osmteams_logo--neg.svg

Lines changed: 1 addition & 2 deletions
Loading

public/static/osmteams_logo--pos.svg

Lines changed: 1 addition & 2 deletions
Loading

src/components/page-header.js

Lines changed: 27 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,13 @@ export default function PageHeader() {
9393
spacing={4}
9494
display={{ base: 'none', md: 'flex' }}
9595
>
96-
{Links.map((link) => (
97-
<NavLink href={link.url} passHref key={link.url} legacyBehavior>
96+
{isAuthenticated && (
97+
<NavLink href={'/dashboard'} passHref legacyBehavior>
9898
<Button
9999
as='a'
100100
variant='outline'
101-
textTransform={'lowercase'}
102101
size='sm'
102+
textTransform={'lowercase'}
103103
_hover={{ background: 'brand.200', textDecoration: 'none' }}
104104
sx={{
105105
'.active&': {
@@ -109,17 +109,17 @@ export default function PageHeader() {
109109
},
110110
}}
111111
>
112-
{link.name}
112+
My Dashboard
113113
</Button>
114114
</NavLink>
115-
))}
116-
{isAuthenticated && (
117-
<NavLink href={'/dashboard'} passHref legacyBehavior>
115+
)}
116+
{Links.map((link) => (
117+
<NavLink href={link.url} passHref key={link.url} legacyBehavior>
118118
<Button
119119
as='a'
120120
variant='outline'
121-
size='sm'
122121
textTransform={'lowercase'}
122+
size='sm'
123123
_hover={{ background: 'brand.200', textDecoration: 'none' }}
124124
sx={{
125125
'.active&': {
@@ -129,10 +129,10 @@ export default function PageHeader() {
129129
},
130130
}}
131131
>
132-
Dashboard
132+
{link.name}
133133
</Button>
134134
</NavLink>
135-
)}
135+
))}
136136
</HStack>
137137
</HStack>
138138
<Flex alignItems={'center'} ml={'auto'}>
@@ -186,7 +186,7 @@ export default function PageHeader() {
186186

187187
<MenuItem bg='inherit'>
188188
<NavLink href='/dashboard'>
189-
<span>Dashboard</span>
189+
<span>My Dashboard</span>
190190
</NavLink>
191191
</MenuItem>
192192
<MenuDivider />
@@ -223,27 +223,36 @@ export default function PageHeader() {
223223
color='brand.600'
224224
fontFamily='mono'
225225
size='sm'
226+
display='flex'
227+
alignItems='center'
228+
gap={1}
226229
as='a'
227230
_hover={{ textDecoration: 'none' }}
228231
>
232+
<Image
233+
src='/static/osmteams_logo--pos.svg'
234+
alt={'OSM Teams Logo'}
235+
width='48'
236+
height='48'
237+
/>
229238
osm_teams
230239
</Heading>
231240
</NavLink>
232241
<List spacing='8' mt={8}>
242+
{isAuthenticated && (
243+
<ListItem>
244+
<NavLink href={'/dashboard'}>
245+
<span>My Dashboard</span>
246+
</NavLink>
247+
</ListItem>
248+
)}
233249
{Links.map((link) => (
234250
<ListItem key={link.url}>
235251
<NavLink href={link.url}>
236252
<span>{link.name}</span>
237253
</NavLink>
238254
</ListItem>
239255
))}
240-
{isAuthenticated && (
241-
<ListItem>
242-
<NavLink href={'/dashboard'}>
243-
<span>Dashboard</span>
244-
</NavLink>
245-
</ListItem>
246-
)}
247256
</List>
248257
</DrawerBody>
249258
</DrawerContent>

src/pages/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ const VHS = keyframes`
3636
}
3737
`
3838
const Links = [
39+
{ url: '/dashboard', name: 'My Dashboard' },
3940
{ url: '/teams', name: 'Explore all teams' },
4041
{ url: '/teams/create', name: 'Create new team' },
41-
{ url: '/dashboard', name: 'dashboard' },
4242
]
4343

4444
export default function Home() {
@@ -97,7 +97,7 @@ export default function Home() {
9797
transition={'text-shadow 0.5s ease'}
9898
variant='outline'
9999
colorScheme={'white'}
100-
fontSize={[null, '0.8rem', '1rem', '1.25rem']}
100+
fontSize={['0.75rem', '0.8rem', '1rem', '1.25rem']}
101101
whiteSpace='pre'
102102
>
103103
{title}

0 commit comments

Comments
 (0)