it-tools/components/ToolWrapper.vue

64 lines
1.1 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">
<v-col cols="12" lg="6">
<div class="tool-wrapper-info">
<h1>{{ config.title }}</h1>
2021-02-13 19:55:45 +01:00
<div class="spacer" />
<div class="description">
{{ config.description }}
</div>
2021-02-06 11:14:28 +01:00
</div>
<v-card flat>
<v-card-text class="pa-10">
2021-02-13 19:55:45 +01:00
<slot />
2021-02-06 11:14:28 +01:00
</v-card-text>
</v-card>
</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 {
@Prop() config!: ToolConfig;
}
</script>
<style scoped lang="less">
.tool-wrapper {
height: 100%;
.tool-wrapper-info{
padding: 50px 0 30px;
}
.category {
color: #546167;
}
h1 {
font-weight: 300;
font-size: 50px;
margin: 0;
padding: 0;
}
.spacer{
width: 130px;
height: 1px;
background-color: var(--v-primary-base);
margin-bottom: 10px;
}
.description {
color: #829097;
}
}
</style>