Skip to content

Commit

Permalink
feat(client): Add intro images in Flood & Drought tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
clementprdhomme committed Nov 7, 2024
1 parent 312611c commit 4fde3f7
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions client/src/components/panels/drought/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import Image from "next/image";

import DroughtIllustration from "@/../public/assets/images/drought-illustration.png";
import DatasetCard from "@/components/dataset-card";
import { Skeleton } from "@/components/ui/skeleton";
import useDatasetsBySubTopic from "@/hooks/use-datasets-by-sub-topic";
Expand All @@ -12,6 +15,12 @@ const DroughtPanel = () => {
across South Sudan. Analyze drought indicators, such as SPI, SPEI, SNDVI, and SMA indices,
to understand drought severity and support resilient water and land management.
</p>
<figure className="relative mx-auto mb-6 w-max max-w-full">
<Image src={DroughtIllustration} alt="Dried cracked soil" placeholder="blur" />
<figcaption className="absolute bottom-0 left-0 bg-rhino-blue-950/10 px-2.5 py-1 text-xs italic text-white backdrop-blur-sm">
Anton Ivanchenko
</figcaption>
</figure>
{isLoading && (
<div className="flex flex-col gap-6">
<Skeleton className="h-7 w-2/5" />
Expand Down
9 changes: 9 additions & 0 deletions client/src/components/panels/flood/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import Image from "next/image";

import FloodImage from "@/../public/assets/images/flood-illustration.png";
import DatasetCard from "@/components/dataset-card";
import { Skeleton } from "@/components/ui/skeleton";
import useDatasetsBySubTopic from "@/hooks/use-datasets-by-sub-topic";
Expand All @@ -12,6 +15,12 @@ const FloodPanel = () => {
Analyze model-based and EO-based flood information, including flood extent, depth, and
return periods, to better understand flood risks and support proactive planning.
</p>
<figure className="relative mx-auto mb-6 w-max max-w-full">
<Image src={FloodImage} alt="Brown tumultuous water" placeholder="blur" />
<figcaption className="absolute bottom-0 left-0 bg-rhino-blue-950/10 px-2.5 py-1 text-xs italic text-white backdrop-blur-sm">
Wolfgang Hasselmann
</figcaption>
</figure>
{isLoading && (
<div className="flex flex-col gap-6">
<Skeleton className="h-7 w-2/5" />
Expand Down

0 comments on commit 4fde3f7

Please sign in to comment.