Browse Source

Update footer and initial groundword

pull/274/head
Hunter Thornsberry 2 years ago
parent
commit
7d4001ea9d
  1. 6
      src/components/PageLayout.tsx
  2. 13
      src/components/UI/Footer.tsx

6
src/components/PageLayout.tsx

@ -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>
</>
);
};

13
src/components/UI/Footer.tsx

@ -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;

Loading…
Cancel
Save