feat: 新增特藏书架与词云热词展示
- 首页快捷入口改为 3D 悬浮书架,拉取特藏推荐并支持点击进入详情 - 热词页改用 wordcloud 渲染词云,支持悬停放大与点击检索 - 导航栏改为半透明绿叠加实景背景,统一首页与内页观感 - 版本资源表新增 is_special 字段及示例数据
This commit is contained in:
@@ -30,8 +30,8 @@ function logout() {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="site">
|
||||
<header class="site-header" :class="{ 'on-hero': route.path === '/dashboard' }">
|
||||
<div class="site" :class="{ 'on-hero': route.path === '/dashboard' }">
|
||||
<header class="site-header">
|
||||
<div class="logo" @click="router.push('/')">
|
||||
<img class="logo-img" :src="logoUrl" alt="logo" />
|
||||
<div class="logo-texts">
|
||||
@@ -66,8 +66,31 @@ function logout() {
|
||||
|
||||
<style scoped lang="scss">
|
||||
.site {
|
||||
position: relative;
|
||||
z-index: 0;
|
||||
min-height: 100vh;
|
||||
background: var(--page-bg);
|
||||
|
||||
/* 导航背后垫一层与首页同源的实景图:
|
||||
内页时它充当导航的背景,首页时则被上浮的轮播图盖住,
|
||||
两种场景下导航都是「半透明绿压在实景图上」,观感完全一致 */
|
||||
&::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 72px;
|
||||
background:
|
||||
linear-gradient(rgba(10, 28, 20, 0.5), rgba(10, 28, 20, 0.62)),
|
||||
url('../assets/banner/b2.jpg') center 18% / cover no-repeat;
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
/* 首页:轮播图上浮到导航之下,导航直接压在实景图上 */
|
||||
&.on-hero .site-main {
|
||||
margin-top: -72px;
|
||||
}
|
||||
}
|
||||
|
||||
.site-header {
|
||||
@@ -76,18 +99,15 @@ function logout() {
|
||||
align-items: center;
|
||||
gap: 36px;
|
||||
padding: 0 36px;
|
||||
background: rgba(36, 72, 55, 0.95);
|
||||
backdrop-filter: blur(16px);
|
||||
-webkit-backdrop-filter: blur(16px);
|
||||
/* 与首页检索面板完全一致的半透明绿 + 同款毛玻璃 */
|
||||
background: rgba(16, 38, 28, 0.58);
|
||||
backdrop-filter: blur(22px) saturate(140%);
|
||||
-webkit-backdrop-filter: blur(22px) saturate(140%);
|
||||
color: #fff;
|
||||
position: relative;
|
||||
z-index: 20;
|
||||
transition: background 0.45s ease;
|
||||
|
||||
/* 首页:导航浮在实景背景上 */
|
||||
&.on-hero {
|
||||
background: rgba(18, 40, 30, 0.34);
|
||||
}
|
||||
|
||||
/* 底部金线:呼应版本馆的描金装饰 */
|
||||
&::after {
|
||||
content: '';
|
||||
|
||||
Reference in New Issue
Block a user