Skip to content

Commit

Permalink
feat: add vibly et handinamique
Browse files Browse the repository at this point in the history
  • Loading branch information
Barbapapazes committed Jul 28, 2023
1 parent 35e547b commit 14652fb
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 2 deletions.
6 changes: 5 additions & 1 deletion components/content/partners/PartnersSection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ defineProps<{
const { data } = await usePartners()
const levels: Level[] = ['creator', 'media', 'platinum', 'gold', 'silver', 'bronze']
const levels: Level[] = ['creator', 'media', 'platinum', 'gold', 'silver', 'bronze', 'heart']
const partners = ref<Record<Level, ParsedContent[]>>({} as Record<Level, ParsedContent[]>)
partners.value = data.value?.reduce((acc, partner) => {
Expand All @@ -33,6 +33,8 @@ const useLevelClassGrid = function (level: Level) {
return 'grid grid-cols-4'
case 'bronze':
return 'grid grid-cols-5'
case 'heart':
return 'grid grid-cols-1 md:grid-cols-5'
}
}
Expand All @@ -50,6 +52,8 @@ const useItemClass = function (level: Level) {
return 'max-h-24'
case 'bronze':
return 'max-h-20'
case 'heart':
return 'max-h-48'
}
}
</script>
Expand Down
2 changes: 2 additions & 0 deletions composables/useLevel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,7 @@ export const useLevel = (level: Level) => {
return 'Silver'
case 'bronze':
return 'Bronze'
case 'heart':
return 'Coup de coeur'
}
}
6 changes: 6 additions & 0 deletions content/0.index.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ sponsors:
- name: Studyrama
src: /assets/partners/images/studyrama.webp
class: h-6 sm:h-8
- name: Fédé 100% Handinamique
src: /assets/partners/images/handinamique.webp
class: h-6 sm:h-8
- name: Vibly
src: /assets/partners/images/vibly.webp
class: h-6 sm:h-8
---
#title
Avec la confiance d'organisations :icon{name="heroicons:arrow-down-right-20-solid"}
Expand Down
9 changes: 9 additions & 0 deletions content/5.partenaires/handinamique.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
level: heart
title: Fédé 100% Handinamique
externalLink: https://www.handinamique.org/
rel: 'noopener'
image:
src: /assets/partners/images/handinamique.webp
alt: Logo de la Fédé 100% Handinamique
---
9 changes: 9 additions & 0 deletions content/5.partenaires/vibly.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
level: heart
title: Vibly
externalLink: https://www.vibly.fr/
rel: 'noopener'
image:
src: /assets/partners/images/vibly.webp
alt: Logo de Vibly
---
Binary file not shown.
Binary file added public/assets/partners/images/vibly.webp
Binary file not shown.
2 changes: 1 addition & 1 deletion types/level.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export type Level = 'creator' | 'platinum' | 'gold' | 'silver' | 'bronze' | 'media'
export type Level = 'creator' | 'platinum' | 'gold' | 'silver' | 'bronze' | 'media' | 'heart'

0 comments on commit 14652fb

Please sign in to comment.