style(home): css
This commit is contained in:
parent
74b2a6ee94
commit
2f92304257
|
|
@ -12,13 +12,13 @@ export default defineAppConfig({
|
|||
list: [
|
||||
{
|
||||
pagePath: 'pages/home/index',
|
||||
text: '首页',
|
||||
text: '游乐场',
|
||||
iconPath: 'assets/icons/playground.png',
|
||||
selectedIconPath: 'assets/icons/playground-selected.png',
|
||||
},
|
||||
{
|
||||
pagePath: 'pages/history/index',
|
||||
text: '历史记录',
|
||||
text: '我的',
|
||||
iconPath: 'assets/icons/user.png',
|
||||
selectedIconPath: 'assets/icons/user-selected.png',
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
.template-card {
|
||||
background: #fff;
|
||||
border-radius: 32px;
|
||||
border-radius: 16px;
|
||||
padding: 0;
|
||||
box-shadow: 0 4px 24px rgb(0 0 0 / 8%);
|
||||
cursor: pointer;
|
||||
|
|
@ -122,28 +122,36 @@
|
|||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
/* 水印 */
|
||||
.watermark {
|
||||
position: absolute;
|
||||
top: 12px;
|
||||
left: 14px;
|
||||
z-index: 4;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.name-badge {
|
||||
background: rgb(0 0 0 / 70%);
|
||||
backdrop-filter: blur(20px);
|
||||
background: #0000004D;
|
||||
backdrop-filter: blur(5px);
|
||||
color: #fff;
|
||||
font-size: 24px;
|
||||
font-weight: 600;
|
||||
padding: 8px 20px;
|
||||
border-radius: 20px;
|
||||
text-shadow: 0 2px 4px rgb(0 0 0 / 30%);
|
||||
text-align: center;
|
||||
max-width: 90%;
|
||||
font-weight: 500;
|
||||
border-radius: 100px;
|
||||
border: 1px solid #FFFFFF4D;
|
||||
height: 30px;
|
||||
width: fit-content;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
padding: 12px 16px;
|
||||
}
|
||||
|
||||
/* 单视频容器样式 */
|
||||
.single-video-container {
|
||||
position: relative;
|
||||
border-radius: 32px;
|
||||
border-radius: 16px;
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
min-height: 480px;
|
||||
|
|
@ -156,7 +164,7 @@
|
|||
min-height: 480px;
|
||||
object-fit: cover;
|
||||
display: block;
|
||||
border-radius: 32px;
|
||||
border-radius: 16px;
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
transform: translateZ(0);
|
||||
|
|
@ -172,7 +180,7 @@
|
|||
height: 100%;
|
||||
z-index: 1;
|
||||
object-fit: cover;
|
||||
border-radius: 32px;
|
||||
border-radius: 16px;
|
||||
}
|
||||
|
||||
/* 视频样式 */
|
||||
|
|
|
|||
|
|
@ -101,7 +101,12 @@ export default function TemplateCard({ template, onClick }: TemplateCardProps) {
|
|||
/>
|
||||
{/* 模板名称悬浮 - 视频底部 */}
|
||||
<View className="name-overlay">
|
||||
<Text className="name-badge">{template.name}</Text>
|
||||
<Text className="name-badge">
|
||||
✨
|
||||
{template.name}
|
||||
</Text>
|
||||
</View>
|
||||
<View className='watermark'>
|
||||
<Text className="watermark-text">内容由AI生成</Text>
|
||||
</View>
|
||||
</View>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
export default definePageConfig({
|
||||
navigationBarTitleText: '首页',
|
||||
navigationBarTitleText: '游乐场',
|
||||
navigationBarBackgroundColor: '#ffffff',
|
||||
navigationBarTextStyle: 'black',
|
||||
backgroundColorTop: '#ffffff',
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
.home {
|
||||
background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
|
||||
/* background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%); */
|
||||
background: #F5F6F8;
|
||||
height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
|
@ -39,9 +40,9 @@
|
|||
.template-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 20px;
|
||||
gap: 14px;
|
||||
max-width: 100%;
|
||||
margin: 0 auto;
|
||||
padding: 8px 12px;
|
||||
padding: 8px 28px;
|
||||
min-height: 100%;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue