Update view height

This commit is contained in:
Lee 2022-11-23 10:44:41 +00:00
parent b3317e3a58
commit 63ac7aef69
No known key found for this signature in database
GPG Key ID: 6EA25896ECCB3121
2 changed files with 4 additions and 4 deletions

View File

@ -96,7 +96,7 @@ export default function File({ isValidFile, fileData }) {
return (
<>
{metaData}
<div className="h-screen flex items-center justify-center">
<div className="h-[89.9vh] flex items-center justify-center">
<div className="flex flex-col text-center items-center justify-center">
<h1 className="text-red-500 text-3xl mb-5">Invalid File</h1>
<Link href="/">
@ -123,7 +123,7 @@ export default function File({ isValidFile, fileData }) {
return (
<>
{metaData}
<div className="h-screen flex items-center justify-center">
<div className="h-[89.9vh] flex items-center justify-center">
<div className="flex flex-col items-center justify-center">
<Text h1 className="font-bold text-lg">
{originalFileName} ({fileId}.{ext})
@ -167,6 +167,6 @@ export async function getStaticProps({ params }) {
isValidFile: file !== null,
fileData: JSON.stringify(file || []),
},
revalidate: 300, // 5 minutes
revalidate: 60, // 1 minute
};
}

View File

@ -3,7 +3,7 @@ import Link from "next/link";
export default function Home() {
return (
<div className="h-screen flex flex-col items-center justify-center">
<div className="h-[89.9vh] flex flex-col items-center justify-center">
<Text h1 className="font-bold text-4xl">
Imageify
</Text>