You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
86 lines
1.5 KiB
86 lines
1.5 KiB
<template>
|
|
<div class="headline_container">
|
|
<h2 class="title_h2">
|
|
{{ flip ? title : '' }}
|
|
<span :class="theme ? 'theme theme_color' : 'theme'">{{
|
|
themeTitle
|
|
}}</span>
|
|
{{ !flip ? title : '' }}
|
|
</h2>
|
|
<div class="scale">
|
|
<p class="line1" v-if="line1">{{ line1 }}</p>
|
|
<p class="line2" v-if="line2">{{ line2 }}</p>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup>
|
|
const props = defineProps({
|
|
themeTitle: {
|
|
type: String,
|
|
default: '',
|
|
},
|
|
flip: {
|
|
type: Boolean,
|
|
default: false,
|
|
},
|
|
title: {
|
|
type: String,
|
|
},
|
|
line1: {
|
|
type: String,
|
|
},
|
|
line2: {
|
|
type: String,
|
|
},
|
|
theme: {
|
|
type: Boolean,
|
|
default: false,
|
|
},
|
|
})
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.headline_container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 36px 0;
|
|
box-sizing: border-box;
|
|
.title_h2 {
|
|
font-size: 11px;
|
|
font-family: Source Han Sans CN;
|
|
font-weight: 500;
|
|
color: #191919;
|
|
margin-bottom: 10px;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
.theme {
|
|
color: $home-color;
|
|
}
|
|
.theme_color {
|
|
color: $theme-color;
|
|
}
|
|
.scale {
|
|
font-size: 14px;
|
|
transform: scale(0.5);
|
|
width: 200%;
|
|
.line1 {
|
|
font-family: Source Han Sans CN;
|
|
font-weight: 300;
|
|
color: #595959;
|
|
line-height: 16px;
|
|
text-align: center;
|
|
}
|
|
.line2 {
|
|
font-family: Alibaba PuHuiTi;
|
|
font-weight: 300;
|
|
color: #595959;
|
|
text-align: center;
|
|
line-height: 9px;
|
|
margin-top: 4px;
|
|
}
|
|
}
|
|
}
|
|
</style>
|