upd: view
Deksirpsi: - tambah table database - folder penyimpanan gambar - link back - link list pada halaman home No Issues
This commit is contained in:
@@ -362,3 +362,13 @@ model DivisionCalendarReminder {
|
|||||||
createdAt DateTime @default(now())
|
createdAt DateTime @default(now())
|
||||||
updatedAt DateTime @updatedAt
|
updatedAt DateTime @updatedAt
|
||||||
}
|
}
|
||||||
|
|
||||||
|
model ContainerImage {
|
||||||
|
id String @id @default(cuid())
|
||||||
|
category String
|
||||||
|
idCategory String
|
||||||
|
extension String
|
||||||
|
isActive Boolean @default(true)
|
||||||
|
createdAt DateTime @default(now())
|
||||||
|
updatedAt DateTime @updatedAt
|
||||||
|
}
|
||||||
|
|||||||
0
public/image/village/.gitkeep
Normal file
0
public/image/village/.gitkeep
Normal file
@@ -16,7 +16,7 @@ export default function ChartProgressHome() {
|
|||||||
const loadData = () => {
|
const loadData = () => {
|
||||||
const option: EChartsOption = {
|
const option: EChartsOption = {
|
||||||
title: {
|
title: {
|
||||||
text: "PROGRES TUGAS",
|
text: "PROGRES PROYEK",
|
||||||
top: '2%',
|
top: '2%',
|
||||||
left: 'center',
|
left: 'center',
|
||||||
textStyle: {
|
textStyle: {
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
|
'use client'
|
||||||
import { WARNA } from "@/module/_global";
|
import { WARNA } from "@/module/_global";
|
||||||
import { Box, Group, Text } from "@mantine/core";
|
import { Box, Group, Text } from "@mantine/core";
|
||||||
import { GoDiscussionClosed } from "react-icons/go";
|
import { GoDiscussionClosed } from "react-icons/go";
|
||||||
import { CiClock2, CiUser } from "react-icons/ci";
|
import { CiClock2, CiUser } from "react-icons/ci";
|
||||||
|
import { useRouter } from "next/navigation";
|
||||||
|
|
||||||
const dataDiskusi = [
|
const dataDiskusi = [
|
||||||
{
|
{
|
||||||
@@ -31,6 +33,8 @@ const dataDiskusi = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
export default function ListDiscussion() {
|
export default function ListDiscussion() {
|
||||||
|
const router = useRouter()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box pt={10}>
|
<Box pt={10}>
|
||||||
<Text c={WARNA.biruTua} mb={10} fw={'bold'} fz={16}>Diskusi</Text>
|
<Text c={WARNA.biruTua} mb={10} fw={'bold'} fz={16}>Diskusi</Text>
|
||||||
@@ -46,7 +50,7 @@ export default function ListDiscussion() {
|
|||||||
borderRadius: 10,
|
borderRadius: 10,
|
||||||
border: `1px solid ${"#D6D8F6"}`,
|
border: `1px solid ${"#D6D8F6"}`,
|
||||||
padding: 10
|
padding: 10
|
||||||
}} mb={10}>
|
}} mb={10} onClick={() => router.push(`/discussion/1`)}>
|
||||||
<Group>
|
<Group>
|
||||||
<GoDiscussionClosed size={25} />
|
<GoDiscussionClosed size={25} />
|
||||||
<Box w={{ base: 230, md: 400 }}>
|
<Box w={{ base: 230, md: 400 }}>
|
||||||
|
|||||||
@@ -28,12 +28,12 @@ export default function ListDivisi() {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Box pt={10}>
|
<Box pt={10}>
|
||||||
<Text c={WARNA.biruTua} mb={10} fw={'bold'} fz={16}>Divisi Terbaru</Text>
|
<Text c={WARNA.biruTua} mb={10} fw={'bold'} fz={16}>Divisi Teraktif</Text>
|
||||||
<Carousel dragFree slideGap={"xs"} align="start" slideSize={"xs"} withIndicators withControls={false}>
|
<Carousel dragFree slideGap={"xs"} align="start" slideSize={"xs"} withIndicators withControls={false}>
|
||||||
{dataProject.map((v) =>
|
{dataProject.map((v) =>
|
||||||
<Carousel.Slide key={v.id}>
|
<Carousel.Slide key={v.id}>
|
||||||
<Box w={{ base: 300, md: 400 }}>
|
<Box w={{ base: 300, md: 400 }}>
|
||||||
<Card shadow="sm" padding="md" component="a" radius={10}>
|
<Card shadow="sm" padding="md" component="a" radius={10} onClick={() => router.push(`/division/${v.id}`)}>
|
||||||
<Card.Section>
|
<Card.Section>
|
||||||
<Box h={120} bg={`linear-gradient(180deg, rgba(223,218,124,1) 25%, rgba(242,175,70,1) 100%)`}>
|
<Box h={120} bg={`linear-gradient(180deg, rgba(223,218,124,1) 25%, rgba(242,175,70,1) 100%)`}>
|
||||||
<Flex justify={'center'} align={'center'} h={"100%"}>
|
<Flex justify={'center'} align={'center'} h={"100%"}>
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
|
'use client'
|
||||||
import { WARNA } from "@/module/_global"
|
import { WARNA } from "@/module/_global"
|
||||||
import { Box, Divider, Group, Text } from "@mantine/core"
|
import { Box, Divider, Group, Text } from "@mantine/core"
|
||||||
|
import { useRouter } from "next/navigation"
|
||||||
|
|
||||||
const dataEvent = [
|
const dataEvent = [
|
||||||
{
|
{
|
||||||
@@ -33,6 +35,7 @@ const dataEvent = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
export default function ListEventHome() {
|
export default function ListEventHome() {
|
||||||
|
const router = useRouter()
|
||||||
return (
|
return (
|
||||||
<Box pt={10}>
|
<Box pt={10}>
|
||||||
<Text c={WARNA.biruTua} mb={10} fw={'bold'} fz={16}>Event Hari Ini</Text>
|
<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 bgColor = ['#D8D8F1', '#FED6C5'][index % 2]
|
||||||
const colorDivider = ['#535FCA', '#A7A7A7'][index % 2]
|
const colorDivider = ['#535FCA', '#A7A7A7'][index % 2]
|
||||||
return (
|
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={{
|
<Box bg={bgColor} pl={15} p={10} style={{
|
||||||
borderRadius: 10
|
borderRadius: 10
|
||||||
}} h={113}>
|
}} h={113}>
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ export default function DetailProject() {
|
|||||||
return (
|
return (
|
||||||
<Box>
|
<Box>
|
||||||
<LayoutNavbarNew
|
<LayoutNavbarNew
|
||||||
back="/project"
|
back=""
|
||||||
title="Proyek Desa Maju"
|
title="Proyek Desa Maju"
|
||||||
menu={
|
menu={
|
||||||
<ActionIcon
|
<ActionIcon
|
||||||
|
|||||||
Reference in New Issue
Block a user