2023-08-01 15:20:05 -05:00
|
|
|
import Image from "next/image";
|
|
|
|
import React, { ReactNode } from "react";
|
|
|
|
|
|
|
|
interface Props {
|
|
|
|
text?: string;
|
|
|
|
children: ReactNode;
|
|
|
|
}
|
|
|
|
|
|
|
|
export default function CenteredForm({ text, children }: Props) {
|
|
|
|
return (
|
|
|
|
<div className="absolute top-0 bottom-0 left-0 right-0 flex justify-center items-center p-2">
|
|
|
|
<div className="m-auto flex flex-col gap-2">
|
|
|
|
<Image
|
|
|
|
src="/linkwarden.png"
|
|
|
|
width={518}
|
|
|
|
height={145}
|
|
|
|
alt="Linkwarden"
|
|
|
|
className="h-12 w-fit mx-auto"
|
|
|
|
/>
|
|
|
|
{text ? (
|
2023-08-06 09:13:45 -05:00
|
|
|
<p className="text-lg sm:w-[30rem] w-80 mx-auto font-semibold text-black dark:text-white px-2 text-center">
|
2023-08-01 15:20:05 -05:00
|
|
|
{text}
|
|
|
|
</p>
|
|
|
|
) : undefined}
|
|
|
|
{children}
|
2023-08-06 09:13:45 -05:00
|
|
|
<p className="text-center text-xs text-gray-500 dark:text-sky-500">
|
2023-08-01 15:20:05 -05:00
|
|
|
© {new Date().getFullYear()} Linkwarden. All rights reserved.
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|