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

47 lines
717 B
Vue
Raw Normal View History

2025-05-01 22:50:17 +08:00
<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" />
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%;
padding-right: 22px;
min-height: 55px;
2025-05-01 22:50:17 +08:00
}
.container > view > image {
position: absolute;
2025-05-08 22:05:53 +08:00
top: -14%;
2025-05-01 22:50:17 +08:00
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>