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