mirror of
https://github.com/BewlyBewly/BewlyBewly.git
synced 2025-04-14 13:15:29 +00:00
style: implement and complete responsive design
This commit is contained in:
@@ -123,8 +123,8 @@ function getPopularAnimeList() {
|
||||
<article
|
||||
v-for="item in animeWatchList"
|
||||
:key="item.episode_id"
|
||||
w="2xl:[calc(100%/6-1.5rem)] xl:[calc(100%/5-1.5rem)] lg:[calc(100%/4-1.5rem)] md:[calc(100%/3-1.5rem)] [calc(100%/2-1.5rem)]"
|
||||
last:w="2xl:1/6 xl:1/5 lg:1/4 md:1/3 1/2"
|
||||
w="2xl:[calc(100%/6-1.5rem)] xl:[calc(100%/5-1.5rem)] lg:[calc(100%/4-1.5rem)] md:[calc(100%/3-1.5rem)] sm:[calc(100%/2-1.5rem)] [calc(100%-1.5rem)]"
|
||||
last:w="2xl:1/6 xl:1/5 lg:1/4 md:1/3 sm:1/2 full"
|
||||
shrink-0
|
||||
m="r-6"
|
||||
last:pr-6
|
||||
@@ -196,8 +196,8 @@ function getPopularAnimeList() {
|
||||
<article
|
||||
v-for="item in popularAnimeList"
|
||||
:key="item.episode_id"
|
||||
w="2xl:[calc(100%/6-1.5rem)] xl:[calc(100%/5-1.5rem)] lg:[calc(100%/4-1.5rem)] md:[calc(100%/3-1.5rem)] [calc(100%/2-1.5rem)]"
|
||||
last:w="2xl:1/6 xl:1/5 lg:1/4 md:1/3 1/2"
|
||||
w="2xl:[calc(100%/6-1.5rem)] xl:[calc(100%/5-1.5rem)] lg:[calc(100%/4-1.5rem)] md:[calc(100%/3-1.5rem)] sm:[calc(100%/2-1.5rem)] [calc(100%-1.5rem)]"
|
||||
last:w="2xl:1/6 xl:1/5 lg:1/4 md:1/3 sm:1/2 full"
|
||||
shrink-0
|
||||
m="r-6"
|
||||
last:pr-6
|
||||
@@ -278,7 +278,7 @@ function getPopularAnimeList() {
|
||||
<h3 text="3xl $bew-text-1" font="bold" mb-6>
|
||||
{{ $t('anime.recommended_for_you') }}
|
||||
</h3>
|
||||
<div grid="~ 2xl:cols-6 xl:cols-5 lg:cols-4 md:cols-3 cols-2 gap-6">
|
||||
<div grid="~ 2xl:cols-6 xl:cols-5 lg:cols-4 md:cols-3 sm:cols-2 cols-1 gap-6">
|
||||
<article
|
||||
v-for="item in recommendAnimeList"
|
||||
:key="item.episode_id"
|
||||
|
||||
@@ -46,7 +46,7 @@ function getAnimeTimeTable() {
|
||||
<li
|
||||
v-for="item in animeTimeTable"
|
||||
:key="item.date_ts"
|
||||
w="1/7"
|
||||
w="1/1 sm:1/2 md:1/4 lg:1/5 xl:1/6 2xl:1/7"
|
||||
p="x-2 b-8"
|
||||
shrink-0
|
||||
:bg="item.is_today ? '!$bew-theme-color-10' : ''"
|
||||
|
||||
@@ -235,7 +235,7 @@ function handleTurnOnWatchHistory() {
|
||||
|
||||
<template>
|
||||
<div flex="~ col md:row lg:row" gap-4>
|
||||
<main w="full md:75% lg:80%" order="2 md:1 lg:1" mb-6>
|
||||
<main w="full md:60% lg:70% xl:75%" order="2 md:1 lg:1" mb-6>
|
||||
<h3 text="3xl $bew-text-1" font-bold mb-6>
|
||||
Watch History
|
||||
</h3>
|
||||
@@ -250,19 +250,18 @@ function handleTurnOnWatchHistory() {
|
||||
cursor-pointer
|
||||
@click="openLinkToNewTab(`${getHistoryUrl(historyItem)}`)"
|
||||
>
|
||||
<!-- time -->
|
||||
<!-- time slot -->
|
||||
<div
|
||||
mr-4
|
||||
mr-8
|
||||
px-4
|
||||
b-l="~ 2px dashed $bew-fill-2"
|
||||
group-hover:b-l="$bew-theme-color-40"
|
||||
|
||||
items-center
|
||||
justify-center
|
||||
shrink-0
|
||||
relative
|
||||
duration-300
|
||||
display="none lg:flex"
|
||||
display="none xl:flex"
|
||||
>
|
||||
<!-- Dot -->
|
||||
<i
|
||||
@@ -293,7 +292,7 @@ function handleTurnOnWatchHistory() {
|
||||
|
||||
<section
|
||||
rounded="$bew-radius"
|
||||
flex="~ gap-6"
|
||||
flex="~ gap-6 col md:col lg:row"
|
||||
item-start
|
||||
relative
|
||||
group-hover:bg="$bew-fill-2"
|
||||
@@ -306,14 +305,15 @@ function handleTurnOnWatchHistory() {
|
||||
<div
|
||||
pos="relative"
|
||||
bg="$bew-fill-5"
|
||||
w="200px"
|
||||
w="full md:full lg:250px"
|
||||
flex="shrink-0"
|
||||
rounded="$bew-radius"
|
||||
overflow-hidden
|
||||
aspect-video
|
||||
>
|
||||
<img
|
||||
w="300px"
|
||||
class="aspect-video"
|
||||
w="full"
|
||||
aspect-video
|
||||
:src="`${getHistoryItemCover(historyItem)}@480w_270h_1c`"
|
||||
:alt="historyItem.title"
|
||||
object-cover
|
||||
@@ -398,7 +398,7 @@ function handleTurnOnWatchHistory() {
|
||||
</h3>
|
||||
<div
|
||||
text="$bew-text-2 sm"
|
||||
m="t-4"
|
||||
m="t-4 b-2"
|
||||
flex="~"
|
||||
items-center
|
||||
cursor-pointer
|
||||
@@ -422,7 +422,7 @@ function handleTurnOnWatchHistory() {
|
||||
? historyItem.author_face
|
||||
: historyItem.cover}@80w_80h_1c`
|
||||
"
|
||||
w-8
|
||||
w-30px
|
||||
aspect-square
|
||||
object-cover
|
||||
alt=""
|
||||
@@ -445,7 +445,7 @@ function handleTurnOnWatchHistory() {
|
||||
Live
|
||||
</span>
|
||||
</div>
|
||||
<p display="block lg:none" text="$bew-text-3 sm" mt-auto mb-2>
|
||||
<p display="block xl:none" text="$bew-text-3 sm" mt-auto mb-2>
|
||||
{{
|
||||
useDateFormat(historyItem.view_at * 1000, 'YYYY-MM-DD HH:mm:ss')
|
||||
.value
|
||||
@@ -457,7 +457,7 @@ function handleTurnOnWatchHistory() {
|
||||
text="2xl $bew-text-3"
|
||||
hover:color="$bew-theme-color"
|
||||
opacity="0 group-hover:100"
|
||||
p-4
|
||||
p-2
|
||||
duration-300
|
||||
@click.stop="deleteHistoryItem(index, historyItem)"
|
||||
>
|
||||
@@ -474,7 +474,7 @@ function handleTurnOnWatchHistory() {
|
||||
/>
|
||||
</main>
|
||||
|
||||
<aside relative w="full md:25% lg:20%" order="1 md:2 lg:2">
|
||||
<aside relative w="full md:40% lg:30% xl:25%" order="1 md:2 lg:2">
|
||||
<div pos="sticky top-120px" flex="~ col gap-4" justify-start my-10 w-full>
|
||||
<input
|
||||
v-model.lazy.trim="keyword"
|
||||
|
||||
Reference in New Issue
Block a user