it-tools/components/ToolWrapper.vue

72 lines
1.4 KiB
Vue
Raw Normal View History

2021-02-06 11:14:28 +01:00
<template>
<div class="tool-wrapper">
<v-row no-gutters justify="center" align="center">
2021-03-14 20:11:39 +01:00
<v-col cols="12" xl="6" lg="8" md="10">
2021-02-06 11:14:28 +01:00
<div class="tool-wrapper-info">
<h1>{{ config.title }}</h1>
2021-03-14 21:20:35 +01:00
<div class="spacer"/>
2021-02-13 19:55:45 +01:00
<div class="description">
{{ config.description }}
</div>
2021-02-06 11:14:28 +01:00
</div>
2021-03-14 21:20:35 +01:00
<template v-if="!noCard">
<v-card flat>
<v-card-text class="pa-10">
<slot/>
</v-card-text>
</v-card>
</template>
<template v-else>
<slot/>
</template>
2021-02-06 11:14:28 +01:00
</v-col>
</v-row>
</div>
</template>
<script lang="ts">
import {Component, Prop, Vue} from 'nuxt-property-decorator'
2021-02-13 19:55:45 +01:00
import {ToolConfig} from '~/types/ToolConfig'
2021-02-06 11:14:28 +01:00
@Component
export default class ToolWrapper extends Vue {
2021-03-14 21:20:35 +01:00
@Prop() readonly config!: ToolConfig;
@Prop({default: () => false}) readonly noCard!: boolean;
2021-02-06 11:14:28 +01:00
}
</script>
<style scoped lang="less">
.tool-wrapper {
height: 100%;
2021-03-14 21:20:35 +01:00
.tool-wrapper-info {
2021-02-06 11:14:28 +01:00
padding: 50px 0 30px;
}
.category {
color: #546167;
}
h1 {
font-weight: 300;
font-size: 50px;
margin: 0;
padding: 0;
}
2021-03-14 21:20:35 +01:00
.spacer {
2021-03-14 20:11:39 +01:00
width: 200px;
height: 2px;
background: var(--v-primary-base);
background: linear-gradient(90deg, rgba(71, 177, 113, 1) 0%, rgba(59, 149, 111, 1) 60%, rgba(37, 99, 108, 1) 200%);
2021-02-06 11:14:28 +01:00
margin-bottom: 10px;
}
.description {
color: #829097;
}
}
</style>