Skip to content

Commit 0c1840b

Browse files
committed
Revert adding motion to blog pages
This reverts commit d276528.
1 parent d276528 commit 0c1840b

5 files changed

Lines changed: 18 additions & 102 deletions

File tree

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
"clsx": "^2.1.1",
2222
"gray-matter": "^4.0.3",
2323
"lucide-react": "^0.523.0",
24-
"motion": "^12.23.12",
2524
"next": "15.3.4",
2625
"next-mdx-remote": "^5.0.0",
2726
"next-themes": "^0.4.6",

pnpm-lock.yaml

Lines changed: 0 additions & 60 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/app/blog/posts/[slug]/page.tsx

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import { getMDXComponents } from "@/mdx-components";
99
import { posts } from "@/utils/posts";
1010
import rehypeSlug from "rehype-slug";
1111
import BlogPostTracker from "@/components/blog-post-tracker";
12-
import Transition from "@/components/ui/transition";
1312

1413
type PageProps = {
1514
params: Promise<{
@@ -35,26 +34,24 @@ export default async function Page({ params }: {
3534
return (
3635
<main className="md:max-w-3xl w-full px-8 m-auto">
3736
<BlogPostTracker postId={idx}/>
38-
<Transition>
39-
<h1
40-
className={`${post.title.length <= 20 ? "text-4xl" : "text-3xl"} font-bold text-foreground`}
41-
>
42-
{post.title}
43-
</h1>
44-
<h2 className="text-xl mb-2 text-foreground/60">
45-
{post.date}{post.author}
46-
</h2>
47-
<MDXRemote
48-
source={post.content}
49-
components={components}
50-
options={{
51-
mdxOptions: {
52-
remarkPlugins: [remarkGfm],
53-
rehypePlugins: [rehypeUnwrapImages, rehypeSlug],
54-
},
55-
}}
56-
/>
57-
</Transition>
37+
<h1
38+
className={`${post.title.length <= 20 ? "text-4xl" : "text-3xl"} font-bold text-foreground`}
39+
>
40+
{post.title}
41+
</h1>
42+
<h2 className="text-xl mb-2 text-foreground/60">
43+
{post.date}{post.author}
44+
</h2>
45+
<MDXRemote
46+
source={post.content}
47+
components={components}
48+
options={{
49+
mdxOptions: {
50+
remarkPlugins: [remarkGfm],
51+
rehypePlugins: [rehypeUnwrapImages, rehypeSlug],
52+
},
53+
}}
54+
/>
5855
{(prev || next) && (
5956
<BlogFooter prevSlug={prev?.slug} nextSlug={next?.slug} />
6057
)}

src/app/layout.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import AchievementsProvider from "@/components/achievements-provider";
99
import { posts } from "@/utils/posts";
1010
import { ToasterProvider } from "@/components/toaster-provider";
1111
import ShopProvider from "@/components/shop-provider";
12-
import Transition from "@/components/ui/transition";
1312

1413
const karlaSans = Karla({
1514
variable: "--font-karla",

src/components/ui/transition.tsx

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)