feat: 平板端适配

This commit is contained in:
2026-03-23 11:09:13 +08:00
parent 6a08f2cede
commit 982b7308e8
12 changed files with 114 additions and 48 deletions

View File

@@ -2,7 +2,7 @@
<div
class="prizes-container container flex align-center space-between"
ref="prizesRef"
:class="{ mobile: isMobile, 'flex-col': isMobile }"
:class="{ mobile: isMobile && !isPad, 'flex-col': isMobile && !isPad, 'is-pad': isPad }"
>
<div class="left flex flex-col flex-center">
<div class="title" ref="prizesTitleRef">
@@ -41,6 +41,7 @@ import { gsap } from 'gsap'
const { t } = useI18n()
const isMobile = inject<boolean>('isMobile')
const isPad = inject<boolean>('isPad')
const props = defineProps({
isZh: {
@@ -283,5 +284,12 @@ onBeforeUnmount(() => {
}
}
}
&.is-pad {
background: url('@/assets/images/pad_version/prizes-bg.png') no-repeat;
background-size: 100% 100%;
padding: 0 6rem;
justify-content: center;
column-gap: 10rem;
}
}
</style>