feat: 生成分享图
This commit is contained in:
111
src/game_pages/detail/index.module.scss
Normal file
111
src/game_pages/detail/index.module.scss
Normal file
@@ -0,0 +1,111 @@
|
||||
.detail-page {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
// padding-bottom: env(safe-area-inset-bottom);
|
||||
|
||||
.custom-navbar {
|
||||
height: 56px; /* 通常与原生导航栏高度一致 */
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
// background-color: #fff;
|
||||
color: #000;
|
||||
padding-top: 44px; /* 适配状态栏 */
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 100;
|
||||
overflow: hidden;
|
||||
background-color: rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.detail-navigator {
|
||||
height: 30px;
|
||||
width: 80px;
|
||||
border-radius: 15px;
|
||||
position: absolute;
|
||||
left: 12px;
|
||||
border: 1px solid #888;
|
||||
box-sizing: border-box;
|
||||
color: #fff;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
background: rgba(0, 0, 0, 0.1);
|
||||
|
||||
.detail-navigator-back {
|
||||
border-right: 1px solid #444;
|
||||
}
|
||||
|
||||
.detail-navigator-back,
|
||||
.detail-navigator-icon {
|
||||
height: 20px;
|
||||
width: 50%;
|
||||
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
|
||||
& > .detail-navigator-back-icon {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
& > .detail-navigator-logo-icon {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.detail-page-bg {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: fixed;
|
||||
left: 0;
|
||||
top: 0;
|
||||
background-size: cover;
|
||||
// filter: blur(40px);
|
||||
// transform: scale(1.5);
|
||||
z-index: -2;
|
||||
// width: calc(100% + 20px);
|
||||
// height: calc(100% + 20px);
|
||||
// margin: -10px;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
|
||||
&::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: -1;
|
||||
background: linear-gradient(
|
||||
180deg,
|
||||
rgba(0, 0, 0, 0.8) 0%,
|
||||
rgba(0, 0, 0, 0.4) 100%
|
||||
);
|
||||
backdrop-filter: blur(100px);
|
||||
}
|
||||
}
|
||||
|
||||
.detail-page-content {
|
||||
&-title {
|
||||
padding: 20px 20px 0;
|
||||
box-sizing: border-box;
|
||||
|
||||
&-text {
|
||||
overflow: hidden;
|
||||
color: #fff;
|
||||
font-feature-settings: "liga" off, "clig" off;
|
||||
text-overflow: ellipsis;
|
||||
font-family: "PingFang SC";
|
||||
font-size: 22px;
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
line-height: 32px; /* 145.455% */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user