mirror of
https://github.com/Drop-OSS/drop.git
synced 2026-01-31 15:37:09 +01:00
* fix: release workflow * feat: move mostly to internal tasks system * feat: migrate object clean to new task system * fix: release not getting good base version * chore: set version v0.3.0 * chore: style * feat: basic task concurrency * feat: temp pages to fill in page links * feat: inital i18n support * feat: localize store page * chore: style * fix: weblate doesn't like multifile thing * fix: update nuxt * feat: improved error logging * fix: using old task api * feat: basic translation docs * feat: add i18n eslint plugin * feat: translate store and auth pages * feat: more translation progress * feat: admin dash i18n progress * feat: enable update check by default in prod * fix: using wrong i18n keys * fix: crash in library sources page * feat: finish i18n work * fix: missing i18n translations * feat: use twemoji for emojis * feat: sanatize object ids * fix: EmojiText's alt text * fix: UserWidget not using links * feat: cache and auth for emoji api * fix: add more missing translations
62 lines
1.6 KiB
Vue
62 lines
1.6 KiB
Vue
<template>
|
|
<NuxtLink
|
|
v-if="game"
|
|
:href="props.href ?? `/store/${game.id}`"
|
|
class="group relative w-48 h-64 rounded-lg overflow-hidden transition-all duration-300 text-left hover:scale-[1.02] hover:shadow-lg hover:-translate-y-0.5"
|
|
@click="active = game.id"
|
|
>
|
|
<div
|
|
class="absolute inset-0 transition-all duration-300 group-hover:scale-110"
|
|
>
|
|
<img
|
|
:src="useObject(game.mCoverObjectId)"
|
|
class="w-full h-full object-cover brightness-[90%]"
|
|
:class="{ active: active === game.id }"
|
|
:alt="game.mName"
|
|
/>
|
|
<div
|
|
class="absolute inset-0 bg-gradient-to-t from-zinc-950/80 via-zinc-950/20 to-transparent"
|
|
/>
|
|
</div>
|
|
|
|
<div class="absolute bottom-0 left-0 w-full p-3">
|
|
<h1
|
|
class="text-zinc-100 text-sm font-bold font-display group-hover:text-white transition-colors"
|
|
>
|
|
{{ game.mName }}
|
|
</h1>
|
|
<p
|
|
class="text-zinc-400 text-xs line-clamp-2 group-hover:text-zinc-300 transition-colors"
|
|
>
|
|
{{ game.mShortDescription }}
|
|
</p>
|
|
</div>
|
|
</NuxtLink>
|
|
<SkeletonCard v-else :message="$t('store.noGame')" />
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import type { SerializeObject } from "nitropack";
|
|
|
|
const props = defineProps<{
|
|
game:
|
|
| SerializeObject<{
|
|
id: string;
|
|
mCoverObjectId: string;
|
|
mName: string;
|
|
mShortDescription: string;
|
|
}>
|
|
| undefined;
|
|
href?: string;
|
|
}>();
|
|
|
|
const active = useState();
|
|
</script>
|
|
|
|
<style scoped>
|
|
img.active {
|
|
view-transition-name: selected-game;
|
|
contain: layout;
|
|
}
|
|
</style>
|