forked from nuxt/website-v2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: sponsors and add mvp single page (nuxt#1611)
* 📝 (sponsors) update sponsors * ✨ (PageHero) add full width props for description * 🌐 (sponsors) add translation * 🍱 (sponsors) add square sponsors img * ♻️ (sponsors) refactor sustainability page * ✨ (SustainabilityMvpDetail) add single page mvp sponsors * feat: add example page for MVP partners * 📝 (sponsors) add path to sqaure img * ✨ (SustainabilityCard) update * feat: use SVGs instead of jpeg for square logos * 🍱 (sponsors) update sponsors assets * 🐛 (PageHero) overflow ellipsis on title * ✨ (PartnersBanner) update img path * ✨ (sponsors) update sponsors * 📝 (chrome) update img path * 🐛 (branch) fix branch Co-authored-by: Clément Ollivier <[email protected]> Co-authored-by: Yaël GUILLOUX <[email protected]>
- Loading branch information
1 parent
6efae8c
commit e4c72e3
Showing
162 changed files
with
1,206 additions
and
1,186 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,4 @@ sw.* | |
.output | ||
.husky | ||
package-lock.json | ||
yarn-error.log |
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,3 @@ | ||
<template> | ||
<svg viewBox="0 0 39.98 40.05" xmlns="http://www.w3.org/2000/svg" width="2496" height="2500"><path d="M32.76 19.97c0 2.53-.73 4.94-2 6.94l5.14 5.16c2.5-3.36 4.08-7.57 4.08-12.1 0-4.5-1.57-8.7-4.08-12.08l-5.13 5.16c1.26 2 2 4.3 2 6.93z" fill="#b8d3f4"/><path d="M20 32.8c-7.02 0-12.78-5.78-12.78-12.83 0-7.04 5.76-12.82 12.77-12.82 2.6 0 4.9.73 6.9 2.1l5.13-5.15C28.68 1.58 24.5 0 20 0 9 0 0 8.94 0 20.08s9 19.97 20 19.97c4.6 0 8.8-1.57 12.14-4.1L27 30.8c-1.98 1.26-4.4 2-7 2z" fill="#3385ff"/></svg> | ||
</template> |
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
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,32 @@ | ||
<template> | ||
<div class="p-4 dark:bg-sky-darker rounded-md shadow-lg flex space-x-4 items-center dark:text-white"> | ||
<img :src="`/img/sponsors/sponsors-square/${$colorMode.value}/${sponsor.img_square}`" :alt="sponsor.title" :class="sponsor.size" class="w-1/4 object-contain" /> | ||
<!-- img :src="`/img/sponsors/sponsors-square/${sponsor.img_square}`" :alt="sponsor.title" /--> | ||
<div class="flex w-3/4" :class="{ 'justify-between items-center': sponsor.link }"> | ||
<div class="flex flex-col items-start"> | ||
<span class="font-medium"> | ||
{{ sponsor.title }} | ||
</span> | ||
<!--TODO: sponsor description | ||
< span class="text-sm"> | ||
</span --> | ||
</div> | ||
<IconChevronRight v-if="sponsor.link" class="w-4 h-4"/> | ||
</div> | ||
</div> | ||
</template> | ||
<script lang="ts"> | ||
import { defineComponent } from '@nuxtjs/composition-api' | ||
export default defineComponent({ | ||
props: { | ||
sponsor: { | ||
type: Object, | ||
required: true | ||
} | ||
}, | ||
setup() { | ||
}, | ||
}) | ||
</script> |
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,37 @@ | ||
<template> | ||
<div class="flex space-x-4 justify-between items-center rounded-md shadow-lg p-8 dark:bg-sky-darker"> | ||
<component :is="icon" class="hidden sm:block w-12 h-12 object-contain" /> | ||
<span class="font-bold text-sm sm:text-lg truncate">{{ text }}</span> | ||
<SectionButton | ||
:to="url" | ||
:aria-label="text" | ||
size="lg" | ||
class="bg-primary text-gray-800 hover:bg-primary-400 focus:bg-primary-400 text-sm" | ||
>{{ $t('sustainability.tiers.donations') }}</SectionButton | ||
> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { defineComponent } from '@vue/composition-api' | ||
export default defineComponent({ | ||
props: { | ||
icon: { | ||
type: String, | ||
default: '' | ||
}, | ||
text: { | ||
type: String, | ||
default: '' | ||
}, | ||
url: { | ||
type: String, | ||
default: '' | ||
} | ||
}, | ||
setup() { | ||
}, | ||
}) | ||
</script> |
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
20 changes: 20 additions & 0 deletions
20
components/organisms/sustainability/SustainabilityDonation.vue
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,20 @@ | ||
<template> | ||
<div class="grid md:grid-cols-2 gap-8 w-full pb-16"> | ||
<div v-for="donation in donations" :key="donation.text"> | ||
<SustainabilityCardDonation :icon="donation.icon" :text="donation.name" :url="donation.url" /> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { defineComponent } from '@nuxtjs/composition-api' | ||
export default defineComponent({ | ||
props: { | ||
donations: { | ||
type: Array, | ||
default: () => [] | ||
} | ||
} | ||
}) | ||
</script> |
80 changes: 80 additions & 0 deletions
80
components/organisms/sustainability/SustainabilityMvpDetail.vue
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,80 @@ | ||
<template> | ||
<div class="d-container-content"> | ||
<div class="relative pt-24 pb-4 xl:pb-16"> | ||
<img :src="`/img/sponsors/sponsors-square/${icon}`" :alt="title" class="w-32 h-32"/> | ||
<h1 class="py-8 text-display-5 font-bold ">{{ title }}</h1> | ||
</div> | ||
<div class="flex flex-col-reverse xl:flex-row xl:justify-between"> | ||
<p class="text-md sm:text-lg w-full xl:w-3/4 pr-20"> | ||
{{ description }} | ||
</p> | ||
<div class="w-full xl:w-1/4 flex flex-col pb-12 xl:pl-12"> | ||
<div> | ||
<span class="font-semibold text-md">{{ $t('sustainability.mvp_detail.services') }}</span> | ||
<ul class="flex flex-col sm:flex-row sm:space-x-4 mt-4 xl:space-x-0 xl:flex-col "> | ||
<li v-for="(service, index) in services" :key="index"> | ||
<div class="flex space-x-2"> | ||
<IconBadgeCheck class="h-5 w-5 mt-0.5"/> | ||
<span>{{ service }}</span> | ||
</div> | ||
</li> | ||
</ul> | ||
</div> | ||
<span class="font-semibold text-md py-4">{{ $t('sustainability.mvp_detail.location') }}</span> | ||
<span>{{ location }}</span> | ||
</div> | ||
</div> | ||
<div class="flex pt-16 space-x-4 text-sm"> | ||
<SectionButton | ||
:to="partnerContactUrl" | ||
:aria-label="partnerContactUrl" | ||
size="lg" | ||
class="bg-primary text-gray-800 hover:bg-primary-400 focus:outline-none"> | ||
{{ $t('sustainability.mvp_detail.contact_partner') }} | ||
</SectionButton> | ||
<SectionButton | ||
:to="websiteUrl" | ||
:aria-label="websiteUrl" | ||
size="lg" | ||
class="bg-white dark:bg-secondary-black hover:light:bg-gray-50 hover:dark:bg-secondary-darkest border focus:outline-none"> | ||
{{ $t('sustainability.mvp_detail.visit_website') }} | ||
</SectionButton> | ||
</div> | ||
</div> | ||
</template> | ||
<script lang="ts"> | ||
import { defineComponent } from '@nuxtjs/composition-api' | ||
export default defineComponent({ | ||
props: { | ||
icon: { | ||
type: String, | ||
default: '' | ||
}, | ||
title: { | ||
type: String, | ||
default: '' | ||
}, | ||
description: { | ||
type: String, | ||
default: '' | ||
}, | ||
partnerContactUrl: { | ||
type: String, | ||
default: '' | ||
}, | ||
websiteUrl: { | ||
type: String, | ||
default: '' | ||
}, | ||
services: { | ||
type: Array, | ||
default: () => [] | ||
}, | ||
location: { | ||
type: String, | ||
default: '' | ||
}, | ||
} | ||
}) | ||
</script> |
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,6 @@ | ||
--- | ||
name: 'GitHub Sponsors' | ||
icon: 'IconGitHub' | ||
url: 'https://github.com/sponsors/nuxt' | ||
tier: 'Donations' | ||
--- |
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,6 @@ | ||
--- | ||
name: 'OpenCollective' | ||
icon: 'IconOpenCollective' | ||
url: 'https://opencollective.com/nuxtjs' | ||
tier: 'Donations' | ||
--- |
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 |
---|---|---|
@@ -1,7 +1,9 @@ | ||
--- | ||
title: 'Netlify' | ||
img_square: 'netlify.svg' | ||
img: 'netlify.png' | ||
url: 'https://www.netlify.com/' | ||
#link: 'netlify' | ||
url: https://www.netlify.com/ | ||
tier: 'MVP Partners' | ||
size: 'h-12' | ||
--- |
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 |
---|---|---|
@@ -1,7 +1,9 @@ | ||
--- | ||
title: 'Google Chrome' | ||
img: 'google-chrome.png' | ||
url: 'https://www.google.com/chrome/' | ||
img_square: 'chrome.svg' | ||
#link: chrome | ||
url: https://www.google.com/chrome/ | ||
tier: 'MVP Partners' | ||
size: 'h-12' | ||
--- |
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 |
---|---|---|
@@ -1,7 +1,9 @@ | ||
--- | ||
title: 'Vercel' | ||
img: 'vercel.png' | ||
url: 'https://vercel.com' | ||
img_square: 'vercel.svg' | ||
#link: vercel | ||
url: https://vercel.com | ||
tier: 'MVP Partners' | ||
size: 'h-10' | ||
size: 'h-12' | ||
--- |
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
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
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
Oops, something went wrong.