Skip to content

Commit 4da8616

Browse files
committed
img compression
1 parent 6b587da commit 4da8616

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/News.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export default {
5656
data: () => ({
5757
expanded: false,
5858
news: [],
59-
imgUrlParams: '?w=500&h=500'
59+
imgUrlParams: '?fm=webp&w=300&h=300'
6060
}),
6161
computed: {
6262
loading() {

src/components/Sponsors.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
class="sponsor card mb-small">
1515
<div
1616
class="img-container mb-small"
17-
:style="`background-image: url(${sponsor.fields.logo.fields.file.url})`" />
17+
:style="`background-image: url(${sponsor.fields.logo.fields.file.url}?fm=webp&w=300&h=300)`" />
1818
</a>
1919
</div>
2020
<div class="col-sm-12 type-small type-right pr-small" v-html="$t('development.howToJoin')" />

0 commit comments

Comments
 (0)