-
Notifications
You must be signed in to change notification settings - Fork 3
Add default avatar, clean up some design stories #1393
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| '@cloudfour/patterns': minor | ||
| --- | ||
|
|
||
| Add default avatar asset |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,16 +1,14 @@ | ||
| import { Story, Canvas, Meta } from '@storybook/addon-docs/blocks'; | ||
| // Importing a `.svg` directly, results in a failed build and importing | ||
| // the `.svg.twig` file causes linting errors (since they are not tracked). | ||
| // Therefore, we must track a twig file to satisfy CI. | ||
| import brandLogo from './demo/logo.twig'; | ||
| import logoSrc from '../assets/brand/logo.svg'; | ||
|
|
||
| <Meta title="Design/Brand" /> | ||
|
|
||
| # Logo | ||
| # Brand | ||
|
|
||
| Cloud Four logo in SVG format. The logo fill color can be modified via the CSS | ||
| `color` property. | ||
|
Comment on lines
-11
to
-12
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I removed this text because it isn't accurate. It describes behavior of our Icon component, but there's nothing about the SVG asset on its own that inherits the |
||
| These elements are used to signify Cloud Four projects. | ||
|
|
||
| ## Logo | ||
|
|
||
| <Canvas> | ||
| <Story name="Logo">{brandLogo}</Story> | ||
| <Story name="Logo">{`<img src="${logoSrc}" alt="Cloud Four">`}</Story> | ||
| </Canvas> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
|
|
||
| {% embed '@cloudfour/objects/deck/deck.twig' %} | ||
| {% embed '@cloudfour/objects/deck/deck.twig' with { | ||
| class: 'o-deck--2-column@l' | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This |
||
| } %} | ||
| {% block content %} | ||
| <figure> | ||
| {% include '@cloudfour/assets/illustrations/fallback/fallback_paintbrush.svg.twig' %} | ||
|
|
||
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rather than maintain a demo file just to display the image, I thought it made more sense to import the image source and display it via an
imgelement in the story.