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

View File

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 4.7 KiB

View File

Before

Width:  |  Height:  |  Size: 6.0 KiB

After

Width:  |  Height:  |  Size: 6.0 KiB

View File

Before

Width:  |  Height:  |  Size: 8.5 KiB

After

Width:  |  Height:  |  Size: 8.5 KiB

View File

Before

Width:  |  Height:  |  Size: 5.5 KiB

After

Width:  |  Height:  |  Size: 5.5 KiB

View File

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 4.1 KiB

View File

@@ -1,24 +1,23 @@
---
id: in_the_news
# Add logos in src/assets/images/
partners:
- path: https://www.forbes.com/sites/johnkoetsier/2020/06/20/largest-distributed-peer-to-peer-grid-on-the-planet-laying-foundation-for-a-decentralized-internet/?fbclid=IwAR1WKCpqLcWPRWg5bPD6RCQE5JJjRPt6ey5vbEnu3db2FvJnp6-YKeVZNW8#79aa340e6798'
logo: forbers.png
logo: ./logos/forbers.png
- path: https://cointelegraph.com/news/peer-to-peer-internet-has-lofty-goal-to-bring-true-decentralization
logo: thecointel.png
logo: ./logos/thecointel.png
- path: https://hackernoon.com/is-it-possible-to-create-a-decentralized-internet-this-startup-and-its-farmers-think-so-ey2e3ycf
logo: hackernoon.png
logo: ./logos/hackernoon.png
- path: https://cryptodaily.co.uk/2019/11/data-centers-are-under-pressure-to-meet-internet-demand
logo: cryptodaily.png
logo: ./logos/cryptodaily.png
- path: https://gritdaily.com/belarus-governments-control-internet/
logo: grit_daily.png
logo: ./logos/grit_daily.png
- path: https://btcmanager.com/digibyte-dgb-threefold-decentralize-global-internet-architecture/?q=/digibyte-dgb-threefold-decentralize-global-internet-architecture/&q=/digibyte-dgb-threefold-decentralize-global-internet-architecture/
logo: btc.png
logo: ./logos/btc.png
---
In the News

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

View File

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

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

@@ -156,7 +156,7 @@
}
inTheNews {
id
excerpt
content
partners {
path
logo