feat(新页面): 印度尼西亚英雄节

This commit is contained in:
hzj 2025-11-05 19:39:44 +08:00
parent c989c4027e
commit e6af395f05
31 changed files with 904 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 235 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 198 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 467 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 222 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 232 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 141 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 142 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 426 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 598 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 207 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 204 KiB

View File

@ -311,6 +311,12 @@ const router = createRouter({
component: () => import('../views/Activities/RevolutionUnityDay/index.vue'),
meta: { requiresAuth: true },
},
{
path: '/heroes-day',
name: 'heroes-day',
component: () => import('../views/Activities/heroesDay/index.vue'),
meta: { requiresAuth: true },
},
],
})

View File

@ -46,6 +46,7 @@ const ACTIVITIES = [
'/recharge-reward', //充值奖励页面
'/invitation-to-register', //邀请新用户注册页面
'/revolution-unity-day', //孟加拉国民革命与团结日
'/heroes-day', //印度尼西亚英雄日
]
// 🎯 核心改变:基于身份的权限配置

View File

@ -0,0 +1,897 @@
<!-- src/views/Activities/RevolutionUnityDay/index.vue -->
<template>
<div class="fullPage">
<div class="bg">
<!-- 状态栏占位区域仅在APP中显示 -->
<div v-if="isInAppEnvironment" style="height: 30px"></div>
<!-- 按钮 -->
<div
style="margin-top: 60vw; display: flex; justify-content: space-between; align-items: center"
>
<!-- 历史榜首按钮 -->
<img
:src="images.history"
alt=""
style="display: block; width: 20%"
@click="historyShow = true"
/>
<!-- 帮助按钮 -->
<img
:src="images.help"
alt=""
style="display: block; width: 10%; margin-right: 8px"
@click="helpInfoShow = true"
/>
</div>
<!-- 倒计时 -->
<div style="display: flex; justify-content: center; margin-top: 1vw">
<div style="width: 15%">
<itemCenter :imgUrl="images.timeDayBg">
<div class="timeText" style="margin-bottom: 20%">{{ Days }}D</div>
</itemCenter>
</div>
<div class="timeText timeGap" style="width: 6px"></div>
<div style="width: 15%">
<itemCenter :imgUrl="images.timeHourBg">
<div class="timeText" style="margin-bottom: 20%">{{ Hours }}</div>
</itemCenter>
</div>
<div class="timeText timeGap">:</div>
<div style="width: 15%">
<itemCenter :imgUrl="images.timeMinBg">
<div class="timeText" style="margin-bottom: 20%">{{ Minutes }}</div>
</itemCenter>
</div>
<div class="timeText timeGap">:</div>
<div style="width: 15%">
<itemCenter :imgUrl="images.timeSecBg">
<div class="timeText" style="margin-bottom: 20%">{{ Second }}</div>
</itemCenter>
</div>
</div>
<!-- 每周礼物 -->
<div style="display: flex; justify-content: center; margin-top: 10px">
<div style="width: 100%; position: relative">
<img :src="images.giftsBg" alt="" style="width: 100%" />
<div
style="
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
display: flex;
justify-content: center;
align-items: center;
"
>
<div style="width: 90%; display: flex; justify-content: space-around; margin-top: 10%">
<div
v-for="(gift, index) in gifts"
:key="index"
style="width: 30%; display: flex; flex-direction: column"
>
<div style="position: relative">
<img style="" :src="images.giftItemBg" alt="" width="100%" />
<div
style="
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
display: flex;
justify-content: center;
align-items: center;
"
>
<img :src="gift.giftPhoto" alt="" width="50%" />
</div>
</div>
<div style="display: flex; justify-content: center; align-items: center; gap: 5px">
<img
src="/src/assets/icon/coin.png"
alt=""
style="width: 18%; aspect-ratio: 1/1"
/>
<div style="color: rgba(255, 255, 255, 1); font-weight: 590">
{{ gift.giftCandy }}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- 切换按钮 -->
<div style="display: flex; justify-content: space-around">
<img
:src="rankingShow ? images.rankingBtActive : images.rankingBt"
alt=""
style="display: block; width: 40%"
@click="rankingShow = true"
/>
<img
:src="!rankingShow ? images.rewardBtActive : images.rewardsBt"
alt=""
style="display: block; width: 40%"
@click="rankingShow = false"
/>
</div>
<!-- 展示内容 -->
<div>
<!-- Ranking -->
<div
v-show="rankingShow"
style="position: relative; width: 90%; left: 50%; transform: translateX(-50%)"
>
<div
style="
position: absolute;
inset: 2;
background: radial-gradient(50% 50% at 50% 50%, #10614b 0%, #053126 100%);
z-index: 1;
"
></div>
<div style="position: relative; z-index: 1">
<!-- 前三名 -->
<div style="position: relative">
<!-- 头像框 -->
<img :src="images.RankingMain" alt="" width="100%" style="display: block" />
<!-- 用户信息 -->
<div style="position: absolute; inset: 0; padding: 18% 5% 2%">
<div style="margin-top: 3%">
<!-- 第一 -->
<div style="display: flex; justify-content: center">
<TopUser
:BorderImgUrl="images.topOne"
:avatarUrl="RankingHasTop3[0].userAvatar"
:name="RankingHasTop3[0].userNickname"
:distributionValue="RankingHasTop3[0].quantity"
style="width: 43%"
@click="viewUserInfo(RankingHasTop3[0].userId)"
/>
</div>
<!-- 第二三 -->
<div style="display: flex; justify-content: space-between; margin-top: -20%">
<TopUser
:isTopOne="false"
ranking="2"
:BorderImgUrl="images.topTwo"
:avatarUrl="RankingHasTop3[1].userAvatar"
:name="RankingHasTop3[1].userNickname"
:distributionValue="RankingHasTop3[1].quantity"
style="width: 30%"
@click="viewUserInfo(RankingHasTop3[1].userId)"
/>
<TopUser
:isTopOne="false"
ranking="3"
:BorderImgUrl="images.topThree"
:avatarUrl="RankingHasTop3[2].userAvatar"
:name="RankingHasTop3[2].userNickname"
:distributionValue="RankingHasTop3[2].quantity"
style="width: 30%"
@click="viewUserInfo(RankingHasTop3[2].userId)"
/>
</div>
</div>
</div>
</div>
<!-- 第四名开始 -->
<div
v-for="listItem in showRanking"
style="position: relative"
@click="viewUserInfo(listItem.userId)"
>
<img :src="images.RankingItem" alt="" width="100%" style="display: block" />
<div
style="
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
display: flex;
align-items: center;
padding: 0 8%;
"
>
<div style="width: 100%; display: flex; align-items: center">
<div style="color: #edb247; font-weight: 700; width: 10%" class="UserNickname">
{{ listItem.rank }}
</div>
<img
:src="listItem.userAvatar || ''"
alt=""
style="
width: 20%;
margin: 0 2%;
aspect-ratio: 1/1;
border-radius: 50%;
object-fit: cover;
"
@error="defaultAvatarUrl"
/>
<div
style="
width: calc(100% - 10% - 28% - 16px);
display: flex;
flex-direction: column;
"
>
<div
style="
color: #fff;
font-weight: 860;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
width: 100%;
"
class="UserNickname"
>
{{ listItem.userNickname }}
</div>
<div style="color: #fff; font-weight: 590" class="UserNickname">
ID:{{ listItem.account }}
</div>
</div>
</div>
<div style="display: flex; width: 30%; display: flex; align-items: center">
<img src="/src/assets/icon/coin.png" alt="" style="width: 30%" />
<div style="color: #edb247; font-weight: 700" class="UserNickname">
{{ listItem.quantity }}
</div>
</div>
</div>
</div>
<!-- 触发加载功能 -->
<div ref="RankingLoadmore" v-show="showRankingLoading && rankingShow"></div>
<!-- 底框 -->
<img
:src="images.RankingBottomBorder"
alt=""
width="100%"
style="display: block; margin-top: -20%"
/>
</div>
</div>
<!-- Rewards -->
<div
v-show="!rankingShow"
style="display: flex; flex-direction: column; align-items: center"
>
<div
v-for="(rewardsTop, top) in rewardsList"
:key="top"
style="position: relative; width: 90%; margin-bottom: 20px"
>
<div style="position: relative">
<img :src="topImg[Number(top)]" alt="" style="width: 100%; margin-top: 10px" />
<div
style="
position: absolute;
inset: 0;
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 8px;
padding: 30vw 5vw 20vw;
"
>
<div
v-for="(reward, rewardIndex) in rewardsTop.propsGroup.activityRewardProps"
:key="rewardIndex"
style="width: 100%"
>
<div
style="
position: relative;
display: flex;
flex-direction: column;
align-items: center;
"
>
<img :src="images.giftItemBg" style="" alt="" width="90%" />
<div
style="
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
display: flex;
justify-content: center;
align-items: center;
"
>
<img
:src="reward.cover || ''"
alt=""
width="50%"
style="aspect-ratio: 1/1"
@error="(e) => handleImageError(e, reward.type)"
/>
</div>
</div>
<div style="color: rgba(255, 255, 255, 1); font-weight: 590; text-align: center">
{{ showDetail(reward.type, reward.quantity) }}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- 我的排名 -->
<div
style="
position: sticky;
bottom: 0;
left: 0;
width: 100vw;
background-color: #053126;
display: flex;
justify-content: center;
margin-top: 10px;
z-index: 999;
"
>
<img :src="images.myRankingBg" alt="" style="width: calc(100% - 1px); display: block" />
<div
style="
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
display: flex;
align-items: center;
justify-content: center;
padding: 2% 5% 0;
"
>
<div
style="width: 70%; display: flex; justify-content: space-around; align-items: center"
>
<!-- 排名 -->
<div style="color: #edb247; font-weight: 700">{{ myRanking.rank || 999 }}</div>
<!-- 头像 -->
<img
:src="myRanking.userAvatar || ''"
alt=""
style="
display: block;
width: 25%;
aspect-ratio: 1/1;
border-radius: 50%;
object-fit: cover;
margin: 0 12px;
"
@error="defaultAvatarUrl"
/>
<!-- 名称 -->
<div style="display: flex; flex-direction: column; width: calc(75% - 24px - 20%)">
<div
style="
color: #fff;
font-weight: 860;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
"
class="UserNickname"
>
{{ myRanking.userNickname }}
</div>
</div>
</div>
<!-- 贡献值 -->
<div style="width: 30%; display: flex; justify-content: center; align-items: center">
<img src="/src/assets/icon/coin.png" alt="" style="width: 20%; height: 20%" />
<div style="color: #edb247; font-weight: 700">
{{ myRanking.quantity || 0 }}
</div>
</div>
</div>
</div>
<!-- 弹窗遮罩层 -->
<maskLayer :maskLayerShow="maskLayerShow" @click="closedPopup">
<!-- help弹窗 -->
<div v-if="helpInfoShow" style="margin: 20% 0" @click.stop>
<img :src="images.helpInfo" alt="" style="width: 100%" />
</div>
<!-- history弹窗 -->
<div v-if="historyShow" style="position: relative; margin: 20% 0" @click.stop>
<!-- 背景图 -->
<img :src="images.historyBg" alt="" style="width: 100%; display: block" />
<!-- 内容 -->
<div
style="
position: absolute;
inset: 0;
padding: 17% 5% 10%;
display: flex;
flex-direction: column;
justify-content: space-around;
align-items: center;
"
>
<div style="position: relative; width: 75%">
<!-- 头像框 -->
<img
:src="images.topOneHistory"
alt=""
style="width: 100%; display: block; position: relative; z-index: 1"
/>
<div style="position: absolute; inset: 0">
<div
style="height: 100%; display: flex; justify-content: center; align-items: center"
>
<img
:src="showTopOne.userAvatar || ''"
alt=""
style="
width: 50%;
display: block;
border-radius: 50%;
aspect-ratio: 1/1;
object-fit: cover;
"
@error="defaultAvatarUrl"
/>
</div>
<!-- 名字 -->
<div
style="
width: 100%;
position: absolute;
left: 0;
right: 0;
bottom: 10vw;
z-index: 2;
display: flex;
justify-content: center;
"
>
<div
style="
width: 25%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
text-align: center;
"
class="history-name"
>
{{ showTopOne.userNickname }}
</div>
</div>
</div>
</div>
<!-- 历史时间 -->
<div
style="width: 50%; display: flex; justify-content: space-between; align-items: center"
>
<img :src="images.backGift" alt="" width="13%" @click="changeHistoryIndex(1)" />
<div
style="
flex: 1;
text-align: center;
font-weight: 590;
background: linear-gradient(180deg, #f30000 0%, #ffc6c6 100%);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
"
class="history-time"
>
{{ showTopOne.group }}
</div>
<img :src="images.nextGift" alt="" width="13%" @click="changeHistoryIndex(-1)" />
</div>
</div>
</div>
</maskLayer>
</div>
</div>
</template>
<script setup>
import { isInApp, viewUserInfo } from '@/utils/appBridge.js'
import { computed, onMounted, onUnmounted, ref } from 'vue'
import itemCenter from '@/components/WeeklyStar/itemCenter.vue'
import TopUser from '../heroesDay/topUser.vue'
import maskLayer from '@/components/MaskLayer.vue'
import { useDebounce, useThrottle } from '@/utils/useDebounce'
import { getMemberProfile } from '@/api/wallet'
import {
getWeekStarRanking,
getWeekRewards,
getWeekGifts,
getMyWeekStarRanking,
getHistoryTopOne,
} from '@/api/weeklyStar.js'
import { connectToApp } from '@/utils/appConnector.js'
// vite
const imageModules = import.meta.glob('@/assets/images/Activities/heroesDay/*.{png,jpg,svg}', {
eager: true,
})
//
const images = Object.fromEntries(
Object.entries(imageModules).map(([path, module]) => {
const fileName = path.split('/').pop().split('.')[0]
return [fileName, module.default]
})
)
const userInfo = ref({})
const isInAppEnvironment = ref(false) // APP
const helpInfoShow = ref(false) //
const historyShow = ref(false) //
//
const maskLayerShow = computed(() => {
return helpInfoShow.value || historyShow.value
})
//
const Days = ref(0)
const Hours = ref(0)
const Minutes = ref(0)
const Second = ref(0)
let timer = null
//
const rankingShow = ref(true) //
const current = ref(1) //
const RankingLoadmore = ref(null) //
const showRankingLoading = ref(true) //
const Ranking = ref([]) //
const RankingLoadParams = computed(() => {
return {
type: 'THIS_WEEK',
current: current.value,
size: 10,
}
})
const myRanking = ref([]) //
const rewardsList = ref([]) //
const gifts = ref([]) //
const historyRankingTop1 = ref([]) //
const historyIndex = ref(0)
const showTopOne = computed(() => {
return historyRankingTop1.value[historyIndex.value] || {}
})
const topImg = ref([images.top1RewardBg, images.top2RewardBg, images.top3RewardBg]) // top
const changeHistoryIndex = (num) => {
let targetIndex = historyIndex.value + num
let length = historyRankingTop1.value.length
if (targetIndex >= 0 && targetIndex < length) {
historyIndex.value = targetIndex
}
}
// 3
const RankingHasTop3 = computed(() => {
let RankingShow = [...Ranking.value]
if (Ranking.value.length < 3) {
let addNullUser = Array.from({ length: 3 - Ranking.value.length }, () => ({
userAvatar: '',
userNickname: '',
quantity: '',
}))
RankingShow.push(...addNullUser)
}
return RankingShow
})
//
const showRanking = computed(() => {
return Ranking.value.filter((_, index) => index >= 3)
})
//
const handleImageError = (e, type) => {
console.log('图片资源出错')
e.target.onerror = null //
if ((type = 'GOLD')) {
e.target.src = new URL('/src/assets/icon/coin.png', import.meta.url).href
}
}
//
const defaultAvatarUrl = (e) => {
console.log('头像资源出错')
e.target.onerror = null //
e.target.src = new URL('/src/assets/images/WeeklyStar/defaultAvatar.png', import.meta.url).href
}
//
const closedPopup = () => {
helpInfoShow.value = false
historyShow.value = false
}
// 西
const getNextMondayInSaudi = () => {
const now = new Date()
const utcDay = now.getUTCDay() //UTC0()-6()
//
const daysToAdd = utcDay === 1 ? 7 : (1 + 7 - utcDay) % 7
const nextMondayUTC = new Date(now) //UTC
nextMondayUTC.setUTCDate(now.getUTCDate() + daysToAdd) //
nextMondayUTC.setUTCHours(23, 0, 0, 0) // 西63
return nextMondayUTC.getTime() //00:00:00.000
}
const targetTime = ref(getNextMondayInSaudi()) // ()
//
const formatTime = (value) => {
return value < 10 ? `0${value}` : value
}
//
const getCountdown = () => {
const now = Date.now()
let diff = targetTime.value - now
if (diff <= 0) {
//
getUserInfo()
resetPage()
targetTime.value += 7 * 86400000 // +7 ()
diff = targetTime.value - now
}
const totalSeconds = Math.floor(diff / 1000)
Days.value = Math.floor(totalSeconds / (24 * 3600))
Hours.value = formatTime(Math.floor((totalSeconds % (24 * 3600)) / 3600))
Minutes.value = formatTime(Math.floor((totalSeconds % 3600) / 60))
Second.value = formatTime(Math.floor(totalSeconds % 60))
}
//
const resetPage = () => {
current.value = 1 //
showRankingLoading.value = true //
Ranking.value = [] //
historyIndex.value = 0 //
initData() //
}
//
const showDetail = (type, quantity) => {
let showamount = ['GOLD', 'DIAMOND', 'GIFT', 'FRAGMENTS']
if (showamount.includes(type)) {
return quantity
} else {
return `${quantity}Days`
}
}
//
const getUserInfo = async () => {
if (Object.keys(userInfo.value).length === 0) {
const resUserInfo = await getMemberProfile()
if (resUserInfo.status && resUserInfo.body) {
userInfo.value = resUserInfo.body
}
}
getMyThisWeekRanking() //
}
//
const getThisWeekRanking = async () => {
const resWeekStarRanking = await getWeekStarRanking(RankingLoadParams.value)
console.log('resWeekStarRanking:', resWeekStarRanking)
if (
resWeekStarRanking.status &&
resWeekStarRanking.body &&
resWeekStarRanking.body.rankUsers?.records
) {
let rankUsers = resWeekStarRanking.body.rankUsers
Ranking.value.push(...rankUsers.records)
if (current.value * rankUsers.size >= rankUsers.total) {
showRankingLoading.value = false
}
}
}
//
const getHistoryRankingTop1 = async () => {
const resHistoryTopOne = await getHistoryTopOne()
console.log('resHistoryTopOne:', resHistoryTopOne)
if (resHistoryTopOne.status && resHistoryTopOne.body) {
historyRankingTop1.value = resHistoryTopOne.body
}
}
//
const getMyThisWeekRanking = async () => {
let data = {
userId: userInfo.value.id,
type: 'THIS_WEEK',
}
const resMyWeekStarRanking = await getMyWeekStarRanking(data)
console.log('resMyWeekStarRanking:', resMyWeekStarRanking)
if (resMyWeekStarRanking.status && resMyWeekStarRanking.body) {
myRanking.value = resMyWeekStarRanking.body
}
}
//
const getThisWeekGifts = async () => {
const resThisWeekGifts = await getWeekGifts('THIS_WEEK')
console.log('resThisWeekGifts:', resThisWeekGifts)
if (resThisWeekGifts.status && resThisWeekGifts.body) {
gifts.value = resThisWeekGifts.body
}
}
//
const getThisWeekRewards = async () => {
const resThisWeekRewards = await getWeekRewards()
console.log('resThisWeekRewards:', resThisWeekRewards)
if (resThisWeekRewards.status && resThisWeekRewards.body) {
rewardsList.value = resThisWeekRewards.body
}
}
//
const initData = () => {
getUserInfo()
getThisWeekRanking() //
getHistoryRankingTop1() // top1
getThisWeekRewards() //
getThisWeekGifts() //
}
const debouceGetThisWeekRanking = useThrottle(() => {
getThisWeekRanking()
}, 1000)
// IntersectionObserver
const observer = new IntersectionObserver((entries) => {
entries.forEach((entry) => {
if (entry.intersectionRatio > 0 && Ranking.value.length != 0) {
console.log('触发RankingLoadmore加载')
current.value++
debouceGetThisWeekRanking()
}
})
})
// 使APP
const connectToAppHandler = async () => {
await connectToApp(() => {
//
initData() //
})
}
//
onMounted(() => {
connectToAppHandler()
isInAppEnvironment.value = isInApp()
getCountdown()
timer = setInterval(getCountdown, 1000) //
//
if (RankingLoadmore.value) {
observer.observe(RankingLoadmore.value)
}
})
onUnmounted(() => {
clearInterval(timer) //
})
</script>
<style lang="scss" scoped>
* {
color: #fff;
font-family: 'SF Pro';
}
.fullPage {
background: linear-gradient(90deg, #5c1b1f 0%, #3c0205 100%);
position: relative;
}
.bg {
width: 100vw;
min-height: 100vh;
background-image: url(../../../assets/images/Activities/heroesDay/bg.png);
background-size: 100% auto;
background-repeat: no-repeat;
}
.timeText {
color: #fff;
font-weight: 860;
}
.timeGap {
display: flex;
justify-content: center;
align-items: center;
}
.btTitle {
color: #fff;
font-weight: 700;
}
.topTitle {
font-size: 1.5em;
}
.history-name {
font-size: 0.8em;
}
.history-time {
font-size: 0.8em;
}
.UserNickname {
font-size: 0.8em;
}
@media screen and (max-width: 360px) {
* {
font-size: 10px;
}
}
@media screen and (min-width: 360px) {
* {
font-size: 16px;
}
}
@media screen and (min-width: 768px) {
* {
font-size: 24px;
}
}
@media screen and (min-width: 1024px) {
* {
font-size: 32px;
}
}
</style>