-
Notifications
You must be signed in to change notification settings - Fork 59
/
Copy pathcoming-soon.tsx
46 lines (42 loc) · 1.19 KB
/
coming-soon.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import Image from "next/image";
import Link from "next/link";
import { useTranslations } from "next-intl";
import AppHeader from "../components/Header/AppHeader";
import { GetStaticProps } from "next";
const ComingSoon = () => {
const t = useTranslations("Others");
return (
<>
<AppHeader title="Coming Soon!" />
<div className="flex flex-col h-screen justify-center items-center">
<h1 className="text-3xl tracking-wider leading-10">
{t("coming_soon")}
</h1>
<h2 className="text-2xl text-gray500 mt-2">
{t("page_not_created_msg")}
</h2>
<Image
src="/bg-img/coding.svg"
alt="Not created yet"
width={400}
height={300}
/>
<span className="text-gray400">
{t("go_back_to")}{" "}
<Link href="/">
<a className="underline font-bold hover:text-gray500">home page</a>
</Link>
?
</span>
</div>
</>
);
};
export const getStaticProps: GetStaticProps = async ({ locale }) => {
return {
props: {
messages: (await import(`../messages/common/${locale}.json`)).default,
},
};
};
export default ComingSoon;