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

View File

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

View File

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

View File

@ -242,10 +242,16 @@
text-decoration: none; text-decoration: none;
} }
.logo[data-v-f4958086] { .logo[data-v-f4958086] {
color: #222;
width: 100%; width: 100%;
display: flex;
align-items: center;
justify-content: center;
height: 4rem; height: 4rem;
-o-object-fit: contain; -o-object-fit: contain;
object-fit: contain; object-fit: contain;
font-size: 1rem;
font-weight: bold;
} }
.title[data-v-f4958086] { .title[data-v-f4958086] {
color: #222; color: #222;
@ -253,7 +259,6 @@
display: flex; display: flex;
align-items: center; align-items: center;
margin: 0; margin: 0;
font-size: 1rem;
} }
/* $primary: #ff886c; */ /* $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, url: site.url,
description: site.description, description: site.description,
slug: site.slug, slug: site.slug,
network: {
id: network.id,
name: network.name,
url: network.url,
description: network.description,
slug: network.slug,
},
})), })),
studios: studios.map(studio => ({ studios: studios.map(studio => ({
id: studio.id, id: studio.id,