Update footer and initial groundword
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
import { cn } from "@app/core/utils/cn.js";
|
import { cn } from "@app/core/utils/cn.js";
|
||||||
import { AlignLeftIcon, type LucideIcon } from "lucide-react";
|
import { AlignLeftIcon, type LucideIcon } from "lucide-react";
|
||||||
|
import Footer from "./UI/Footer";
|
||||||
|
|
||||||
export interface PageLayoutProps {
|
export interface PageLayoutProps {
|
||||||
label: string;
|
label: string;
|
||||||
@@ -18,6 +19,7 @@ export const PageLayout = ({
|
|||||||
children,
|
children,
|
||||||
}: PageLayoutProps): JSX.Element => {
|
}: PageLayoutProps): JSX.Element => {
|
||||||
return (
|
return (
|
||||||
|
<>
|
||||||
<div className="relative flex h-full w-full flex-col">
|
<div className="relative flex h-full w-full flex-col">
|
||||||
<div className="flex h-14 shrink-0 border-b-[0.5px] border-slate-300 dark:border-slate-700 md:h-16 md:px-4">
|
<div className="flex h-14 shrink-0 border-b-[0.5px] border-slate-300 dark:border-slate-700 md:h-16 md:px-4">
|
||||||
<button
|
<button
|
||||||
@@ -47,11 +49,13 @@ export const PageLayout = ({
|
|||||||
<div
|
<div
|
||||||
className={cn(
|
className={cn(
|
||||||
"flex h-full w-full flex-col overflow-y-auto",
|
"flex h-full w-full flex-col overflow-y-auto",
|
||||||
!noPadding && "p-3",
|
!noPadding && "pl-3 pr-3 ",
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
{children}
|
{children}
|
||||||
|
<Footer />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,9 +1,13 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
|
|
||||||
const Footer = () => {
|
export interface FooterProps
|
||||||
|
extends React.HTMLAttributes<HTMLElement> {}
|
||||||
|
|
||||||
|
const Footer = React.forwardRef<HTMLElement, FooterProps>(
|
||||||
|
({className, ...props}, ref) => {
|
||||||
return (
|
return (
|
||||||
<footer
|
<footer
|
||||||
className="flex justify-center p-4"
|
className={`flex flex- justify-center pl-2 pr-2 pb-2 ${className}`}
|
||||||
style={{
|
style={{
|
||||||
backgroundColor: "var(--backgroundPrimary)",
|
backgroundColor: "var(--backgroundPrimary)",
|
||||||
color: "var(--textPrimary)",
|
color: "var(--textPrimary)",
|
||||||
@@ -18,18 +22,17 @@ const Footer = () => {
|
|||||||
Powered by ▲ Vercel
|
Powered by ▲ Vercel
|
||||||
</a>{" "}
|
</a>{" "}
|
||||||
| Meshtastic® is a registered trademark of Meshtastic LLC. |
|
| Meshtastic® is a registered trademark of Meshtastic LLC. |
|
||||||
|
{" "}
|
||||||
<a
|
<a
|
||||||
href="https://meshtastic.org/docs/legal"
|
href="https://meshtastic.org/docs/legal"
|
||||||
className="hover:underline"
|
className="hover:underline"
|
||||||
style={{ color: "var(--link)" }}
|
style={{ color: "var(--link)" }}
|
||||||
>
|
>
|
||||||
{" "}
|
|
||||||
Legal Information
|
Legal Information
|
||||||
</a>
|
</a>
|
||||||
.
|
|
||||||
</p>
|
</p>
|
||||||
</footer>
|
</footer>
|
||||||
);
|
);
|
||||||
};
|
});
|
||||||
|
|
||||||
export default Footer;
|
export default Footer;
|
||||||
|
|||||||
Reference in New Issue
Block a user