You've already forked AstralRinth
forked from didirus/AstralRinth
* Refactor search page, migrate to /discover/ * Add NormalPage component for common layouts, refactor Collections page as an example, misc ui pkg cleanup * intl:extract * lint * lint * remove old components * Refactor search page, migrate to /discover/ * Add NormalPage component for common layouts, refactor Collections page as an example, misc ui pkg cleanup * intl:extract * lint * lint * remove old components
21 lines
424 B
Vue
21 lines
424 B
Vue
<script setup lang="ts">
|
|
import { injectPageContext } from '../../providers'
|
|
|
|
const { hierarchicalSidebarAvailable } = injectPageContext()
|
|
|
|
defineProps<{
|
|
title: string
|
|
}>()
|
|
</script>
|
|
<template>
|
|
<div
|
|
class="flex flex-col gap-3 p-4"
|
|
:class="{
|
|
'card-shadow mb-4 last:mb-0 rounded-2xl bg-bg-raised': !hierarchicalSidebarAvailable,
|
|
}"
|
|
>
|
|
<span class="font-semibold">{{ title }}</span>
|
|
<slot />
|
|
</div>
|
|
</template>
|