mirror of
https://github.com/BlossomiShymae/clean-cuts.git
synced 2025-12-06 18:20:47 +01:00
Add lazy image loading, fix bugs
This commit is contained in:
@@ -17,15 +17,13 @@ watch(currentLocale, async () => {
|
||||
<template>
|
||||
<div class="d-flex flex-column gap-4">
|
||||
<div class="d-flex flex-row flex-wrap gap-4 justify-content-center">
|
||||
<div v-for="summary in summaries" :id="`${summary.id}`"
|
||||
<div v-for="summary in summaries" :key="`${summary.id}`"
|
||||
style="width: 200px;"
|
||||
data-aos="zoom-out"
|
||||
data-aos-duration="500">
|
||||
<NuxtLink :to="`/champions/${summary.id}`">
|
||||
<div class="ratio ratio-16x9 position-relative trans-hover-grow">
|
||||
<img class="object-fit-cover rounded"
|
||||
:src="skins.find(x => (x.id / 1000) == summary.id)?.getTile({locale: currentLocale, version: 'latest'})"
|
||||
loading="lazy"/>
|
||||
<LLazyImg class="object-fit-cover rounded" img-class="object-fit-cover rounded" :src="skins.find(x => (x.id / 1000) == summary.id)?.getTile({locale: currentLocale, version: 'latest'})"/>
|
||||
<div class="position-absolute z-1 d-flex flex-column justify-content-end">
|
||||
<div class="d-inline-flex justify-content-between align-items-center px-2 bg-dark-gradient rounded-bottom">
|
||||
<span class="fs-5 fw-light">{{ summary.name }}</span>
|
||||
|
||||
Reference in New Issue
Block a user