livrare website cu erp si crm
This commit is contained in:
parent
28773e3a72
commit
5c7bf7c295
257 changed files with 31929 additions and 0 deletions
25
website/src/app/(public)/terms/page.tsx
Normal file
25
website/src/app/(public)/terms/page.tsx
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
import type { Metadata } from "next";
|
||||
import { getWebsiteContent } from "@/lib/erpnext";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Termeni si Conditii",
|
||||
};
|
||||
|
||||
export default async function TermsPage() {
|
||||
let content = "";
|
||||
try {
|
||||
const data = await getWebsiteContent("terms");
|
||||
content = data[0]?.content_ro || "";
|
||||
} catch {
|
||||
content = "<h1>Termeni si Conditii</h1><p>Continutul va fi disponibil in curand.</p>";
|
||||
}
|
||||
|
||||
return (
|
||||
<section className="py-16">
|
||||
<div
|
||||
className="prose prose-teal mx-auto max-w-3xl px-4"
|
||||
dangerouslySetInnerHTML={{ __html: content }}
|
||||
/>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue