Skip to content

Commit

Permalink
Mise à jour de la carte des collectivités
Browse files Browse the repository at this point in the history
  • Loading branch information
mariheck authored and derfurth committed Oct 24, 2023
1 parent 52e0409 commit 0914e2b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 30 deletions.
18 changes: 1 addition & 17 deletions packages/site/components/carte/CarteAvecFiltres.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,29 +41,13 @@ const CarteAvecFiltres = () => {
return filtre ? (
<div className="flex flex-col lg:flex-row justify-between mt-8">
<div
className="w-full md:w-[700px] md:h-[700px] lg:w-[550px] lg:h-[550px] xl:w-[700px] xl:h-[700px] mb-12 mx-auto"
className="w-full md:w-[700px] md:h-[700px] lg:w-[550px] lg:h-[550px] xl:w-[700px] xl:h-[700px] mx-auto"
style={windowWidth && windowWidth < 768 ? {height: windowWidth} : {}}
>
<CarteCollectivites filtre={filtre} etoiles={etoiles} />
</div>

<div className="flex flex-col items-start justify-start gap-8">
<div className="flex gap-4 items-center">
<div className="bg-[#4D75AC] min-w-[40px] h-[30px] rounded-2xl"></div>
<div className="lg:w-[350px]">
<strong>Collectivités engagées labellisées</strong> sur au moins un
des 2 référentiels : Climat Air Énergie (CAE) et/ou Économie
Circulaire (ECi)
</div>
</div>
<div className="flex gap-4 items-center">
<div className="bg-[#9E9E9E] min-w-[40px] h-[30px] rounded-2xl"></div>
<div className="lg:w-[350px]">
<strong>Collectivités engagées non labellisées</strong> signataires
d'un Contrat d'Objectif Territorial (COT)
</div>
</div>

<div className="flex flex-col md:flex-row lg:flex-col justify-between gap-8 w-full md:px-16 lg:px-0">
<div className="flex flex-col items-center w-full md:w-fit lg:w-full ">
<p className="text-primary-8">
Expand Down
19 changes: 6 additions & 13 deletions packages/site/components/carte/CollectiviteFeature.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,12 @@ type CollectiviteFeatureProps = {
const CollectiviteFeature = ({collectivite}: CollectiviteFeatureProps) => {
const router = useRouter();
const geojson = collectivite.geojson as unknown as GeoJsonObject;
const style: PathOptions = collectivite.labellisee
? {
fillColor: '#4D75AC',
fillOpacity: 0.7,
color: '#4D75AC',
weight: 1.5,
}
: {
fillColor: '#9E9E9E',
fillOpacity: 0.7,
color: '#9E9E9E',
weight: 1.5,
};
const style: PathOptions = {
fillColor: '#4D75AC',
fillOpacity: 0.7,
color: '#4D75AC',
weight: 1.5,
};

return (
<FeatureGroup key={collectivite.collectivite_id}>
Expand Down

0 comments on commit 0914e2b

Please sign in to comment.