upd: view

Deksirpsi:
- tambah table database
- folder penyimpanan gambar
- link back
- link list pada halaman home

No Issues
This commit is contained in:
amel
2024-07-17 15:19:56 +08:00
parent d54a6cfb09
commit 41f5c95847
7 changed files with 23 additions and 6 deletions

View File

@@ -1,5 +1,7 @@
'use client'
import { WARNA } from "@/module/_global"
import { Box, Divider, Group, Text } from "@mantine/core"
import { useRouter } from "next/navigation"
const dataEvent = [
{
@@ -33,6 +35,7 @@ const dataEvent = [
]
export default function ListEventHome() {
const router = useRouter()
return (
<Box pt={10}>
<Text c={WARNA.biruTua} mb={10} fw={'bold'} fz={16}>Event Hari Ini</Text>
@@ -45,7 +48,7 @@ export default function ListEventHome() {
const bgColor = ['#D8D8F1', '#FED6C5'][index % 2]
const colorDivider = ['#535FCA', '#A7A7A7'][index % 2]
return (
<Box key={event.id} m={10}>
<Box key={event.id} m={10} onClick={() => router.push(`/calender?page=detail-event`)}>
<Box bg={bgColor} pl={15} p={10} style={{
borderRadius: 10
}} h={113}>