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