mirror of
https://github.com/BewlyBewly/BewlyBewly.git
synced 2025-04-14 13:15:29 +00:00
update: anime page
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import type { PopularAnime } from './types'
|
||||
import type { PopularAnime } from '../types'
|
||||
|
||||
const popularAnimeList = reactive<PopularAnime[]>([])
|
||||
const activatedAnime = ref<PopularAnime>()
|
||||
@@ -40,39 +40,39 @@ function getPopularAnimeList() {
|
||||
<div
|
||||
ref="bannerContent"
|
||||
w-full
|
||||
h-70vh
|
||||
min-h-400px
|
||||
h-600px
|
||||
pos="absolute top-0 left-0"
|
||||
z="-1"
|
||||
backdrop-blur-2xl
|
||||
>
|
||||
<div
|
||||
:style="{ backgroundImage: `url(${activatedAnime?.cover})` }"
|
||||
:style="{ backgroundImage: url(${activatedAnime?.cover}) }"
|
||||
bg="cover center"
|
||||
duration-600
|
||||
w-full
|
||||
h-full
|
||||
pos="absolute"
|
||||
opacity-60
|
||||
after:content-none
|
||||
after:pos="absolute top-0 left-0"
|
||||
after:w-full after:h-full
|
||||
after:backdrop-blur-2xl
|
||||
opacity-30
|
||||
/>
|
||||
</div>
|
||||
<div h-70vh min-h-400px z-1>
|
||||
<div text="3xl">
|
||||
{{ activatedAnime?.title }}
|
||||
|
||||
<div h-600px z-1 pos="relative" flex justify-center>
|
||||
<div>
|
||||
<img
|
||||
w="full"
|
||||
:src="activatedAnime?.ss_horizontal_cover.replace('https:', '')"
|
||||
rounded="$bew-radius"
|
||||
pointer-events-none
|
||||
h="400px"
|
||||
>
|
||||
<div text="2xl white" p-4 pos="relative" bg="black opacity-60">
|
||||
{{ activatedAnime?.title }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<ul w-full flex gap-4 overflow-hidden m="t--150px">
|
||||
<ul w-full flex gap-4 overflow-hidden m="t--150px" z-1 relative>
|
||||
<li
|
||||
v-for="(item, index) in popularAnimeList"
|
||||
:key="index"
|
||||
@@ -81,7 +81,6 @@ function getPopularAnimeList() {
|
||||
@mouseover="activatedAnime = item"
|
||||
>
|
||||
<img
|
||||
w="full"
|
||||
:src="item.ss_horizontal_cover.replace('https:', '')"
|
||||
rounded="$bew-radius"
|
||||
>
|
||||
|
||||
@@ -1,27 +0,0 @@
|
||||
export interface PopularAnime {
|
||||
badge: '独家' | '会员抢先' | '会员专享' | '出品'
|
||||
badge_info: {
|
||||
bg_color: string
|
||||
bg_color_night: string
|
||||
text: string
|
||||
}
|
||||
badge_type: number
|
||||
copyright: string
|
||||
cover: string // 豎向封面
|
||||
new_ep: {
|
||||
cover: string
|
||||
index_show: string
|
||||
}
|
||||
rank: number // 排名
|
||||
rating: string // 評分
|
||||
season_id: number
|
||||
ss_horizontal_cover: string // 橫向封面
|
||||
stat: {
|
||||
danmaku: number // 彈幕
|
||||
follow: number // 訂閲
|
||||
series_follow: number // 當前系列訂閲???
|
||||
view: number // 觀看數
|
||||
}
|
||||
title: string
|
||||
url: string
|
||||
}
|
||||
Reference in New Issue
Block a user