Skip to content
This repository has been archived by the owner on Nov 30, 2020. It is now read-only.

Commit

Permalink
feat: Adding fab demo
Browse files Browse the repository at this point in the history
  • Loading branch information
matsp committed Nov 20, 2017
1 parent d5a3baf commit 6e3fb2c
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
4 changes: 4 additions & 0 deletions demo/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ export default new VueRouter({
path: '/elevation',
component: () => import('views/ElevationView')
},
{
path: '/fab',
component: () => import('views/FabView')
},
{
path: '/iconToggle',
component: () => import('views/IconToggleView')
Expand Down
5 changes: 5 additions & 0 deletions demo/store/modules/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ const state = {
route: '/elevation',
icon: 'code'
},
fab: {
text: 'Fab',
route: '/fab',
icon: 'code'
},
iconToggle: {
text: 'IconToggle',
route: '/iconToggle',
Expand Down
33 changes: 33 additions & 0 deletions demo/views/FabView.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<template>
<m-layout-grid-inner>
<m-layout-grid-cell :span="12">
<m-typo-display :level="1">Fab</m-typo-display>
<m-typo-body :level="2">
<a href="https://github.com/matsp/material-components-vue/blob/master/components/Fab">
https://github.com/matsp/material-components-vue/blob/master/components/Fab
</a>
</m-typo-body>
</m-layout-grid-cell>
<m-layout-grid-cell :span="2">
<m-typo-headline>Normal</m-typo-headline>
<m-fab icon="add" interactive />
</m-layout-grid-cell>
<m-layout-grid-cell :span="2">
<m-typo-headline>Mini</m-typo-headline>
<m-fab icon="add" mini interactive />
</m-layout-grid-cell>
<m-fab icon="add" absoluteRight interactive />
</m-layout-grid-inner>
</template>

<style>
.surface {
display: flex;
align-items: center;
justify-content: center;
width: 200px;
height: 100px;
border-radius: 3px;
font-size: 0.8em;
}
</style>

0 comments on commit 6e3fb2c

Please sign in to comment.