Update view height
This commit is contained in:
parent
b3317e3a58
commit
63ac7aef69
@ -96,7 +96,7 @@ export default function File({ isValidFile, fileData }) {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{metaData}
|
{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">
|
<div className="flex flex-col text-center items-center justify-center">
|
||||||
<h1 className="text-red-500 text-3xl mb-5">Invalid File</h1>
|
<h1 className="text-red-500 text-3xl mb-5">Invalid File</h1>
|
||||||
<Link href="/">
|
<Link href="/">
|
||||||
@ -123,7 +123,7 @@ export default function File({ isValidFile, fileData }) {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{metaData}
|
{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">
|
<div className="flex flex-col items-center justify-center">
|
||||||
<Text h1 className="font-bold text-lg">
|
<Text h1 className="font-bold text-lg">
|
||||||
{originalFileName} ({fileId}.{ext})
|
{originalFileName} ({fileId}.{ext})
|
||||||
@ -167,6 +167,6 @@ export async function getStaticProps({ params }) {
|
|||||||
isValidFile: file !== null,
|
isValidFile: file !== null,
|
||||||
fileData: JSON.stringify(file || []),
|
fileData: JSON.stringify(file || []),
|
||||||
},
|
},
|
||||||
revalidate: 300, // 5 minutes
|
revalidate: 60, // 1 minute
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,7 @@ import Link from "next/link";
|
|||||||
|
|
||||||
export default function Home() {
|
export default function Home() {
|
||||||
return (
|
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">
|
<Text h1 className="font-bold text-4xl">
|
||||||
Imageify
|
Imageify
|
||||||
</Text>
|
</Text>
|
||||||
|
Reference in New Issue
Block a user