Skip to content

Commit

Permalink
Update website with demo for 'output-components-as-svgstore'
Browse files Browse the repository at this point in the history
  • Loading branch information
marcomontalbano committed Dec 2, 2019
1 parent 81315ea commit 0bc410d
Show file tree
Hide file tree
Showing 15 changed files with 445 additions and 63 deletions.
10 changes: 10 additions & 0 deletions packages/website/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"plugins": [
["@babel/plugin-transform-react-jsx", { "pragma":"h", "jsxPragma": "h" }],
["babel-plugin-jsx-pragmatic", {
"module": "preact",
"import": "h",
"export": "h"
}]
]
}
22 changes: 12 additions & 10 deletions packages/website/.figmaexportrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,18 @@ module.exports = {
output: './output/es6-dataurl',
useDataUrl: true,
}),
// require('../output-components-as-svgstore')({
// output: './output/svgstore',
// }),
// require('../output-components-as-svgstore')({
// output: './output/svgstore-monochrome',
// options: {
// prefix: 'monochrome-',
// cleanSymbols: ['fill']
// }
// }),

require('../output-components-as-svgstore')({
output: './output/svgstore',
}),

require('../output-components-as-svgstore')({
output: './output/svgstore-monochrome',
iconPrefix: 'unfilled-',
options: {
cleanSymbols: ['fill']
}
}),
]
}]
]
Expand Down
14 changes: 13 additions & 1 deletion packages/website/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ $color-link-hover: #1976D2;
}
}

.text-center {
text-align: center;
}

.nowrap {
white-space: nowrap;
}

body {
margin: 0;
font-family: Lato;
Expand Down Expand Up @@ -181,11 +189,15 @@ pre[class*=language-] {
padding: 0 15px;
}

.section-block {
margin: 60px 0;
}

.code-block {
display: flex;
justify-content: space-around;
flex-direction: column;
margin: 60px 0 15px 0;
margin: 15px 0;

@include for-desktop-up {
align-items: center;
Expand Down
262 changes: 235 additions & 27 deletions packages/website/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0bc410d

Please sign in to comment.