traxxx-web/pages/stashes/@username/+Page.vue

92 lines
1.3 KiB
Vue

<template>
<div class="stash">
<div class="header">
<h2 class="title">
<Icon
v-if="stash.primary"
icon="heart7"
/>
<Icon
v-else
icon="box"
/>
{{ stash.name }}
</h2>
<a
:href="`/user/${stash.user.username}`"
class="user nolink"
>
<img
:src="stash.user.avatar"
class="avatar"
>{{ stash.user.username }}
</a>
</div>
<div class="scenes-container">
<Scenes />
</div>
</div>
</template>
<script setup>
import { inject } from 'vue';
import Scenes from '#/components/scenes/scenes.vue';
const pageContext = inject('pageContext');
const stash = pageContext.pageProps.stash;
console.log(stash);
</script>
<style scoped>
.stash {
display: flex;
flex-direction: column;
overflow: hidden;
}
.header {
display: flex;
justify-content: space-between;
padding: .5rem 1rem;
color: var(--text-light);
background: var(--grey-dark-40);
}
.title {
margin: 0;
text-transform: capitalize;
display: flex;
align-items: center;
.icon {
width: 1.5rem;
height: 1.5rem;
margin-right: 1rem;
fill: var(--text-light);
}
}
.user {
display: flex;
align-items: center;
font-weight: bold;
}
.avatar {
width: 1.5rem;
height: 1.5rem;
margin-right: 1rem;
border-radius: .25rem;
}
.scenes-container {
overflow-y: auto;
}
</style>