-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
198 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,21 @@ | ||
@import "../../variables/colors"; | ||
@import "../../variables/layout"; | ||
@import "../../variables/texts"; | ||
@import "../../variables/screen"; | ||
|
||
$z-index: 1000 !default; | ||
$z-index: $zindex-layout-footer; | ||
|
||
$footer-padding: 0 1.5rem; | ||
$footer-color: #777; | ||
$footer-background-color: darken(#fcfcfc, 5%); | ||
$footer-border-color: darken(#fcfcfc, 10%); | ||
$footer-font-family: $font-family-base; | ||
$footer-font-size: $font-size-base; | ||
|
||
$footer-padding: 0 $padding-md; | ||
$footer-color: $gray; | ||
$footer-background-color: darken($bg-color-body, 5%); | ||
$footer-border-color: darken($bg-color-body, 10%); | ||
$footer-height: 3rem; | ||
$footer-line-height: $footer-height; | ||
|
||
$footer-link-color: $color-default; | ||
$footer-link-hover-decoration: underline; | ||
|
||
$screen-phone-max: $screen-xs-max; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
import { Meta, Story } from '@storybook/vue' | ||
|
||
import FbLayoutContent from './index.vue' | ||
|
||
export default { | ||
component: FbLayoutContent, | ||
title: 'Components/Layout/FB Content', | ||
argTypes: { | ||
default: { | ||
type: { name: 'string', required: true }, | ||
control: { type: 'text' }, | ||
description: 'Content body slot', | ||
table: { | ||
type: { summary: 'string' }, | ||
defaultValue: { summary: '-' }, | ||
}, | ||
}, | ||
header: { | ||
type: { name: 'string', required: false }, | ||
control: { type: 'text' }, | ||
description: 'Content header slot', | ||
table: { | ||
type: { summary: 'string' }, | ||
defaultValue: { summary: '-' }, | ||
}, | ||
}, | ||
footer: { | ||
type: { name: 'string', required: false }, | ||
control: { type: 'text' }, | ||
description: 'Content footer slot', | ||
table: { | ||
type: { summary: 'string' }, | ||
defaultValue: { summary: '-' }, | ||
}, | ||
}, | ||
}, | ||
parameters: { | ||
knobs: { disabled: true }, | ||
}, | ||
} as Meta | ||
|
||
interface TemplateArgs { | ||
default: string | ||
header?: string | ||
footer?: string | ||
} | ||
|
||
const Template: Story<TemplateArgs> = (args) => { | ||
return { | ||
props: args, | ||
components: { FbLayoutContent }, | ||
template: ` | ||
<div style="height: 150px"> | ||
<fb-layout-content> | ||
<template v-if="${args.default !== null && typeof args.default !== 'undefined'}" slot="default">${args.default}</template> | ||
<template v-if="${args.header !== null && typeof args.header !== 'undefined'}" slot="header">${args.header}</template> | ||
<template v-if="${args.footer !== null && typeof args.footer !== 'undefined'}" slot="footer">${args.footer}</template> | ||
</fb-layout-content> | ||
</div> | ||
`, | ||
} | ||
} | ||
|
||
export const Default = Template.bind({}) | ||
|
||
Default.args = { | ||
default: 'Full height content', | ||
header: 'Content header slot placed on top', | ||
footer: 'Content footer slot placed on bottom', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
import { Meta, Story } from '@storybook/vue' | ||
|
||
import FbLayoutFooter from './index.vue' | ||
|
||
export default { | ||
component: FbLayoutFooter, | ||
title: 'Components/Layout/FB Footer', | ||
argTypes: { | ||
default: { | ||
type: { name: 'string', required: false }, | ||
control: { type: 'text' }, | ||
description: 'Footer custom content slot', | ||
table: { | ||
type: { summary: 'string' }, | ||
defaultValue: { summary: '-' }, | ||
}, | ||
}, | ||
copyright: { | ||
type: { name: 'string', required: false }, | ||
control: { type: 'text' }, | ||
defaultValue: '© 2017', | ||
description: 'Copyright text', | ||
table: { | ||
type: { summary: 'string' }, | ||
defaultValue: { summary: '© 2017' }, | ||
}, | ||
}, | ||
author: { | ||
type: { name: 'string', required: false }, | ||
control: { type: 'text' }, | ||
defaultValue: 'FastyBird s.r.o.', | ||
description: 'Application author name', | ||
table: { | ||
type: { summary: 'string' }, | ||
defaultValue: { summary: 'FastyBird s.r.o.' }, | ||
}, | ||
}, | ||
website: { | ||
type: { name: 'string', required: false }, | ||
control: { type: 'text' }, | ||
defaultValue: 'https://www.fastybird.com', | ||
description: 'Application author website', | ||
table: { | ||
type: { summary: 'string' }, | ||
defaultValue: { summary: 'https://www.fastybird.com' }, | ||
}, | ||
}, | ||
}, | ||
parameters: { | ||
knobs: { disabled: true }, | ||
}, | ||
} as Meta | ||
|
||
interface TemplateArgs { | ||
default?: string | ||
copyright?: string | ||
author?: string | ||
website?: string | ||
} | ||
|
||
const Template: Story<TemplateArgs> = (args) => { | ||
return { | ||
props: args, | ||
components: { FbLayoutFooter }, | ||
template: ` | ||
<fb-layout-footer :copyright="copyright" :author="author" :website="website"> | ||
<template v-if="${args.default !== null && typeof args.default !== 'undefined'}" slot="default">${args.default}</template> | ||
</fb-layout-footer> | ||
`, | ||
} | ||
} | ||
|
||
export const Default = Template.bind({}) | ||
|
||
export const WithCustomContent = Template.bind({}) | ||
|
||
WithCustomContent.args = { | ||
default: ` | ||
Made with lot of <font-awesome-icon icon="mug-hot" /> and <font-awesome-icon icon="heart" /> | ||
` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters