1
0

Generalise img

This commit is contained in:
2022-03-29 23:57:08 +00:00
parent 4c09bffd41
commit d0257c4a00
29 changed files with 14 additions and 14 deletions

View File

Before

Width:  |  Height:  |  Size: 1.4 MiB

After

Width:  |  Height:  |  Size: 1.4 MiB

View File

Before

Width:  |  Height:  |  Size: 5.1 MiB

After

Width:  |  Height:  |  Size: 5.1 MiB

View File

Before

Width:  |  Height:  |  Size: 1.2 MiB

After

Width:  |  Height:  |  Size: 1.2 MiB

View File

Before

Width:  |  Height:  |  Size: 1.4 MiB

After

Width:  |  Height:  |  Size: 1.4 MiB

View File

Before

Width:  |  Height:  |  Size: 1.3 MiB

After

Width:  |  Height:  |  Size: 1.3 MiB

View File

Before

Width:  |  Height:  |  Size: 1.4 MiB

After

Width:  |  Height:  |  Size: 1.4 MiB

View File

Before

Width:  |  Height:  |  Size: 6.1 MiB

After

Width:  |  Height:  |  Size: 6.1 MiB

View File

Before

Width:  |  Height:  |  Size: 1.4 MiB

After

Width:  |  Height:  |  Size: 1.4 MiB

View File

Before

Width:  |  Height:  |  Size: 1.3 MiB

After

Width:  |  Height:  |  Size: 1.3 MiB

View File

@@ -6,16 +6,16 @@ window.addEventListener('load', () => {
const elem = funkoTemplate.content.cloneNode(true); const elem = funkoTemplate.content.cloneNode(true);
const special = ['img', 'href']; const special = ['img', 'href'];
elem.querySelector('.funko__img').setAttribute('src', `img/${funko.img}.jpg`); elem.querySelector('.funko__img').setAttribute('src', `../img/${funko.img}.jpg`);
elem.querySelector('.funko__readmore').setAttribute('href', `/${funko.href}.html`); elem.querySelector('.funko__readmore').setAttribute('href', `/${funko.href}.html`);
for (const [k, v] of Object.entries(funko)) { for (const [k, v] of Object.entries(funko)) {
if (special.includes(k)) if (special.includes(k))
continue; continue;
elem.querySelector(`.funko__${k}`).innerHTML = v; elem.querySelector(`.funko__${k}`).innerHTML = v;
} }
funkoContainer.appendChild(elem); funkoContainer.appendChild(elem);
}); });
}); });

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 MiB

View File

@@ -18,45 +18,45 @@
<div class='row row-cols-2 row-cols-md-3 row-cols-lg-4 gy-5'> <div class='row row-cols-2 row-cols-md-3 row-cols-lg-4 gy-5'>
<div> <div>
<p>Age of Ultron Wanda</p> <p>Age of Ultron Wanda</p>
<img src='https://laurenacton.github.io/img/aouwanda.jpg' alt='Age of Ultron Wanda' <img src='../img/aouwanda.jpg' alt='Age of Ultron Wanda'
width='150px' /> width='150px' />
</div> </div>
<div> <div>
<p>Anti Venom</p> <p>Anti Venom</p>
<img src='https://laurenacton.github.io/img/antivenom.jpg' alt='Anti Venom' <img src='../img/antivenom.jpg' alt='Anti Venom'
width='150px' /> width='150px' />
</div> </div>
<div> <div>
<p>Integrated Spiderman Suit</p> <p>Integrated Spiderman Suit</p>
<img src='https://laurenacton.github.io/img/spidey.jpg' alt='Integrated Spiderman Suit' <img src='../img/spidey.jpg' alt='Integrated Spiderman Suit'
width='150px' /> width='150px' />
</div> </div>
<div> <div>
<p>Halloween Wanda</p> <p>Halloween Wanda</p>
<img src='https://laurenacton.github.io/img/halwanda.jpg' alt='Halloween Wanda' <img src='../img/halwanda.jpg' alt='Halloween Wanda'
width='150px' /> width='150px' />
</div> </div>
<div> <div>
<p>The Scarlet Witch</p> <p>The Scarlet Witch</p>
<img src='https://laurenacton.github.io/img/floatwanda.jpg' alt='The Scarlet Witch' <img src='../img/floatwanda.jpg' alt='The Scarlet Witch'
width='150px' /> width='150px' />
</div> </div>
<div> <div>
<p>Kate Bishop and Lucky the Dog</p> <p>Kate Bishop and Lucky the Dog</p>
<img src='https://laurenacton.github.io/img/katebishop.jpg' <img src='../img/katebishop.jpg'
alt='Kate Bishop and Lucky the Dog' width='150px' /> alt='Kate Bishop and Lucky the Dog' width='150px' />
</div> </div>
<div> <div>
<p>Yelena</p> <p>Yelena</p>
<img src='https://laurenacton.github.io/img/yelena.jpg' alt='Yelena' width='150px' /> <img src='../img/yelena.jpg' alt='Yelena' width='150px' />
</div> </div>
<div> <div>
<p>Civil War Wanda</p> <p>Civil War Wanda</p>
<img src='https://laurenacton.github.io/img/cwwanda.jpg' alt='Civil War Wanda' <img src='../img/cwwanda.jpg' alt='Civil War Wanda'
width='150px' /> width='150px' />
</div> </div>
</div> </div>
</div> </div>
</body> </body>
</html> </html>

View File

@@ -4,7 +4,7 @@ export default {
}, },
template: ` template: `
<div class="card text-center"> <div class="card text-center">
<img class='card-img-top' :src="'https://laurenacton.github.io/img/' + funko.img + '.jpg'" :alt="funko.name" width="150" /> <img class='card-img-top' :src="'../img/' + funko.img + '.jpg'" :alt="funko.name" width="150" />
<div class="card-header"> <div class="card-header">
<p v-html="funko.title"></p> <p v-html="funko.title"></p>
</div> </div>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 MiB