- Tampilan buat berita
- Tampilan dialog page buat proyek investasi
- Tampilan list edit beritq
- # No issue
fix:
- Perubahan minor
This commit is contained in:
2023-10-31 16:18:44 +08:00
parent a75f92c478
commit 54eae1bce3
38 changed files with 730 additions and 192 deletions

View File

@@ -1,17 +1,36 @@
"use client";
import { RouterInvestasi } from "@/app/lib/router_hipmi/router_investasi";
import { Warna } from "@/app/lib/warna";
import HeaderTamplate from "@/app_modules/component/header_tamplate";
import { AppShell } from "@mantine/core";
import { AppShell, Button, Center, Footer } from "@mantine/core";
import { useRouter } from "next/navigation";
import React from "react";
import toast from "react-simple-toasts";
export default function LayoutEditBeritaInvestasi({
children,
}: {
children: React.ReactNode;
}) {
const router = useRouter()
return (
<>
<AppShell header={<HeaderTamplate title="Edit Berita" />}>
<AppShell
header={<HeaderTamplate title="Edit Berita" />}
footer={
<Footer height={70} sx={{ borderStyle: "none" }}>
<Center>
<Button w={300} radius={50} bg={Warna.hijau_muda} color="green" onClick={() => {
router.back()
toast("Berita terupdate")
}}>
Update
</Button>
</Center>
</Footer>
}
>
{children}
</AppShell>
</>

View File

@@ -1,10 +1,33 @@
"use client"
"use client";
import { Text } from "@mantine/core"
import {
AspectRatio,
Button,
Center,
FileInput,
Image,
Stack,
Text,
TextInput,
Textarea,
} from "@mantine/core";
import { IconUpload } from "@tabler/icons-react";
export default function EditBeritaInvestasi(){
return<>
<Text>Berita</Text>
export default function EditBeritaInvestasi() {
return (
<>
<Stack>
<AspectRatio ratio={16 / 9}>
<Image alt="" src={"/aset/no-img.png"} />
</AspectRatio>
<Center>
<Button leftIcon={<IconUpload size={10} />} compact radius={50}>
Upload
</Button>
</Center>
<TextInput label="Judul berita" />
<Textarea label="Deskripsi" autosize minRows={2} maxRows={6} />
</Stack>
</>
}
);
}