Skip to content

Commit

Permalink
refactor: découpage logo jeunes.gouv.fr
Browse files Browse the repository at this point in the history
  • Loading branch information
Shamzic committed Jan 2, 2025
1 parent e3f1c4a commit bcc4b4f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
Binary file modified public/img/partners/jeunes.gouv.fr.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/img/partners/jeunes.gouv.fr.webp
Binary file not shown.
15 changes: 11 additions & 4 deletions src/components/home/partners-section.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<h2 class="fr-h3 fr-mb-4w fr-text--center">Nos partenaires</h2>
<span class="aj-partners">
<a
v-for="(partner, index) in partners"
:key="`partner-${index}`"
v-for="partner in partners"
:key="partner.id"
:href="partner.link"
target="_blank"
rel="noopener noreferrer"
Expand All @@ -31,9 +31,16 @@
</template>

<script setup lang="ts">
const getImagePath = (id: string, ext: string) => `/img/partners/${id}.${ext}`
const getImagePath = (id: string, format: "webp" | "jpg") =>
`/img/partners/${id}.${format}`
const partners = [
interface Partner {
id: string
name: string
link: string
}
const partners: Partner[] = [
{
id: "openfisca",
name: "OpenFisca",
Expand Down

0 comments on commit bcc4b4f

Please sign in to comment.