footer, feedback, subscribe
This commit is contained in:
16
yoga-app/src/app/blog/[blogId]/page.tsx
Normal file
16
yoga-app/src/app/blog/[blogId]/page.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
import strapiApi from "@/app/api/strapi/strapi-api";
|
||||
import clsx from "clsx";
|
||||
|
||||
export default async function BlogComponent({
|
||||
params,
|
||||
}: {
|
||||
params: Promise<{ blogId: string }>
|
||||
}){
|
||||
const blogId = (await params).blogId
|
||||
const blog = await strapiApi.getBlog(blogId);
|
||||
return (
|
||||
<div className={clsx("container", "text-primary")}>
|
||||
<h1 className={clsx("container", "text-primary")}>{blog.header}</h1>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
6
yoga-app/src/app/blog/page.tsx
Normal file
6
yoga-app/src/app/blog/page.tsx
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
export default function BlogListComponent(){
|
||||
return (
|
||||
<div>Blog list</div>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user