Update header navigation and copyright

This commit is contained in:
Rami Bitar
2026-08-30 14:04:48 -04:00
parent 6e5783e644
commit 4023d124d2
5 changed files with 8 additions and 10 deletions
+3 -4
View File
@@ -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"
} }
} }
} }
+1 -1
View File
@@ -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 },
+1 -1
View File
@@ -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">
+2 -3
View File
@@ -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: {
+1 -1
View File
@@ -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 (