Update copyright to 2025
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
Copyright 2024, Garden Computing, Inc.
|
||||
Copyright 2025, Garden Computing, Inc.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
@@ -16,4 +16,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
SOFTWARE.
|
||||
|
||||
@@ -17,4 +17,4 @@ For community and support, please join our [Discord](https://discord.gg/utDMjHYg
|
||||
- Community & support: [Discord](https://discord.gg/utDMjHYg42)
|
||||
- Updates: [X](https://x.com/jazz_tools) & [Email](https://garden.co/news)
|
||||
|
||||
Copyright 2024 — Garden Computing, Inc.
|
||||
Copyright 2025 — Garden Computing, Inc.
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
export function Copyright({
|
||||
className,
|
||||
companyName = "Garden Computing, Inc.",
|
||||
}: {
|
||||
companyName?: string;
|
||||
className?: string;
|
||||
}) {
|
||||
return (
|
||||
<p className={className}>
|
||||
© {new Date().getFullYear()} {companyName}
|
||||
</p>
|
||||
);
|
||||
}
|
||||
@@ -4,6 +4,7 @@ import clsx from "clsx";
|
||||
import Link from "next/link";
|
||||
import { usePathname } from "next/navigation";
|
||||
import { ComponentType, ReactNode } from "react";
|
||||
import { Copyright } from "../atoms/Copyright";
|
||||
import { NewsletterForm } from "./NewsletterForm";
|
||||
import { SocialLinks, SocialLinksProps } from "./SocialLinks";
|
||||
|
||||
@@ -18,29 +19,13 @@ type FooterSection = {
|
||||
|
||||
type FooterProps = {
|
||||
logo: ReactNode;
|
||||
companyName: string;
|
||||
sections: FooterSection[];
|
||||
socials: SocialLinksProps;
|
||||
themeToggle: ComponentType<{ className?: string }>;
|
||||
};
|
||||
|
||||
function Copyright({
|
||||
className,
|
||||
companyName,
|
||||
}: {
|
||||
companyName: string;
|
||||
className?: string;
|
||||
}) {
|
||||
return (
|
||||
<p className={clsx(className, "text-sm")}>
|
||||
© {new Date().getFullYear()} {companyName}
|
||||
</p>
|
||||
);
|
||||
}
|
||||
|
||||
export function Footer({
|
||||
logo,
|
||||
companyName,
|
||||
sections,
|
||||
socials,
|
||||
themeToggle: ThemeToggle,
|
||||
@@ -82,10 +67,7 @@ export function Footer({
|
||||
</div>
|
||||
))}
|
||||
|
||||
<Copyright
|
||||
className="order-last col-span-full self-center md:col-span-10 md:order-none"
|
||||
companyName={companyName}
|
||||
/>
|
||||
<Copyright className="text-sm order-last col-span-full self-center md:col-span-10 md:order-none" />
|
||||
|
||||
<div className="col-span-full flex items-center justify-between gap-6 md:col-span-2">
|
||||
<SocialLinks {...socials}></SocialLinks>
|
||||
|
||||
@@ -9,6 +9,7 @@ import { GcmpNav } from "@/components/Nav";
|
||||
import { ThemeToggle } from "@/components/ThemeToggle";
|
||||
import { Analytics } from "@vercel/analytics/react";
|
||||
import { SpeedInsights } from "@vercel/speed-insights/next";
|
||||
import { Copyright } from "gcmp-design-system/src/app/components/atoms/Copyright";
|
||||
|
||||
// If loading a variable font, you don't need to specify the font weight
|
||||
const manrope = Manrope({
|
||||
@@ -98,7 +99,7 @@ export default function RootLayout({
|
||||
<GcmpNav />
|
||||
<main className="flex-1 w-full">{children}</main>
|
||||
<footer className="py-8 text-sm flex justify-between gap-3 w-full container mt-12 md:mt-20">
|
||||
<p>©2024 Garden Computing, Inc.</p>
|
||||
<Copyright />
|
||||
|
||||
<ThemeToggle className="hidden md:block" />
|
||||
</footer>
|
||||
|
||||
@@ -7,7 +7,6 @@ export function JazzFooter() {
|
||||
return (
|
||||
<Footer
|
||||
logo={<GcmpLogo monochrome className="w-36" />}
|
||||
companyName="Garden Computing, Inc."
|
||||
socials={socials}
|
||||
themeToggle={ThemeToggle}
|
||||
sections={[
|
||||
|
||||
Reference in New Issue
Block a user