1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-08-07 06:37:01 +02:00

Merge pull request #56 from phuoc-ng/fix-export

react-snap can't export correct font family
This commit is contained in:
phuoc-ng
2019-11-26 23:34:25 +07:00
committed by GitHub
5 changed files with 19 additions and 4 deletions

View File

@@ -28,12 +28,13 @@ The entire website is powered by
~~~ javascript ~~~ javascript
this this
.madeWith([react,typescript]) .madeWith([react,typescript])
.then(r => lint(tslint))
.then(r => lazyLoad(@loadable/component)) .then(r => lazyLoad(@loadable/component))
.then(r => optimizeAndBundle(webpack)) .then(r => optimizeAndBundle(webpack))
.then(r => exportHtml(react-snap)) .then(r => exportHtml(react-snap))
.then(r => deploy(Netlify)) .then(r => deploy(Netlify))
.assert([scalableCode, superFastWebsite, seoFriendly]) .assert([scalableCode, superFastWebsite, seoFriendly])
.done(/* Give me 1 star */) 🎉 .finally(/* Give me 1 star */) 🎉
~~~ ~~~
## Running it on local ## Running it on local

View File

@@ -60,7 +60,6 @@ const Home = () => {
style={{ style={{
alignItems: 'center', alignItems: 'center',
display: 'flex', display: 'flex',
fontFamily: '\'Source Code Pro\'',
fontSize: '16px', fontSize: '16px',
justifyContent: 'center', justifyContent: 'center',
lineHeight: 1.5, lineHeight: 1.5,

View File

@@ -1,7 +1,9 @@
body { body {
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
} }
code { .hljs, code {
font-family: 'Source Code Pro', monospace; font-family: 'Source Code Pro', monospace;
}
code {
font-size: 14px; font-size: 14px;
} }

View File

@@ -47,6 +47,12 @@ const Footer: React.FC<{}> = () => {
&#123; &#123;
</li> </li>
<ul style={{ listStyleType: 'none', margin: 0, padding: '0 32px' }}> <ul style={{ listStyleType: 'none', margin: 0, padding: '0 32px' }}>
<li>
css-layout,
<span style={{ color: 'rgba(0, 0, 0, 0.3)', marginLeft: '16px' }}>
/&#42; You are here &#42;/
</span>
</li>
<li> <li>
<a <a
href="https://formvalidation.io" href="https://formvalidation.io"

View File

@@ -27,6 +27,13 @@ const Layout: React.FC<{}> = ({ children }) => {
<a href="https://www.typescriptlang.org" style={{ textDecoration: 'none' }}>typescript</a> <a href="https://www.typescriptlang.org" style={{ textDecoration: 'none' }}>typescript</a>
]) ])
</li> </li>
<li style={{ marginLeft: '16px' }}>
.then(r => lint(
<a href="https://github.com/palantir/tslint" style={{ textDecoration: 'none' }}>
tslint
</a>
))
</li>
<li style={{ marginLeft: '16px' }}> <li style={{ marginLeft: '16px' }}>
.then(r => lazyLoad( .then(r => lazyLoad(
<a href="https://github.com/smooth-code/loadable-components" style={{ textDecoration: 'none' }}> <a href="https://github.com/smooth-code/loadable-components" style={{ textDecoration: 'none' }}>
@@ -53,7 +60,7 @@ const Layout: React.FC<{}> = ({ children }) => {
</li> </li>
<li style={{ marginLeft: '16px' }}>.assert([scalableCode, superFastWebsite, seoFriendly])</li> <li style={{ marginLeft: '16px' }}>.assert([scalableCode, superFastWebsite, seoFriendly])</li>
<li style={{ marginLeft: '16px' }}> <li style={{ marginLeft: '16px' }}>
.done( .finally(
<a href="https://github.com/phuoc-ng/csslayout" style={{ textDecoration: 'none' }}> <a href="https://github.com/phuoc-ng/csslayout" style={{ textDecoration: 'none' }}>
/&#42; Give me 1 star &#42;/ /&#42; Give me 1 star &#42;/
</a> </a>