完成好友约战页面
This commit is contained in:
42
src/components/Guide.vue
Normal file
42
src/components/Guide.vue
Normal file
@@ -0,0 +1,42 @@
|
||||
<script setup>
|
||||
defineProps({
|
||||
title: {
|
||||
type: String,
|
||||
default: "",
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<view class="container">
|
||||
<image src="../static/shooter.png" mode="widthFix" />
|
||||
<view>
|
||||
<image src="../static/long-bubble.png" mode="widthFix" />
|
||||
<text>{{ title }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 15px;
|
||||
}
|
||||
.container > image {
|
||||
width: 40vw;
|
||||
}
|
||||
.container > view {
|
||||
position: relative;
|
||||
}
|
||||
.container > view > image {
|
||||
position: absolute;
|
||||
top: -10%;
|
||||
left: -7%;
|
||||
width: 75vw;
|
||||
}
|
||||
.container > view > text {
|
||||
color: #fff;
|
||||
font-size: 14px;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user