Adrià Vilanova MartÃnez | 035b543 | 2021-09-03 14:16:59 +0200 | [diff] [blame] | 1 | <script> |
| 2 | import Page from './utils/Page.vue'; |
| 3 | |
| 4 | export 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> |