From 25efb9faf5c2d777f3e46c53436dd0c8587d3ad1 Mon Sep 17 00:00:00 2001 From: Teguh Bayu Pratama <149038828+teguhbayu@users.noreply.github.com> Date: Fri, 20 Sep 2024 16:12:23 +0700 Subject: [PATCH] Rebase (#140) * fix: broken links and query in admin (#135) * feat: Make admin team profile responsive --- next.config.mjs | 20 ++++-- .../tim/[id]/[posisi]/components/Form.tsx | 12 +++- .../admin/tim/[id]/components/ProfileTim.tsx | 21 ++++-- .../tim/[id]/components/parts/AnggotaCard.tsx | 68 +++++++++++++------ src/app/(admin)/admin/tim/[id]/page.tsx | 2 +- src/app/hooks/useCountdown.ts | 5 +- 6 files changed, 92 insertions(+), 36 deletions(-) diff --git a/next.config.mjs b/next.config.mjs index 69dfa57..90c258f 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -1,10 +1,20 @@ /** @type {import('next').NextConfig} */ const nextConfig = { - experimental:{ - serverActions:{ - bodySizeLimit:'5mb' - } - } + experimental: { + serverActions: { + bodySizeLimit: "5mb", + }, + }, + images: { + remotePatterns: [ + { + protocol: "https", + hostname: "res.cloudinary.com", + port: "", + pathname: "/**", + }, + ], + }, }; export default nextConfig; diff --git a/src/app/(admin)/admin/tim/[id]/[posisi]/components/Form.tsx b/src/app/(admin)/admin/tim/[id]/[posisi]/components/Form.tsx index dc6d18a..63bda6d 100644 --- a/src/app/(admin)/admin/tim/[id]/[posisi]/components/Form.tsx +++ b/src/app/(admin)/admin/tim/[id]/[posisi]/components/Form.tsx @@ -4,6 +4,7 @@ import { PrimaryButton } from "@/app/components/global/Button"; import { H2, H3, P } from "@/app/components/global/Text"; import cn from "@/lib/clsx"; import { Anggota, Kelas } from "@prisma/client"; +import Image from "next/image"; import { useRouter } from "next/navigation"; const kelas: { label: Kelas; value: Kelas }[] = [ @@ -21,9 +22,18 @@ export default function DisplayAnggota({ const router = useRouter(); return ( -