Skip to content

Commit

Permalink
Merge pull request #69 from ruru-m07/feat/theme
Browse files Browse the repository at this point in the history
feat(ui): implement custom theme functionality
  • Loading branch information
ruru-m07 authored Sep 19, 2024
2 parents bbf4024 + 5ca0706 commit e582a8d
Show file tree
Hide file tree
Showing 56 changed files with 9,122 additions and 7,223 deletions.
6 changes: 3 additions & 3 deletions apps/www/__registry__/blocks/index.ts

Large diffs are not rendered by default.

8 changes: 7 additions & 1 deletion apps/www/app/(home)/blocks/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import { Footer } from "@/components/footer";
import { ReactNode } from "react";

export default function BlocksLayout({ children }: { children: ReactNode }) {
return <div className="mx-4 md:mx-24 lg:mx-36 py-4">{children}</div>;
return (
<>
<div className="mx-4 md:mx-24 lg:mx-36 py-4">{children}</div>
<Footer />
</>
);
}
30 changes: 1 addition & 29 deletions apps/www/app/(home)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,33 +7,5 @@ export default function Layout({
}: {
children: ReactNode;
}): React.ReactElement {
return (
<HomeLayout {...baseOptions}>
{children}
<Footer />
</HomeLayout>
);
}

function Footer(): React.ReactElement {
return (
<footer className="mt-auto border-t bg-fd-card py-12 text-fd-secondary-foreground">
<div className="container flex flex-col gap-4 ">
<div>
<p className="mb-1 text-sm font-semibold">Ruru UI</p>
<p className="text-xs">
Built with ❤️ by{" "}
<a
href="https://github.com/ruru-m07"
rel="noreferrer noopener"
target="_blank"
className="font-medium"
>
Ruru
</a>
</p>
</div>
</div>
</footer>
);
return <HomeLayout {...baseOptions}>{children}</HomeLayout>;
}
Loading

0 comments on commit e582a8d

Please sign in to comment.