feat: added memo base

This commit is contained in:
Corentin Thomasset 2021-03-14 23:37:57 +01:00
parent 1034296359
commit 0a4abde23d
No known key found for this signature in database
GPG key ID: DBD997E935996158
16 changed files with 537 additions and 151 deletions

View file

@ -2,24 +2,18 @@
<div class="tool-wrapper">
<v-row no-gutters justify="center" align="center">
<v-col cols="12" xl="6" lg="8" md="10">
<div class="tool-wrapper-info">
<h1>{{ config.title }}</h1>
<div class="spacer"/>
<div class="description">
{{ config.description }}
</div>
</div>
<ToolHeader :config="config" />
<template v-if="!noCard">
<v-card flat>
<v-card-text class="pa-10">
<slot/>
<slot />
</v-card-text>
</v-card>
</template>
<template v-else>
<slot/>
<slot />
</template>
</v-col>
</v-row>
</div>
@ -27,9 +21,9 @@
<script lang="ts">
import {Component, Prop, Vue} from 'nuxt-property-decorator'
import {ToolConfig} from '~/types/ToolConfig'
@Component
import ToolHeader from './ToolHeader.vue'
import type {ToolConfig} from '~/types/ToolConfig'
@Component({components: {ToolHeader}})
export default class ToolWrapper extends Vue {
@Prop() readonly config!: ToolConfig;
@Prop({default: () => false}) readonly noCard!: boolean;
@ -41,31 +35,8 @@ export default class ToolWrapper extends Vue {
.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: 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%);
margin-bottom: 10px;
}
.description {
color: #829097;
}
}
</style>