From fddc8e7ff889bd1d4091889be87ad732e863e75e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A1muel=20Fekete?= Date: Sat, 17 Feb 2024 18:53:54 +0100 Subject: [PATCH] added british flag to english presentations --- public/img/uk.svg | 16 ++++++++++++++++ src/components/presentation/Presentation.tsx | 9 +++++++++ 2 files changed, 25 insertions(+) create mode 100644 public/img/uk.svg diff --git a/public/img/uk.svg b/public/img/uk.svg new file mode 100644 index 0000000..9131483 --- /dev/null +++ b/public/img/uk.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/components/presentation/Presentation.tsx b/src/components/presentation/Presentation.tsx index 545dd78..9b53cab 100644 --- a/src/components/presentation/Presentation.tsx +++ b/src/components/presentation/Presentation.tsx @@ -1,10 +1,13 @@ import clsx from 'clsx'; +import Image from 'next/image'; import Link from 'next/link'; import { FaArrowLeft } from 'react-icons/fa'; import { Presentation } from '@/models/models'; import slugify from '@/utils/slugify'; +import uk from '../../../public/img/uk.svg'; + type PresentationProps = { presentation: Presentation; isFrontPage?: boolean | undefined; @@ -71,6 +74,12 @@ export default async function Presentation({ presentation, isFrontPage }: Presen /> )} + {presentation.language === 'en' && ( +
+ Egyesült Királyság zászlója +

Az előadás angol nyelvű.

+
+ )}