mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
chore(docs): nextui inc added to the footer
This commit is contained in:
parent
12cebcfdac
commit
a8dc5b429a
@ -3,9 +3,8 @@
|
||||
import dynamic from "next/dynamic";
|
||||
import {usePathname} from "next/navigation";
|
||||
|
||||
import {siteConfig} from "@/config/site";
|
||||
import {getCurrentYear} from "@/utils/time";
|
||||
|
||||
const Link = dynamic(() => import("@nextui-org/react").then((mod) => mod.Link));
|
||||
const VercelCallout = dynamic(() => import("./vercel-callout").then((mod) => mod.VercelCallout));
|
||||
|
||||
export const Footer = () => {
|
||||
@ -18,12 +17,7 @@ export const Footer = () => {
|
||||
return (
|
||||
<footer className="container mx-auto max-w-7xl pb-12 px-12">
|
||||
<div className="flex flex-col justify-center items-center gap-1">
|
||||
<p className="text-sm text-default-400">
|
||||
Created by
|
||||
<Link isExternal className="text-sm" href={siteConfig.links.portfolio}>
|
||||
Junior Garcia
|
||||
</Link>
|
||||
</p>
|
||||
<p className="text-sm text-default-400">© {getCurrentYear()} NextUI Inc.</p>
|
||||
<VercelCallout />
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
3
apps/docs/utils/time.ts
Normal file
3
apps/docs/utils/time.ts
Normal file
@ -0,0 +1,3 @@
|
||||
export function getCurrentYear(): number {
|
||||
return new Date().getFullYear();
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user