blob: 8f87ca8f781100a521e2e94a1b1cec6851894086 [file] [log] [blame]
Adrià Vilanova Martínez035b5432021-09-03 14:16:59 +02001<script>
2import Page from './utils/Page.vue';
3
4export default {
5 props: [
6 'icon',
7 ],
8 components: {
9 Page,
10 },
11};
12</script>
13
14<template>
15 <page mini>
16 <div class="layout">
17 <mcw-material-icon class="main-icon" :icon="icon" />
18 <span class="label"><slot></slot></span>
19 </div>
20 </page>
21</template>
22
23<style lang="scss" scoped>
24@use "@material/theme/color-palette" as palette;
25
26.layout {
27 display: flex;
28 flex-direction: column;
29 align-items: center;
30 margin: 16px 0;
31}
32
33.main-icon {
34 font-size: 75px;
35 color: palette.$grey-800;
36}
37
38.label {
39 margin-top: 14px;
40 text-align: center;
41}
42</style>