diff --git a/components/trainingpage/Training.tsx b/components/trainingpage/Training.tsx deleted file mode 100644 index 219aa23..0000000 --- a/components/trainingpage/Training.tsx +++ /dev/null @@ -1,117 +0,0 @@ -import Image from "next/image"; - -import TrainingType from "@/types/training"; -import { Container } from "@/components/Container"; -import { Button } from "@/components/Button"; - -type Props = { - training: TrainingType; -}; - -export const Training = ({ training }: Props) => { - const formatter = new Intl.NumberFormat("cs", { - style: "currency", - currency: "CZK", - maximumFractionDigits: 0, - }); - return ( - <> -
-
- - -

- Školení {training.name} -

-
-
- -
-
-
-
-
- {training.days === 2 ? ( -
-
-
- {/*
-
-

- Toto školení je{" "} - - dvoudenní. - -

-
-
-
- ) : ( - <> - )} -
-
-

- Cena za školení -

-
-
-
-
-
- Veřejný termín -
-
- {formatter.format(training.priceOpen)} bez DPH -
-
-
-
- Firemní školení -
-
- {formatter.format(training.priceCompany)} bez DPH -
-
-
-
-
-
- -
-
-
- -
- - ); -}; diff --git a/components/trainingpage/TrainingLayout.tsx b/components/trainingpage/TrainingLayout.tsx new file mode 100644 index 0000000..c088e4b --- /dev/null +++ b/components/trainingpage/TrainingLayout.tsx @@ -0,0 +1,135 @@ +import Head from "next/head"; +import Image from "next/image"; + +import { Header } from "@/components/layout/Header"; +import { Footer } from "@/components/layout/Footer"; +import { Container } from "@/components/Container"; +import { Button } from "@/components/Button"; + +type Props = { + content: any; + meta: any; +} + +export default function TrainingLayout({ content, meta }: Props) { + const formatter = new Intl.NumberFormat("cs", { + style: "currency", + currency: "CZK", + maximumFractionDigits: 0, + }); + + return ( + <> + + + Školení {meta.name} | Vojtěch Mareš - DevOps konzultant, lektor, + engineer + + + + +
+
+
+
+ + +

+ Školení {meta.name} +

+
+
+ +
+
+
+ {content} +
+
+
+ {meta.days === 2 ? ( +
+
+
+ {/*
+
+

+ Toto školení je{" "} + + dvoudenní. + +

+
+
+
+ ) : ( + <> + )} +
+
+

+ Cena za školení +

+
+
+
+
+
+ Veřejný termín +
+
+ {formatter.format(meta.price.open)} bez DPH +
+
+
+
+ Firemní školení +
+
+ {formatter.format(meta.price.company)} bez DPH +
+
+
+
+
+
+ +
+
+
+
+
+
+