Moved icons into network directories. Improved network logo handling.

This commit is contained in:
ThePendulum 2019-11-10 04:47:41 +01:00
parent be012bfa40
commit 6ed484af76
53 changed files with 30 additions and 16 deletions

View File

@ -8,6 +8,7 @@
<h2 class="title">
{{ network.name }}
<a
v-if="network.url"
:href="network.url"
target="_blank"
rel="noopener noreferrer"
@ -23,14 +24,16 @@
</span>
<a
v-if="network.url"
:href="network.url"
target="_blank"
rel="noopener noreferrer"
>
<img
:src="`/img/networks/${network.slug}.png`"
<object
:data="`/img/logos/${network.slug}/network.png`"
type="image/png"
class="logo"
>
>{{ network.name }}</object>
</a>
</div>

View File

@ -42,8 +42,6 @@
>
<a
:href="`/actor/${actor.slug}`"
target="_blank"
rel="noopener noreferrer"
class="actor-link"
>{{ actor.name }}</a>
</li>
@ -127,8 +125,6 @@
>
<a
:href="`/tag/${tag.slug}`"
target="_blank"
rel="noopener noreferrer"
class="tag-link"
>{{ tag.name }}</a>
</li>

View File

@ -3,13 +3,11 @@
:href="`/site/${site.slug}`"
class="tile"
>
<h3 class="title">
<object
:data="`/img/sites/${site.slug}.png`"
type="image/png"
class="logo"
>{{ site.name }}</object>
</h3>
<object
:data="`/img/logos/${site.network.slug}/${site.slug}.png`"
type="image/png"
class="logo"
>{{ site.name }}</object>
</a>
</template>
@ -44,9 +42,15 @@ export default {
}
.logo {
color: $text;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
height: 4rem;
object-fit: contain;
font-size: 1rem;
font-weight: bold;
}
.title {
@ -55,6 +59,5 @@ export default {
display: flex;
align-items: center;
margin: 0;
font-size: 1rem;
}
</style>

View File

@ -242,10 +242,16 @@
text-decoration: none;
}
.logo[data-v-f4958086] {
color: #222;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
height: 4rem;
-o-object-fit: contain;
object-fit: contain;
font-size: 1rem;
font-weight: bold;
}
.title[data-v-f4958086] {
color: #222;
@ -253,7 +259,6 @@
display: flex;
align-items: center;
margin: 0;
font-size: 1rem;
}
/* $primary: #ff886c; */

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

View File

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

View File

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

View File

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

View File

Before

Width:  |  Height:  |  Size: 53 KiB

After

Width:  |  Height:  |  Size: 53 KiB

View File

Before

Width:  |  Height:  |  Size: 86 KiB

After

Width:  |  Height:  |  Size: 86 KiB

View File

Before

Width:  |  Height:  |  Size: 58 KiB

After

Width:  |  Height:  |  Size: 58 KiB

View File

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

View File

Before

Width:  |  Height:  |  Size: 5.2 KiB

After

Width:  |  Height:  |  Size: 5.2 KiB

View File

Before

Width:  |  Height:  |  Size: 170 KiB

After

Width:  |  Height:  |  Size: 170 KiB

View File

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

View File

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

View File

Before

Width:  |  Height:  |  Size: 170 KiB

After

Width:  |  Height:  |  Size: 170 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

View File

@ -22,6 +22,13 @@ async function curateNetwork(network) {
url: site.url,
description: site.description,
slug: site.slug,
network: {
id: network.id,
name: network.name,
url: network.url,
description: network.description,
slug: network.slug,
},
})),
studios: studios.map(studio => ({
id: studio.id,