-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #548 from benoitdemaegdt/feat/sites-partenaires
Sites partenaires
- Loading branch information
Showing
3 changed files
with
49 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
imageUrl: https://observatoire.parisenselle.fr/assets/images/Plan_Velo_2021_2026_small.png | ||
title: Observatoire Plan Vélo Paris en Selle | ||
description: Paris en Selle informe les citoyennes et citoyens de l’avancement du programme municipal d’amélioration des conditions de circulation à vélo dans la Capitale. | ||
city: Paris | ||
link: https://observatoire.parisenselle.fr | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<template> | ||
<div class="bg-white pt-16 pb-20 px-4 sm:px-6 lg:pt-24 lg:pb-28 lg:px-8"> | ||
<div class="relative max-w-lg mx-auto divide-y-2 divide-gray-200 lg:max-w-7xl"> | ||
<div> | ||
<h2 class="text-3xl tracking-tight font-extrabold text-gray-900 sm:text-4xl"> | ||
Sites partenaires | ||
</h2> | ||
<p class="mt-3 text-xl text-gray-500 sm:mt-4"> | ||
Découvrez d'autres observatoires à travers le pays, dont certains sont basés sur notre travail en Open Source. | ||
</p> | ||
</div> | ||
<div class="mt-12 grid gap-16 pt-12 lg:grid-cols-3 lg:gap-x-5 lg:gap-y-4"> | ||
<div v-for="site in sites" :key="site.city" class="p-4 rounded-lg hover:bg-gray-50"> | ||
<NuxtLink :to="site.link" target="_blank"> | ||
<div> | ||
<img class="h-48 lg:h-56 object-cover w-full object-center relative block bg-white rounded-lg overflow-hidden" :src="site.imageUrl"> | ||
</div> | ||
<p class="text-xl font-semibold text-gray-900 mt-4"> | ||
{{ site.title }} | ||
</p> | ||
<h4 class="text-gray-500 text-base"> | ||
{{ site.city }} | ||
</h4> | ||
<p class="mt-3 text-base text-gray-500"> | ||
{{ site.description }} | ||
</p> | ||
</NuxtLink> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
const { data: sites } = await useAsyncData(() => { | ||
return queryContent('sites-partenaires') | ||
.sort({ city: 1 }) | ||
.find(); | ||
}); | ||
</script> |