hulai-website/components/products/VersionPhilosophy.vue

84 行
1.9 KiB
Vue

<template>
<section class="section">
<div class="container">
<CommonSectionTitle :title="st('products.philosophy', '9次迭代背后的产品哲学')" :subtitle="st('products.philosophy', '不是做加法,而是做取舍', 'subtitle')" />
<div class="philosophy-wrapper">
<div class="philosophy-list">
<div v-for="item in philosophy" :key="item.label" class="philosophy-item">
<h4 class="philosophy-label">{{ item.label }}</h4>
<p class="philosophy-text">{{ item.text }}</p>
</div>
</div>
<div class="quote-block">
<p class="quote-text">"{{ quote.text }}"</p>
<span class="quote-author"> {{ quote.author }}</span>
</div>
</div>
</div>
</section>
</template>
<script setup>
defineProps({
philosophy: { type: Array, required: true },
quote: { type: Object, required: true }
})
const st = await useSectionTitles()
</script>
<style lang="less" scoped>
.philosophy-wrapper {
max-width: 800px;
margin: 0 auto;
}
.philosophy-list {
margin-bottom: @space-2xl;
}
.philosophy-item {
padding: @space-lg 0;
border-bottom: 1px solid @color-border;
&:last-child {
border-bottom: none;
}
}
.philosophy-label {
font-size: @font-size-base;
font-weight: @font-weight-bold;
color: @color-text-primary;
margin: 0 0 @space-xs;
}
.philosophy-text {
font-size: @font-size-sm;
color: @color-text-secondary;
line-height: @line-height-base;
margin: 0;
}
.quote-block {
text-align: center;
padding: @space-2xl;
background: @color-primary;
border-radius: @border-radius-lg;
color: #fff;
}
.quote-text {
font-size: @font-size-md;
line-height: @line-height-loose;
margin: 0 0 @space-lg;
color: #fff;
font-weight: @font-weight-medium;
}
.quote-author {
font-size: @font-size-sm;
color: rgba(255, 255, 255, 0.85);
}
</style>