Skip to content

Commit

Permalink
revert(routing): 🔥 remove intercepted routes
Browse files Browse the repository at this point in the history
  • Loading branch information
lloydrichards committed Oct 15, 2023
1 parent ea81c73 commit 7c5abf9
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 109 deletions.
6 changes: 3 additions & 3 deletions src/app/(posts)/PostsNavigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ interface PostsListItemProps {
post: Lab | Blog;
className?: string;
}
const PostListItem: FC<PostsListItemProps> = ({ post, className }) => {
const PostListItem: FC<PostsListItemProps> = ({ post }) => {
return (
<NavigationMenuItem>
<Link href={post.slug} legacyBehavior passHref>
<NavigationMenuLink
className={cn(navigationMenuTriggerStyle(), "w-full gap-2")}
>
<PostIcon type={post.type} />
<h4 className="line-clamp-1 flex-1 overflow-clip">{post.title}</h4>
<h4 className="line-clamp-1 flex-1 text-clip">{post.title}</h4>
<p className="text-sm">{formatDate(new Date(post.date))}</p>
</NavigationMenuLink>
</Link>
Expand All @@ -37,7 +37,7 @@ interface PostIconProps {
type: "Lab" | "Blog";
className?: string;
}
const PostIcon: FC<PostIconProps> = ({ type, className }) => {
const PostIcon: FC<PostIconProps> = ({ type }) => {
switch (type) {
case "Lab":
return <FlaskConical size={24} />;
Expand Down
27 changes: 0 additions & 27 deletions src/app/@modal/(.)projects/[slug]/page.tsx

This file was deleted.

3 changes: 0 additions & 3 deletions src/app/@modal/[...catchAll]/page.tsx

This file was deleted.

27 changes: 0 additions & 27 deletions src/app/@modal/_(.)blogs/[slug]/page.tsx

This file was deleted.

27 changes: 0 additions & 27 deletions src/app/@modal/_(.)labs/[slug]/page.tsx

This file was deleted.

7 changes: 0 additions & 7 deletions src/app/@modal/default.tsx

This file was deleted.

3 changes: 0 additions & 3 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,8 @@ export const metadata = {

export default function RootLayout({
children,
modal,
}: {
children: React.ReactNode;
modal: React.ReactNode;
}) {
return (
<html
Expand All @@ -62,7 +60,6 @@ export default function RootLayout({
<body suppressHydrationWarning={true}>
<Navbar />
{children}
{modal}
<Analytics />
<Footer />
</body>
Expand Down
15 changes: 4 additions & 11 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
import { PostCard } from "@/components/posts/post_card/PostCard";
import { RecentPosts } from "@/components/posts/recent_posts/RecentPosts";
import { ProjectCard } from "@/components/projects/project_card/ProjectCard";
import { SpotlightProjects } from "@/components/projects/spotlight_projects/SpotlightProjects";
import {
allBlogs,
allLabs,
allOccupations,
allProjects,
} from "contentlayer/generated";
import Image from "next/image";
import dynamic from "next/dynamic";
import { allBlogs, allLabs, allOccupations } from "contentlayer/generated";
import { isAfter, subYears } from "date-fns";
import dynamic from "next/dynamic";
import Image from "next/image";

const TimelineDashboard = dynamic(
() => import("@/components/timeline/timeline_dashboard/TimelineDashboard"),
Expand Down Expand Up @@ -52,7 +45,7 @@ export default function Home() {
</p>
</section>
<SpotlightProjects />
<div className="w-full bg-accent px-8 py-8">
<div className="w-full bg-accent p-8">
<RecentPosts posts={[...allLabs, ...allBlogs]} />
</div>
<TimelineDashboard
Expand Down
1 change: 0 additions & 1 deletion src/app/projects/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { ProjectCard } from "@/components/projects/project_card/ProjectCard";
import { SpotlightProjects } from "@/components/projects/spotlight_projects/SpotlightProjects";
import { formatDate } from "@/lib/format";
import { allProjects } from "contentlayer/generated";
Expand Down

0 comments on commit 7c5abf9

Please sign in to comment.