mirror of
https://github.com/phuoc-ng/csslayout.git
synced 2025-08-06 06:07:33 +02:00
Merge pull request #56 from phuoc-ng/fix-export
react-snap can't export correct font family
This commit is contained in:
@@ -28,12 +28,13 @@ The entire website is powered by
|
||||
~~~ javascript
|
||||
this
|
||||
.madeWith([react,typescript])
|
||||
.then(r => lint(tslint))
|
||||
.then(r => lazyLoad(@loadable/component))
|
||||
.then(r => optimizeAndBundle(webpack))
|
||||
.then(r => exportHtml(react-snap))
|
||||
.then(r => deploy(Netlify))
|
||||
.assert([scalableCode, superFastWebsite, seoFriendly])
|
||||
.done(/* Give me 1 star */) 🎉
|
||||
.finally(/* Give me 1 star */) 🎉
|
||||
~~~
|
||||
|
||||
## Running it on local
|
||||
|
@@ -60,7 +60,6 @@ const Home = () => {
|
||||
style={{
|
||||
alignItems: 'center',
|
||||
display: 'flex',
|
||||
fontFamily: '\'Source Code Pro\'',
|
||||
fontSize: '16px',
|
||||
justifyContent: 'center',
|
||||
lineHeight: 1.5,
|
||||
|
@@ -1,7 +1,9 @@
|
||||
body {
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
code {
|
||||
.hljs, code {
|
||||
font-family: 'Source Code Pro', monospace;
|
||||
}
|
||||
code {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
@@ -47,6 +47,12 @@ const Footer: React.FC<{}> = () => {
|
||||
{
|
||||
</li>
|
||||
<ul style={{ listStyleType: 'none', margin: 0, padding: '0 32px' }}>
|
||||
<li>
|
||||
css-layout,
|
||||
<span style={{ color: 'rgba(0, 0, 0, 0.3)', marginLeft: '16px' }}>
|
||||
/* You are here */
|
||||
</span>
|
||||
</li>
|
||||
<li>
|
||||
<a
|
||||
href="https://formvalidation.io"
|
||||
|
@@ -27,6 +27,13 @@ const Layout: React.FC<{}> = ({ children }) => {
|
||||
<a href="https://www.typescriptlang.org" style={{ textDecoration: 'none' }}>typescript</a>
|
||||
])
|
||||
</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' }}>
|
||||
.then(r => lazyLoad(
|
||||
<a href="https://github.com/smooth-code/loadable-components" style={{ textDecoration: 'none' }}>
|
||||
@@ -53,7 +60,7 @@ const Layout: React.FC<{}> = ({ children }) => {
|
||||
</li>
|
||||
<li style={{ marginLeft: '16px' }}>.assert([scalableCode, superFastWebsite, seoFriendly])</li>
|
||||
<li style={{ marginLeft: '16px' }}>
|
||||
.done(
|
||||
.finally(
|
||||
<a href="https://github.com/phuoc-ng/csslayout" style={{ textDecoration: 'none' }}>
|
||||
/* Give me 1 star */
|
||||
</a>
|
||||
|
Reference in New Issue
Block a user