|
@@ -0,0 +1,86 @@
|
|
|
+<template>
|
|
|
+ <div style="color: #4c4c4e;">
|
|
|
+ <div v-if="data.isBgFull" class="bg-full" :style="{'background-image': `url('${data.bgUrl}')`}">
|
|
|
+ <div class="width content-box">
|
|
|
+ <h1>{{ data.title }}</h1>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div v-else class="half-bg">
|
|
|
+ <div class="half-bg-item half-bg-title">
|
|
|
+ <h1>{{ data.title }}</h1>
|
|
|
+ </div>
|
|
|
+ <div class="half-bg-item half-bg-img" :style="{'background-image': `url('${data.bgUrl}')`}"></div>
|
|
|
+ </div>
|
|
|
+ <div class="width">
|
|
|
+ <p>{{ data.desc }}</p>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script setup>
|
|
|
+defineOptions({ name: 'headhunting-drill-article'})
|
|
|
+import { ref } from 'vue'
|
|
|
+import { articleData } from '@/utils/headhuntingData'
|
|
|
+
|
|
|
+const props = defineProps({
|
|
|
+ id: {
|
|
|
+ type: String,
|
|
|
+ default: ''
|
|
|
+ }
|
|
|
+})
|
|
|
+
|
|
|
+const data = ref(articleData.find(e => e.id === props.id))
|
|
|
+
|
|
|
+</script>
|
|
|
+
|
|
|
+<style scoped lang="scss">
|
|
|
+.bg-full {
|
|
|
+ position: relative;
|
|
|
+ height: 363px;
|
|
|
+ background-position: center center;
|
|
|
+ background-repeat: no-repeat;
|
|
|
+ background-size: cover;
|
|
|
+ .content-box {
|
|
|
+ position: absolute;
|
|
|
+ bottom: 0;
|
|
|
+ left: 50%;
|
|
|
+ transform: translateX(-50%);
|
|
|
+ height: 241px;
|
|
|
+ padding: 64px 200px 0 95px;
|
|
|
+ background-color: #fff;
|
|
|
+ color: #000;
|
|
|
+ }
|
|
|
+}
|
|
|
+.width {
|
|
|
+ width: 1190px;
|
|
|
+ margin: 0 auto;
|
|
|
+ min-width: 1190px;
|
|
|
+ max-width: 1190px;
|
|
|
+ margin-top: 96px;
|
|
|
+}
|
|
|
+h1 {
|
|
|
+ font-family: FFScalaWeb, Georgia, Utopia, Charter, sans-serif;
|
|
|
+ font-style: normal;
|
|
|
+ font-weight: 400;
|
|
|
+ line-height: 1.134;
|
|
|
+ font-size: 52px;
|
|
|
+ margin-left: -3px;
|
|
|
+}
|
|
|
+.half-bg {
|
|
|
+ display: flex;
|
|
|
+ height: 520px;
|
|
|
+ .half-bg-item {
|
|
|
+ width: 50%;
|
|
|
+ }
|
|
|
+ .half-bg-title {
|
|
|
+ background-color: #202020;
|
|
|
+ color: #fff;
|
|
|
+ padding: 173px 93px;
|
|
|
+ }
|
|
|
+ .half-bg-img {
|
|
|
+ background-position: center center;
|
|
|
+ background-repeat: no-repeat;
|
|
|
+ background-size: cover;
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|