Template
Update header navigation and copyright
This commit is contained in:
+3
-4
@@ -1,17 +1,16 @@
|
|||||||
{
|
{
|
||||||
"header": {
|
"header": {
|
||||||
"props": {
|
"props": {
|
||||||
"siteName": "Next.js",
|
"siteName": "Logo",
|
||||||
"links": [
|
"links": [
|
||||||
{ "label": "Home", "url": "/" },
|
{ "label": "Home", "url": "/" },
|
||||||
{ "label": "Editor", "url": "/editor" },
|
{ "label": "About", "url": "/about" }
|
||||||
{ "label": "Next.js Docs", "url": "https://nextjs.org/docs" }
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"footer": {
|
"footer": {
|
||||||
"props": {
|
"props": {
|
||||||
"copyright": "© 2026 Next.js Editor Starter"
|
"copyright": "Copyright 2026"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ const footerConfig: ComponentConfig<FooterProps> = {
|
|||||||
category: 'navigation',
|
category: 'navigation',
|
||||||
global: true,
|
global: true,
|
||||||
defaultProps: {
|
defaultProps: {
|
||||||
copyright: '© 2026 Next.js Editor Starter',
|
copyright: 'Copyright 2026',
|
||||||
},
|
},
|
||||||
fields: {
|
fields: {
|
||||||
copyright: { label: 'Copyright', type: 'text', contentEditable: true },
|
copyright: { label: 'Copyright', type: 'text', contentEditable: true },
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ export type FooterProps = {
|
|||||||
copyright?: string;
|
copyright?: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export default function Footer({ copyright = '© 2026 Next.js Editor Starter' }: FooterProps) {
|
export default function Footer({ copyright = 'Copyright 2026' }: FooterProps) {
|
||||||
return (
|
return (
|
||||||
<footer className="h-16 bg-background">
|
<footer className="h-16 bg-background">
|
||||||
<div className="page-shell flex h-full items-center text-xs text-muted-foreground">
|
<div className="page-shell flex h-full items-center text-xs text-muted-foreground">
|
||||||
|
|||||||
@@ -8,11 +8,10 @@ const headerConfig: ComponentConfig<HeaderProps> = {
|
|||||||
category: 'navigation',
|
category: 'navigation',
|
||||||
global: true,
|
global: true,
|
||||||
defaultProps: {
|
defaultProps: {
|
||||||
siteName: 'Next.js',
|
siteName: 'Logo',
|
||||||
links: [
|
links: [
|
||||||
{ label: 'Home', url: '/' },
|
{ label: 'Home', url: '/' },
|
||||||
{ label: 'Editor', url: '/editor' },
|
{ label: 'About', url: '/about' },
|
||||||
{ label: 'Next.js Docs', url: 'https://nextjs.org/docs' },
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
fields: {
|
fields: {
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ export type HeaderProps = {
|
|||||||
links?: NavigationLink[];
|
links?: NavigationLink[];
|
||||||
};
|
};
|
||||||
|
|
||||||
export default function Header({ siteName = 'Next.js', links = [] }: HeaderProps) {
|
export default function Header({ siteName = 'Logo', links = [] }: HeaderProps) {
|
||||||
const [open, setOpen] = useState(false);
|
const [open, setOpen] = useState(false);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user