Skip to content

Commit

Permalink
header title
Browse files Browse the repository at this point in the history
Signed-off-by: laixingyou <[email protected]>
  • Loading branch information
coder-sett committed Nov 21, 2023
1 parent e779616 commit dea27af
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 22 deletions.
17 changes: 9 additions & 8 deletions src/components/Header/MobileHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,22 @@ const MobileHeader: React.FC<PropsWithChildren> = ({ children }) => {
icon: null,
legacyBehavior: true,
},
{
title: translate({ id: 'header.docs' }),
href: '/docs/dimensions-define',
icon: null,
},
{
title: translate({ id: 'header.projects' }),
href: '/explore',
icon: null,
legacyBehavior: true,
},
{
title: translate({ id: 'header.Docs' }),
href: '/docs/dimensions-define',
title: translate({ id: 'header.lab' }),
href: '/lab',
icon: null,
legacyBehavior: true,
},
{
title: translate({ id: 'header.community' }),
Expand All @@ -68,12 +74,7 @@ const MobileHeader: React.FC<PropsWithChildren> = ({ children }) => {
href: '/blog',
icon: null,
},
{
title: translate({ id: 'header.lab' }),
href: '/lab',
icon: null,
legacyBehavior: true,
},

{
title: translate({ id: 'header.about' }),
href: '/about',
Expand Down
26 changes: 12 additions & 14 deletions src/components/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,34 +30,32 @@ const Header: React.FC<{
<Logo color="white" />
</a>

<a
href="/explore"
className={'mx-6 px-2.5 font-medium text-white 2xl:mx-2'}
>
<Translate id={'header.projects'} />
</a>

<Link
href="/docs/dimensions-define"
className={
'mx-6 flex-shrink-0 px-2.5 font-medium text-white 2xl:mx-2'
}
>
<Translate id={'header.Docs'} />
</Link>

<CommunityDropdown />

<Link href="/blog" className={'mx-6 px-2.5 font-medium text-white'}>
<Translate id={'header.news'} />
<Translate id={'header.docs'} />
</Link>

<a
href="/explore"
className={'mx-6 px-2.5 font-medium text-white 2xl:mx-2'}
>
<Translate id={'header.projects'} />
</a>
<a
href="/lab"
className={'mx-6 px-2.5 font-medium text-white 2xl:mx-2'}
>
<Translate id={'header.lab'} />
</a>
<CommunityDropdown />

<Link href="/blog" className={'mx-6 px-2.5 font-medium text-white'}>
<Translate id={'header.news'} />
</Link>

<a
href="/about"
Expand Down

1 comment on commit dea27af

@vercel
Copy link

@vercel vercel bot commented on dea27af Nov 21, 2023

Choose a reason for hiding this comment

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

Please sign in to comment.