Skip to content

Commit

Permalink
feat: sponsors home
Browse files Browse the repository at this point in the history
  • Loading branch information
Barbapapazes committed May 14, 2023
1 parent f7fd052 commit 605d27c
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 20 deletions.
35 changes: 19 additions & 16 deletions components/content/home/HomeSponsors.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ defineProps<{
sponsors: {
name: string;
src: string;
class: string;
width: string | number;
height: string | number;
}[]
Expand All @@ -12,21 +13,23 @@ defineProps<{

<template>
<BaseSection :class="sectionClass">
<h2 class="text-sm sm:text-base text-zinc-500 tracking-tight font-medium">
<ContentSlot :use="$slots.title" unwrap="p" />
</h2>
<ul class="mt-5">
<template v-for="sponsor in sponsors" :key="sponsor.name">
<li class="h-8 sm:h-11">
<img
:src="sponsor.src"
:alt="`Logo du sponsor ${sponsor.name}`"
class="h-full"
:width="sponsor.width"
:height="sponsor.height"
>
</li>
</template>
</ul>
<NuxtLink to="/partenaires">
<h2 class="text-sm sm:text-base text-zinc-500 tracking-tight font-medium">
<ContentSlot :use="$slots.title" unwrap="p" />
</h2>
<ul class="mt-5 flex flex-row gap-4">
<template v-for="sponsor in sponsors" :key="sponsor.name">
<li class="h-8 sm:h-11 flex flex-row items-center justify-center">
<img
:src="sponsor.src"
:alt="`Logo du sponsor ${sponsor.name}`"
:class="sponsor.class"
:width="sponsor.width"
:height="sponsor.height"
>
</li>
</template>
</ul>
</NuxtLink>
</BaseSection>
</template>
15 changes: 11 additions & 4 deletions content/0.index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
head.title:
title:
head.title:
title:
image: /socials/index.jpg
---

Expand Down Expand Up @@ -31,7 +31,14 @@ secondaryButtonLink: concoursRegistrationLink
sectionClass: my-16
sponsors:
- name: Aneo
src: /assets/home/images/sponsors/aneo.webp
src: /assets/partners/images/aneo.webp
class: h-6 sm:h-8
- name: Monde des Grandes Écoles
src: /assets/partners/images/monde-des-grandes-ecoles.webp
class: max-h-[50px]
- name: Studyrama
src: /assets/partners/images/studyrama.webp
class: h-6 sm:h-8
---
#title
Avec la confiance d'organisations :icon{name="heroicons:arrow-down-right-20-solid"}
Expand Down Expand Up @@ -307,7 +314,7 @@ sectionClass: my-16

::home-section
---
sectionClass:
sectionClass:
id: ceremonie-finale
part: ceremonie-finale
icon: ceremonie-finale
Expand Down
Binary file removed public/assets/home/images/sponsors/aneo.webp
Binary file not shown.
Binary file not shown.

0 comments on commit 605d27c

Please sign in to comment.