add feedback and report things
All checks were successful
deploy / build-and-deploy (/testvaro, /opt/website-test, website-test) (push) Successful in 22s
deploy / build-and-deploy (/varo, /opt/website, website) (push) Successful in 21s

This commit is contained in:
2025-06-21 14:45:39 +02:00
parent 9c49585873
commit ee8f595ecc
25 changed files with 898 additions and 57 deletions

View File

@@ -0,0 +1,33 @@
---
import type { db } from '@db/database.ts';
import Textarea from '@components/input/Textarea.svelte';
interface Props {
report: Awaited<ReturnType<db.getReportByUrlHash>>;
}
const { report } = Astro.props;
---
<div class="flex justify-center items-center">
<div class="mt-12 grid card w-11/12 xl:w-2/3 2xl:w-1/2 p-6 shadow-lg">
{
report.status.status === null ? (
<p>Dein Report wird in kürze bearbeitet</p>
) : report.status.status === 'open' ? (
<p>Dein Report befindet sich in Bearbeitung</p>
) : (
<>
<p>Dein Report wurde bearbeitet</p>
<Textarea
value={report.status.statement}
label="Antwort vom Admin Team (optional)"
rows={5}
dynamicWidth
readonly
/>
</>
)
}
</div>
</div>