mirror of
https://github.com/wah-su/mstickers.git
synced 2025-05-05 04:19:36 +05:00
update pack index style
This commit is contained in:
parent
5ad18fcdc6
commit
1a9f903e6f
3 changed files with 32 additions and 4 deletions
|
@ -55,7 +55,7 @@ async function loadIndex() {
|
|||
|
||||
async function loadStickerpacks() {
|
||||
stickerpacksIndexContainer.classList.remove("hidden");
|
||||
stickerpacksIndexContainer.classList.add("flex");
|
||||
stickerpacksIndexContainer.classList.add("grid");
|
||||
for (let i = 0; i < index.packs.length; i++) {
|
||||
const data = await fetch(
|
||||
`${window.location.origin}/stickerpacks/${index.packs[i]}`
|
||||
|
@ -77,7 +77,7 @@ async function loadStickerpacks() {
|
|||
continue;
|
||||
}
|
||||
stickerpacksIndexContainer.innerHTML += `
|
||||
<a href="index.html?id=${index.packs[i].split('.json')[0]}" class="flex-grow">
|
||||
<a href="index.html?id=${index.packs[i].split('.json')[0]}">
|
||||
<div class="flex gap-4 items-center bg-stone-800 text-slate-200 p-4 rounded-lg">
|
||||
<img src="${getStickerImage(data.stickers[0].id)}" alt="${
|
||||
data.stickers[0].body
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue