diff --git a/front/public/images/embalse-generico.jpg b/front/public/images/embalse-generico.jpg new file mode 100644 index 0000000..bf684f0 Binary files /dev/null and b/front/public/images/embalse-generico.jpg differ diff --git a/front/src/app/embalse-provincia/[provincia]/page.tsx b/front/src/app/embalse-provincia/[provincia]/page.tsx index 4c45bed..0fcf1f9 100644 --- a/front/src/app/embalse-provincia/[provincia]/page.tsx +++ b/front/src/app/embalse-provincia/[provincia]/page.tsx @@ -1,5 +1,6 @@ import Link from "next/link"; import { PROVINCIAS } from "@/core/constants"; +import { Card } from "@/common/components/card.component"; interface Props { params: Promise<{ provincia: string }>; @@ -12,13 +13,29 @@ export default async function EmbalseProvinciaListadoPage({ params }: Props) { (province) => province.id === provincia, )?.name; + const reservoirs = [ + { id: "ullibarri-gamboa", name: "Ullibarri-Gamboa" }, + { id: "zadorra", name: "Zadorra" }, + { id: "urrúnaga", name: "Urrunaga" }, + { id: "maroño", name: "Maroño" }, + { id: "albina", name: "Albina" }, + { id: "santa-engracia", name: "Santa Engracia" }, + ]; + return ( -
+

Embalses de {nombreProvincia}

- - Embalse de Casasola - -
+ {reservoirs.map(({ id, name }) => ( + + {name} + + ))} + Mapa de embalses + ); } diff --git a/front/src/app/embalse-provincia/page.tsx b/front/src/app/embalse-provincia/page.tsx index 1097faa..5718b21 100644 --- a/front/src/app/embalse-provincia/page.tsx +++ b/front/src/app/embalse-provincia/page.tsx @@ -1,9 +1,10 @@ import Link from "next/link"; import { PROVINCIAS } from "@/core/constants"; +import { Card } from "@/common/components/card.component"; export default function EmbalsesProvinciaPage() { return ( -
+

Embalses por provincias

{PROVINCIAS.map(({ id, name }) => ( @@ -16,6 +17,6 @@ export default function EmbalsesProvinciaPage() { ))}
-
+ ); } diff --git a/front/src/common/components/card.component.tsx b/front/src/common/components/card.component.tsx new file mode 100644 index 0000000..14e9a9d --- /dev/null +++ b/front/src/common/components/card.component.tsx @@ -0,0 +1,14 @@ +import React from "react"; + +interface Props { + children?: React.ReactNode; +} + +export const Card: React.FC = (props: Props) => { + const { children } = props; + return ( +
+ {children} +
+ ); +}; diff --git a/front/src/common/models/index.ts b/front/src/common/models/index.ts index a13e258..f3acecf 100644 --- a/front/src/common/models/index.ts +++ b/front/src/common/models/index.ts @@ -1 +1,2 @@ export * from "./lookup.model"; +export * from "./reservoir.model";