Skip to content

Commit

Permalink
feat: static pages
Browse files Browse the repository at this point in the history
  • Loading branch information
sammaji committed Aug 11, 2023
1 parent 6435ee9 commit 57a26af
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 10 deletions.
2 changes: 1 addition & 1 deletion app/(main)/layout.tsx → app/(main)/(static)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default function LayoutMain({
}) {
return (
<div>
<Navbar />
<Navbar>{undefined}</Navbar>
{children}
</div>
);
Expand Down
4 changes: 2 additions & 2 deletions app/(main)/page.tsx → app/(main)/(static)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ export default function Home() {
Launch in Seconds
</TypographyH1>
<TypographyP className="text-2xl w-2/3 text-center">
Lorem ipsum dolor sit amet consectetur adipisicing elit.
Unde aut quas provident vero illum.
A simple customizable starter kit to quickly bootstrap a
Next.js project.
</TypographyP>
<div className="space-x-4">
<Button size="lg">Get Started</Button>
Expand Down
14 changes: 14 additions & 0 deletions app/(main)/(with-auth)/dashboard/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import Navbar, { NavbarWithAuth } from "@/components/navbar";

export default function LayoutMain({
children,
}: {
children: React.ReactNode;
}) {
return (
<div>
<NavbarWithAuth />
{children}
</div>
);
}
10 changes: 10 additions & 0 deletions app/(main)/(with-auth)/dashboard/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { TypographyH1 } from "@/components/ui/typography";
import React from "react";

export default function PageDashboard() {
return (
<div className="min-h-[calc(100vh-56px)] w-full flex items-center justify-center">
<TypographyH1>Dashboard</TypographyH1>
</div>
);
}
5 changes: 0 additions & 5 deletions app/(main)/dashboard/page.tsx

This file was deleted.

4 changes: 2 additions & 2 deletions middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { authMiddleware } from "@clerk/nextjs";
// Please edit this to allow other routes to be public as needed.
// See https://clerk.com/docs/nextjs/middleware for more information about configuring your middleware
export default authMiddleware({
publicRoutes: ["/", "/(github|twitter|linkedin)"],
ignoredRoutes: ["/(api|trpc)(.*)"],
publicRoutes: ["/(github|twitter|linkedin)"],
ignoredRoutes: ["/", "/(api|trpc)(.*)"],
clockSkewInMs: 100_000,
clockSkewInSeconds: 100,
});
Expand Down

0 comments on commit 57a26af

Please sign in to comment.