feat(admin): 优化用户界面资源并更新题库数据
- 添加首页背景图片资源 (home-bg.webp) - 更新用户头像资源文件 (ydzx.png) - 优化竞赛布局组件交互体验 - 改进题目渲染器显示效果 - 更新题库数据:新增诗词常识题库 - 移除联想对对碰题库 - 更新汉字听写、诗词理解选择题、逆向接诗句等题库内容 - 调整VSCode配置并禁用MCP代理功能
This commit is contained in:
BIN
apps/admin/src/assets/imgs/user/home-bg.webp
Normal file
BIN
apps/admin/src/assets/imgs/user/home-bg.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 797 KiB |
|
Before Width: | Height: | Size: 468 KiB After Width: | Height: | Size: 468 KiB |
@ -1,7 +1,8 @@
|
||||
<!-- eslint-disable unused-imports/no-unused-vars -->
|
||||
<script lang="ts" setup>
|
||||
import VScaleScreen from 'v-scale-screen'
|
||||
import { computed, onMounted, ref, watch } from 'vue'
|
||||
import _defaultBg from '@/assets/imgs/user/home-bg.jpg'
|
||||
import _defaultBg from '@/assets/imgs/user/home-bg.webp'
|
||||
import titleBg2 from '@/assets/imgs/user/title-bg2.webp'
|
||||
import _defaultTitleBg from '@/assets/imgs/user/title-bg.webp'
|
||||
import { useRouterPush } from '@/hooks/common/router'
|
||||
@ -210,13 +211,14 @@ watch(titleBgUrl, (newUrl) => {
|
||||
<!-- Background Layer (Outside Scale to cover full screen) -->
|
||||
<div class="fixed-bg" :style="innerBgUrl ? { backgroundImage: `url(${innerBgUrl})` } : {}" />
|
||||
|
||||
<VScaleScreen width="1920" height="1080">
|
||||
<VScaleScreen width="2048" height="1080">
|
||||
<div class="competition-layout">
|
||||
<!-- Header -->
|
||||
<header class="page-header text-[30px] text-[#333333] font-bold">
|
||||
<span class="org-name" @click="handleBackHome">教育学会</span>
|
||||
<span class="org-name">树人研究院</span>
|
||||
</header>
|
||||
<!-- <header class="page-header flex items-center text-[30px] text-[#333333] font-bold">
|
||||
<span class="org-name" @click="handleBackHome">重庆市教育学会</span>
|
||||
<img src="@/assets/imgs/ydzx.png" width="100" height="50" alt="logo" class="logo">
|
||||
<span class="org-name">树人教育研究院</span>
|
||||
</header> -->
|
||||
|
||||
<div class="glass-overlay">
|
||||
<!-- title -->
|
||||
@ -384,9 +386,11 @@ watch(titleBgUrl, (newUrl) => {
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
font-family: 'Noto Serif SC', serif;
|
||||
z-index: 1; // 确保内容在背景之上
|
||||
z-index: 2; // 确保内容在背景之上
|
||||
// margin: 10px auto;
|
||||
margin-top: 28px;
|
||||
|
||||
// Default background decoration (Bottom Wave)
|
||||
// 底部波浪背景
|
||||
&::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
@ -405,7 +409,7 @@ watch(titleBgUrl, (newUrl) => {
|
||||
.glass-overlay {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: rgba(255, 255, 255, 0.5);
|
||||
background: rgba(255, 255, 255, 0.6);
|
||||
backdrop-filter: blur(2px);
|
||||
border-radius: 30px;
|
||||
box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
|
||||
|
||||
@ -177,10 +177,7 @@ watch(
|
||||
<!-- 模板: 字词飞花令 -->
|
||||
<div v-else-if="template === QuestionCategoryEnum.CharacterWordFlowerDrinkingGame" class="w-full flex flex-col items-center">
|
||||
<div class="options-container text-2xl">
|
||||
{{ title }}
|
||||
</div>
|
||||
<div class="mb-1 text-3xl text-gray-800 font-bold leading-relaxed">
|
||||
<div class="rich-content" v-html="content" />
|
||||
请回答带有“{{ content }}”的诗词。
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user