split features and projects in navbar (#211)
This commit is contained in:
parent
b3156868b4
commit
84d2af5595
@ -30,9 +30,14 @@ export default function Navbar() {
|
||||
label: nav.openSource.title,
|
||||
children: [
|
||||
{
|
||||
key: 'featuresCode',
|
||||
label: `${nav.openSource.features} & ${nav.openSource.code}`,
|
||||
href: 'https://github.com/XProxyTeam/XControl',
|
||||
key: 'features',
|
||||
label: nav.openSource.features,
|
||||
href: '#features',
|
||||
},
|
||||
{
|
||||
key: 'projects',
|
||||
label: nav.openSource.projects,
|
||||
href: '#open-sources',
|
||||
},
|
||||
{
|
||||
key: 'download',
|
||||
@ -113,8 +118,6 @@ export default function Navbar() {
|
||||
<a
|
||||
key={child.key}
|
||||
href={child.href}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className={`block px-4 py-2 hover:bg-white/10 whitespace-nowrap ${
|
||||
activeItem === child.key ? 'text-purple-300' : ''
|
||||
}`}
|
||||
@ -186,8 +189,6 @@ export default function Navbar() {
|
||||
<a
|
||||
key={child.key}
|
||||
href={child.href}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
onClick={() => {
|
||||
setMenuOpen(false)
|
||||
setActiveMenu(item.key)
|
||||
|
||||
@ -15,7 +15,7 @@ export type Translation = {
|
||||
openSource: {
|
||||
title: string
|
||||
features: string
|
||||
code: string
|
||||
projects: string
|
||||
download: string
|
||||
}
|
||||
services: {
|
||||
@ -53,7 +53,7 @@ export const translations: Record<'en' | 'zh', Translation> = {
|
||||
openSource: {
|
||||
title: 'Open Source',
|
||||
features: 'Features',
|
||||
code: 'Code',
|
||||
projects: 'Projects',
|
||||
download: 'Download',
|
||||
},
|
||||
services: {
|
||||
@ -94,7 +94,7 @@ export const translations: Record<'en' | 'zh', Translation> = {
|
||||
openSource: {
|
||||
title: '开源项目',
|
||||
features: '功能特性',
|
||||
code: '代码',
|
||||
projects: '开源项目',
|
||||
download: '下载',
|
||||
},
|
||||
services: {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user