文件操作 - SectionSteps.vue
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/components/SectionSteps.vue
编辑文件内容
<script setup lang="ts"> const { tm, rt } = useI18n(); const list = tm('section.steps.list') as { title: string; desc: string; }[]; </script> <template> <section class="steps section"> <div class="container"> <h2 class="steps-title">{{ $t('section.steps.title') }}</h2> <div class="steps-list"> <div v-for="(item, index) in list" :key="index" class="steps-item" > <div class="steps-item-head"> <div class="steps-item-number h3"> {{ index + 1 < 10 ? `0${index + 1}` : index + 1 }} </div> <div class="steps-item-icon fit-img"> <img :src="`/img/steps/${index + 1}.svg`" alt="" /> </div> </div> <div class="steps-item-title h3">{{ rt(item.title) }}</div> <div class="steps-item-desc">{{ rt(item.desc) }}</div> </div> </div> </div> </section> </template> <style lang="less" scoped> .steps-title { margin-bottom: 40px; } .steps-list { display: grid; gap: 16px; @media @md_ { grid-template-columns: 1fr 1fr 1fr; gap: 20px; } } .steps-item { min-width: 0; display: flex; flex-direction: column; gap: 16px; padding: 32px; min-height: 312px; border-radius: 12px; border: solid 1px @border; @media @md { padding: 24px; min-height: 252px; } } .steps-item-head { margin-bottom: auto; display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; } .steps-item-number { letter-spacing: -0.03em; color: @link; } .steps-item-icon { width: 48px; aspect-ratio: 1; flex: none; @media @md { width: 40px; } } .steps-item-desc { color: @title; font-weight: 500; letter-spacing: -0.04em; @media @md { font-size: 15px; } } </style>
修改文件时间
将文件时间修改为当前时间的前一年
删除文件