Skip to content

Commit

Permalink
add companies logo
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex committed Aug 8, 2019
1 parent fdc5e15 commit f152f45
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 9 deletions.
50 changes: 41 additions & 9 deletions partials/home/companies.vue
Expand Up @@ -4,17 +4,49 @@
<h1 class="text-3xl uppercase text-center pb-8">
Who's using nuxt<span class="text-nuxt-lightgreen">JS</span>
</h1>
<div class="flex items-start justify-between">
<div class="w-1/3 p-8 text-center">
Roland Garros
</div>
<div class="w-1/3 p-8 text-center">
Roland Garros
</div>
<div class="w-1/3 p-8 text-center">
Roland Garros
<div class="flex items-center justify-between">
<div v-for="(company, i) in companies[$i18n.locale]" :key="i" class="p-8 text-center">
<a :href="company.url" target="_blank" rel="noopener">
<img :src="'/img/companies/' + $i18n.locale + '/' + company.img" :alt="company.name" :class="company.class">
</a>
</div>
</div>
</section>
</nui-container>
</template>

<script>
export default {
data () {
return {
companies: {
en: [
],
fr: [
{ name: 'Ubisoft', img: 'ubisoft-logo.png', url: 'https://assassinscreed.ubisoft.com/story-creator-mode', class: 'h-20' },
{ name: 'Maison du monde', img: 'maison-du-monde.png', url: 'https://www.maisonsdumonde.com/', class: 'h-20' },
{ name: 'BackMarket', img: 'backmarket.png', url: 'https://www.backmarket.fr', class: 'h-12' },
{ name: 'Faire', img: 'faire.png', url: 'https://www.faire.fr', class: 'h-16' },
{ name: 'Roland Garros', img: 'roland-garros.png', url: 'https://www.rolandgarros.com', class: 'h-20' },
],
zh: [
],
ja: [
],
ko: [
],
ru: [
],
id: [
]
}
}
}
}
</script>
Binary file added static/img/companies/fr/backmarket.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/companies/fr/faire.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/companies/fr/maison-du-monde.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/companies/fr/roland-garros.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/companies/fr/ubisoft-logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f152f45

Please sign in to comment.