✨ feat: add service-down error page
This commit is contained in:
7
app/(session)/(main)/home/page.tsx
Normal file
7
app/(session)/(main)/home/page.tsx
Normal file
@ -0,0 +1,7 @@
|
||||
import { redirect } from "next/navigation";
|
||||
|
||||
const page = () => {
|
||||
redirect("/");
|
||||
};
|
||||
|
||||
export default page;
|
||||
13
app/(session)/(main)/layout.tsx
Normal file
13
app/(session)/(main)/layout.tsx
Normal file
@ -0,0 +1,13 @@
|
||||
import Navbar from "@/shared/widgets/navbar/components/Navbar";
|
||||
import React from "react";
|
||||
|
||||
const layout = ({ children }: Readonly<{ children: React.ReactNode }>) => {
|
||||
return (
|
||||
<div className="max-w-400 mx-auto relative">
|
||||
<Navbar />
|
||||
<div className="pt-16">{children}</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default layout;
|
||||
5
app/(session)/(main)/page.tsx
Normal file
5
app/(session)/(main)/page.tsx
Normal file
@ -0,0 +1,5 @@
|
||||
import HomeIndex from "@/features/home";
|
||||
|
||||
export default function Page() {
|
||||
return <HomeIndex />;
|
||||
}
|
||||
Reference in New Issue
Block a user