Files
shoot-miniprograms/src/components/Guide.vue

54 lines
885 B
Vue
Raw Normal View History

2025-05-01 22:50:17 +08:00
<script setup>
defineProps({
2025-05-10 16:57:36 +08:00
tall: {
type: Boolean,
default: false,
2025-05-01 22:50:17 +08:00
},
});
</script>
<template>
<view class="container">
<image src="../static/shooter.png" mode="widthFix" />
<view>
2025-05-10 16:57:36 +08:00
<image
:src="
tall ? '../static/long-bubble-tall.png' : '../static/long-bubble.png'
"
2025-05-10 22:16:59 +08:00
:style="{ top: tall ? '-9%' : '-14%' }"
2025-05-10 16:57:36 +08:00
mode="widthFix"
/>
2025-05-08 22:05:53 +08:00
<slot />
2025-05-01 22:50:17 +08:00
</view>
</view>
</template>
<style scoped>
.container {
display: flex;
align-items: center;
padding: 0 15px;
2025-05-08 22:05:53 +08:00
width: 100vw;
2025-05-01 22:50:17 +08:00
}
.container > image {
2025-05-08 22:05:53 +08:00
width: 20%;
2025-05-01 22:50:17 +08:00
}
.container > view {
position: relative;
2025-05-08 22:05:53 +08:00
width: 80%;
2025-05-10 22:16:59 +08:00
padding-right: 25px;
2025-05-08 22:05:53 +08:00
min-height: 55px;
2025-05-10 22:16:59 +08:00
display: flex;
flex-direction: column;
2025-05-01 22:50:17 +08:00
}
.container > view > image {
position: absolute;
left: -7%;
2025-05-08 22:05:53 +08:00
width: 100%;
2025-05-01 22:50:17 +08:00
}
2025-05-08 22:05:53 +08:00
.container > view {
2025-05-01 22:50:17 +08:00
color: #fff;
2025-05-08 22:05:53 +08:00
font-size: 14px;
2025-05-01 22:50:17 +08:00
}
</style>