fix. 공통 스타일 분리

This commit is contained in:
clkim
2025-09-25 13:19:24 +09:00
parent 7aa2ee7f36
commit ab58a98acf
11 changed files with 70 additions and 137 deletions

View File

@@ -4,11 +4,11 @@ import type { PageDataResourceGroup } from '#layers/types/api/pageData'
interface Props {
resourcesData: PageDataResourceGroup
gradient?: boolean
gradient?: string
}
const props = withDefaults(defineProps<Props>(), {
gradient: false,
gradient: '',
})
const resPath = computed(() => {
@@ -72,7 +72,7 @@ const posterSrc = computed(() => {
<!-- 그라디언트 오버레이 (gradient가 true일 때만) -->
<div
v-if="props.gradient"
class="absolute bottom-0 left-0 right-0 h-[342px] md:h-[720px] bg-gradient-to-b from-[#100d0f]/0 to-[#100d0f]"
:class="`absolute bottom-0 left-0 right-0 ${props.gradient}`"
/>
</div>
</template>