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

View File

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