完成首页UI
This commit is contained in:
34
src/components/AppBackground.vue
Normal file
34
src/components/AppBackground.vue
Normal file
@@ -0,0 +1,34 @@
|
||||
<template>
|
||||
<view class="background">
|
||||
<image class="bg-image" src="../static/app-bg.png" mode="aspectFill" />
|
||||
<view class="bg-overlay"></view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.background {
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
left: 0;
|
||||
top: 0;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
.bg-image {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
left: 0;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.bg-overlay {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
left: 0;
|
||||
top: 0;
|
||||
background: linear-gradient(to bottom, rgba(26, 26, 26, 0.8), rgba(0, 0, 0, 0.8));
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user