diff --git a/frontend/packages/vkt/public/images/excellent_level_card_image.avif b/frontend/packages/vkt/public/images/excellent_level_card_image.avif new file mode 100644 index 000000000..9dbfdd508 Binary files /dev/null and b/frontend/packages/vkt/public/images/excellent_level_card_image.avif differ diff --git a/frontend/packages/vkt/public/images/excellent_level_card_image.jpg b/frontend/packages/vkt/public/images/excellent_level_card_image.jpg new file mode 100644 index 000000000..9e6e55ad8 Binary files /dev/null and b/frontend/packages/vkt/public/images/excellent_level_card_image.jpg differ diff --git a/frontend/packages/vkt/public/images/excellent_level_card_image.webp b/frontend/packages/vkt/public/images/excellent_level_card_image.webp new file mode 100644 index 000000000..1931d85e6 Binary files /dev/null and b/frontend/packages/vkt/public/images/excellent_level_card_image.webp differ diff --git a/frontend/packages/vkt/public/images/excellent_level_card_image_2x.avif b/frontend/packages/vkt/public/images/excellent_level_card_image_2x.avif new file mode 100644 index 000000000..b90086813 Binary files /dev/null and b/frontend/packages/vkt/public/images/excellent_level_card_image_2x.avif differ diff --git a/frontend/packages/vkt/public/images/excellent_level_card_image_2x.jpg b/frontend/packages/vkt/public/images/excellent_level_card_image_2x.jpg new file mode 100644 index 000000000..e085ee33d Binary files /dev/null and b/frontend/packages/vkt/public/images/excellent_level_card_image_2x.jpg differ diff --git a/frontend/packages/vkt/public/images/excellent_level_card_image_2x.webp b/frontend/packages/vkt/public/images/excellent_level_card_image_2x.webp new file mode 100644 index 000000000..e63cbd4bc Binary files /dev/null and b/frontend/packages/vkt/public/images/excellent_level_card_image_2x.webp differ diff --git a/frontend/packages/vkt/public/images/good_satisfactory_level_card_image.avif b/frontend/packages/vkt/public/images/good_satisfactory_level_card_image.avif new file mode 100644 index 000000000..73b74a2df Binary files /dev/null and b/frontend/packages/vkt/public/images/good_satisfactory_level_card_image.avif differ diff --git a/frontend/packages/vkt/public/images/good_satisfactory_level_card_image.jpg b/frontend/packages/vkt/public/images/good_satisfactory_level_card_image.jpg new file mode 100644 index 000000000..0f9c5911c Binary files /dev/null and b/frontend/packages/vkt/public/images/good_satisfactory_level_card_image.jpg differ diff --git a/frontend/packages/vkt/public/images/good_satisfactory_level_card_image.webp b/frontend/packages/vkt/public/images/good_satisfactory_level_card_image.webp new file mode 100644 index 000000000..0d6a53d8f Binary files /dev/null and b/frontend/packages/vkt/public/images/good_satisfactory_level_card_image.webp differ diff --git a/frontend/packages/vkt/public/images/good_satisfactory_level_card_image_2x.avif b/frontend/packages/vkt/public/images/good_satisfactory_level_card_image_2x.avif new file mode 100644 index 000000000..ccd41ce80 Binary files /dev/null and b/frontend/packages/vkt/public/images/good_satisfactory_level_card_image_2x.avif differ diff --git a/frontend/packages/vkt/public/images/good_satisfactory_level_card_image_2x.jpg b/frontend/packages/vkt/public/images/good_satisfactory_level_card_image_2x.jpg new file mode 100644 index 000000000..f7f5f7075 Binary files /dev/null and b/frontend/packages/vkt/public/images/good_satisfactory_level_card_image_2x.jpg differ diff --git a/frontend/packages/vkt/public/images/good_satisfactory_level_card_image_2x.webp b/frontend/packages/vkt/public/images/good_satisfactory_level_card_image_2x.webp new file mode 100644 index 000000000..dc3e27b94 Binary files /dev/null and b/frontend/packages/vkt/public/images/good_satisfactory_level_card_image_2x.webp differ diff --git a/frontend/packages/vkt/src/pages/PublicHomePage.tsx b/frontend/packages/vkt/src/pages/PublicHomePage.tsx index 81a428420..c8167e611 100644 --- a/frontend/packages/vkt/src/pages/PublicHomePage.tsx +++ b/frontend/packages/vkt/src/pages/PublicHomePage.tsx @@ -9,6 +9,12 @@ import { useWindowProperties } from 'shared/hooks'; import { useCommonTranslation, usePublicTranslation } from 'configs/i18n'; import { AppRoutes } from 'enums/app'; +import ExcellentLevelCardImageAvif from 'public/images/excellent_level_card_image.avif'; +import ExcellentLevelCardImageJpeg from 'public/images/excellent_level_card_image.jpg'; +import ExcellentLevelCardImageWebp from 'public/images/excellent_level_card_image.webp'; +import GoodAndSatisfactoryLevelCardImageAvif from 'public/images/good_satisfactory_level_card_image.avif'; +import GoodAndSatisfactoryLevelCardImageJpeg from 'public/images/good_satisfactory_level_card_image.jpg'; +import GoodAndSatisfactoryLevelCardImageWebp from 'public/images/good_satisfactory_level_card_image.webp'; const LinkButton = ({ to, label }: { to: AppRoutes; label: string }) => { return ( @@ -26,11 +32,13 @@ const LinkButton = ({ to, label }: { to: AppRoutes; label: string }) => { const LevelCard = ({ heading, + image, contents, linkLabel, linkTo, }: { heading: string; + image: React.JSX.Element; contents: React.JSX.Element; linkLabel: string; linkTo: AppRoutes; @@ -41,7 +49,11 @@ const LevelCard = ({ elevation={2} >