Penerapan UI Home

# style:
- Tampilan home dan loading
## No issue
This commit is contained in:
2024-06-25 15:47:49 +08:00
parent 1a157846c1
commit 96fb9a8512
11 changed files with 407 additions and 161 deletions

View File

@@ -0,0 +1,28 @@
"use server";
import prisma from "@/app/lib/prisma";
export async function job_getTwoForHomeView() {
const get = await prisma.job.findMany({
take: 2,
orderBy: {
createdAt: "desc",
},
where: {
isActive: true,
},
select: {
id: true,
Author: {
select: {
id: true,
username: true,
},
},
title: true,
deskripsi: true
},
});
return get;
}