Skip to content

Commit 157e5e6

Browse files
refactor and rename page and components file name
1 parent 6cac98d commit 157e5e6

File tree

9 files changed

+6
-5
lines changed

9 files changed

+6
-5
lines changed

components.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"tsx": false,
66
"tailwind": {
77
"config": "",
8-
"css": "src/app/styles/global.css",
8+
"css": "src/app/styles/app.css",
99
"baseColor": "neutral",
1010
"cssVariables": true,
1111
"prefix": ""

next.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const nextConfig = {
77
hostname: 'placehold.co',
88
},
99
],
10+
dangerouslyAllowSVG: true,
1011
},
1112
};
1213

src/app/layout.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Footer } from '@/components/Footer';
22
import { Header } from '@/components/Header';
33
import { Inter } from 'next/font/google';
4-
import './styles/global.css';
4+
import './styles/app.css';
55

66
const inter = Inter({ subsets: ['latin'] });
77

src/app/page.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { ArrowRight } from 'lucide-react';
22
import Link from 'next/link';
33

4-
import { BlogPostCard } from '@/components/posts/BlogPostCard';
4+
import { PostCard } from '@/components/posts/PostCard';
55
import { FeaturedPost } from '@/components/posts/FeaturedPost';
66
import { Button } from '@/components/ui/button';
77

@@ -83,7 +83,7 @@ export default function Home() {
8383
<h2 className="mb-8 text-2xl font-bold tracking-tight">Recent Articles</h2>
8484
<div className="grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3">
8585
{recentPosts.map((post) => (
86-
<BlogPostCard key={post.id} post={post} />
86+
<PostCard key={post.id} post={post} />
8787
))}
8888
</div>
8989
</section>
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/components/posts/BlogPostCard.js renamed to src/components/posts/PostCard.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar';
66
import { Badge } from '@/components/ui/badge';
77
import { Card, CardFooter, CardHeader } from '@/components/ui/card';
88

9-
export function BlogPostCard({ post }) {
9+
export function PostCard({ post }) {
1010
return (
1111
<Card className="flex h-full flex-col overflow-hidden">
1212
<div className="relative h-48 w-full">

0 commit comments

Comments
 (0)