Fix in the news imgs

This commit is contained in:
samaradel
2021-03-07 10:46:03 +02:00
parent 0f8e5a00c3
commit e1df49afaf
15 changed files with 24 additions and 27 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

View File

@@ -1,11 +1,10 @@
<template>
<div class="bg-white">
<div class="max-w-screen-xl mx-auto py-12 px-4 sm:px-6 lg:py-16 lg:px-8">
<p
<div
v-html="news.content"
class="text-center text-base leading-6 font-semibold uppercase text-gray-600 tracking-wider"
>
{{ news.excerpt }}
</p>
></div>
<div class="mt-6 grid grid-cols-2 gap-0.5 md:grid-cols-3 lg:mt-8">
<g-link
v-for="partner in news.partners"
@@ -14,15 +13,7 @@
target="_blank"
class="col-span-1 flex justify-center py-8 px-8 m-1 bg-gray-100"
>
<!-- <img
class="max-h-12"
:src="require(`!!assets-loader!@images/${partner.logo}`)"
/> -->
<img
class="max-h-12"
:src="partner.logo"
/>
<img class="max-h-12" :src="img(partner.logo)" />
</g-link>
</div>
</div>
@@ -32,5 +23,12 @@
<script>
export default {
props: ["news"],
methods: {
img(image) {
if (!image) return "";
if (image.src) return image.src;
return image;
},
},
};
</script>

View File

@@ -47,18 +47,18 @@
v-if="$page.markdownPage.brandPanel"
/>
<!-- <NewCard
<!-- <NewCard
v-for="card in $page.markdownPage.cards"
:key="card.id"
:card="card"
/> -->
<InTheNews
v-if="$page.markdownPage.inTheNews"
:news="$page.markdownPage.inTheNews"
/>
<InTheNews
v-if="$page.markdownPage.inTheNews"
:news="$page.markdownPage.inTheNews"
/>
<!-- <SignUp
<!-- <SignUp
v-if="$page.markdownPage.signup"
:signup="$page.markdownPage.signup"
/> -->
@@ -156,7 +156,7 @@
}
inTheNews {
id
excerpt
content
partners {
path
logo