change to webp
This commit is contained in:
@@ -9,13 +9,13 @@
|
||||
<router-link :to="{ name: 'home' }" id="logo-link">
|
||||
<img
|
||||
class="nav-logo dark:d-none"
|
||||
src="/assets/logo.png"
|
||||
src="/assets/logo.webp"
|
||||
width="270"
|
||||
height="40"
|
||||
alt="STEMMechanics" />
|
||||
<img
|
||||
class="nav-logo light:d-none"
|
||||
src="/assets/logo-dark.png"
|
||||
src="/assets/logo-dark.webp"
|
||||
width="270"
|
||||
height="40"
|
||||
alt="STEMMechanics" />
|
||||
|
||||
@@ -49,10 +49,10 @@ export const getFileExtension = (fileName: string): string => {
|
||||
export const getFileIconImagePath = (fileName: string): string => {
|
||||
const ext = getFileExtension(fileName);
|
||||
if (ext.length > 0) {
|
||||
return `/img/fileicons/${ext}.png`;
|
||||
return `/assets/fileicons/${ext}.webp`;
|
||||
}
|
||||
|
||||
return "/img/fileicons/unknown.png";
|
||||
return "/assets/fileicons/unknown.webp";
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -68,10 +68,10 @@ export const getFilePreview = (url: string): string => {
|
||||
return `${url}?size=thumb`;
|
||||
}
|
||||
|
||||
return `/img/fileicons/${ext}.png`;
|
||||
return `/assets/fileicons/${ext}.webp`;
|
||||
}
|
||||
|
||||
return "/img/fileicons/unknown.png";
|
||||
return "/assets/fileicons/unknown.webp";
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -32,39 +32,39 @@ import SMMastHead from "../components/SMMastHead.vue";
|
||||
|
||||
const communities = [
|
||||
{
|
||||
thumbnail: "/img/community-discord.jpg",
|
||||
thumbnail: "/assets/community-discord.webp",
|
||||
url: "https://discord.gg/yNzk4x7mpD",
|
||||
title: "Discord",
|
||||
content:
|
||||
"A vibrant community for discussion, user support, showcases... and custom emoji!",
|
||||
},
|
||||
{
|
||||
thumbnail: "/img/community-minecraft.jpg",
|
||||
thumbnail: "/assets/community-minecraft.webp",
|
||||
url: "/minecraft",
|
||||
title: "Minecraft",
|
||||
content:
|
||||
"Our usual hang-out to kill zombies and build redstone contraptions.",
|
||||
},
|
||||
{
|
||||
thumbnail: "/img/community-github.jpg",
|
||||
thumbnail: "/assets/community-github.webp",
|
||||
url: "https://github.com/stemmechanics",
|
||||
title: "GitHub",
|
||||
content: "All our open-source projects. Send bug reports here.",
|
||||
},
|
||||
{
|
||||
thumbnail: "/img/community-youtube.jpg",
|
||||
thumbnail: "/assets/community-youtube.webp",
|
||||
url: "https://youtube.com/stemmechanics",
|
||||
title: "YouTube",
|
||||
content: "Channel for official STEMMechanics videos.",
|
||||
},
|
||||
{
|
||||
thumbnail: "/img/community-facebook.jpg",
|
||||
thumbnail: "/assets/community-facebook.webp",
|
||||
url: "https://facebook.com/stemmechanics",
|
||||
title: "Facebook",
|
||||
content: "Community for discussions and showcasing workshops.",
|
||||
},
|
||||
{
|
||||
thumbnail: "/img/community-mastodon.jpg",
|
||||
thumbnail: "/assets/community-mastodon.webp",
|
||||
url: "https://mastodon.au/@stemmechanics",
|
||||
title: "Mastodon",
|
||||
content: "Connect with us in the Fediverse.",
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
<a href="https://www.stemmechanics.com.au/">
|
||||
<img
|
||||
alt="STEMMechanics Logo"
|
||||
src="{{ $message->embed(public_path('img').'/logo.png') }}"
|
||||
src="{{ $message->embed(public_path('assets').'/logo.webp') }}"
|
||||
width="400"
|
||||
height="62"
|
||||
/>
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
<a href="https://www.stemmechanics.com.au/">
|
||||
<img
|
||||
alt="STEMMechanics Logo"
|
||||
src="{{ $message->embed(public_path('img').'/logo.png') }}"
|
||||
src="{{ $message->embed(public_path('assets').'/logo.webp') }}"
|
||||
width="400"
|
||||
height="62"
|
||||
/>
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
<a href="https://www.stemmechanics.com.au/">
|
||||
<img
|
||||
alt="STEMMechanics Logo"
|
||||
src="{{ $message->embed(public_path('img').'/logo.png') }}"
|
||||
src="{{ $message->embed(public_path('assets').'/logo.webp') }}"
|
||||
width="400"
|
||||
height="62"
|
||||
/>
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
<a href="https://www.stemmechanics.com.au/">
|
||||
<img
|
||||
alt="STEMMechanics Logo"
|
||||
src="{{ $message->embed(public_path('img').'/logo.png') }}"
|
||||
src="{{ $message->embed(public_path('assets').'/logo.webp') }}"
|
||||
width="400"
|
||||
height="62"
|
||||
/>
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
<a href="https://www.stemmechanics.com.au/">
|
||||
<img
|
||||
alt="STEMMechanics Logo"
|
||||
src="{{ $message->embed(public_path('img').'/logo.png') }}"
|
||||
src="{{ $message->embed(public_path('assets').'/logo.webp') }}"
|
||||
width="400"
|
||||
height="62"
|
||||
/>
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
<a href="https://www.stemmechanics.com.au/">
|
||||
<img
|
||||
alt="STEMMechanics Logo"
|
||||
src="{{ $message->embed(public_path('img').'/logo.png') }}"
|
||||
src="{{ $message->embed(public_path('assets').'/logo.webp') }}"
|
||||
width="400"
|
||||
height="62"
|
||||
/>
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
<a href="https://www.stemmechanics.com.au/">
|
||||
<img
|
||||
alt="STEMMechanics Logo"
|
||||
src="{{ $message->embed(public_path('img').'/logo.png') }}"
|
||||
src="{{ $message->embed(public_path('assets').'/logo.webp') }}"
|
||||
width="400"
|
||||
height="62"
|
||||
/>
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
<a href="https://www.stemmechanics.com.au/">
|
||||
<img
|
||||
alt="STEMMechanics Logo"
|
||||
src="{{ $message->embed(public_path('img').'/logo.png') }}"
|
||||
src="{{ $message->embed(public_path('assets').'/logo.webp') }}"
|
||||
width="400"
|
||||
height="62"
|
||||
/>
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
<a href="https://www.stemmechanics.com.au/">
|
||||
<img
|
||||
alt="STEMMechanics Logo"
|
||||
src="{{ $message->embed(public_path('img').'/logo.png') }}"
|
||||
src="{{ $message->embed(public_path('assets').'/logo.webp') }}"
|
||||
width="400"
|
||||
height="62"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user