添加UniApp
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
<template>
|
||||
<view class="container">
|
||||
<image class="bg" src="/static/splash/background.png" mode="aspectFill"></image>
|
||||
<view class="overlay">
|
||||
<image class="logo" src="/static/logo.png" mode="widthFix"></image>
|
||||
<text class="app-name">Emotion Museum</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
onLoad() {},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.container {
|
||||
position: relative;
|
||||
width: 750rpx;
|
||||
height: 100vh;
|
||||
}
|
||||
.bg {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 750rpx;
|
||||
height: 100vh;
|
||||
}
|
||||
.overlay {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 750rpx;
|
||||
height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.logo {
|
||||
width: 160rpx;
|
||||
margin-bottom: 24rpx;
|
||||
}
|
||||
.app-name {
|
||||
font-size: 36rpx;
|
||||
color: #111;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user