Update footer and initial groundword

This commit is contained in:
Hunter Thornsberry
2024-08-23 18:40:17 -04:00
parent 6c1f140ad1
commit 7d4001ea9d
2 changed files with 13 additions and 6 deletions

View File

@@ -1,5 +1,6 @@
import { cn } from "@app/core/utils/cn.js";
import { AlignLeftIcon, type LucideIcon } from "lucide-react";
import Footer from "./UI/Footer";
export interface PageLayoutProps {
label: string;
@@ -18,6 +19,7 @@ export const PageLayout = ({
children,
}: PageLayoutProps): JSX.Element => {
return (
<>
<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">
<button
@@ -47,11 +49,13 @@ export const PageLayout = ({
<div
className={cn(
"flex h-full w-full flex-col overflow-y-auto",
!noPadding && "p-3",
!noPadding && "pl-3 pr-3 ",
)}
>
{children}
<Footer />
</div>
</div>
</>
);
};

View File

@@ -1,9 +1,13 @@
import React from "react";
const Footer = () => {
export interface FooterProps
extends React.HTMLAttributes<HTMLElement> {}
const Footer = React.forwardRef<HTMLElement, FooterProps>(
({className, ...props}, ref) => {
return (
<footer
className="flex justify-center p-4"
className={`flex flex- justify-center pl-2 pr-2 pb-2 ${className}`}
style={{
backgroundColor: "var(--backgroundPrimary)",
color: "var(--textPrimary)",
@@ -18,18 +22,17 @@ const Footer = () => {
Powered by Vercel
</a>{" "}
| Meshtastic® is a registered trademark of Meshtastic LLC. |
{" "}
<a
href="https://meshtastic.org/docs/legal"
className="hover:underline"
style={{ color: "var(--link)" }}
>
{" "}
Legal Information
</a>
.
</p>
</footer>
);
};
});
export default Footer;