mirror of
https://github.com/phuoc-ng/csslayout.git
synced 2025-08-28 16:19:52 +02:00
Tweak footer
This commit is contained in:
@@ -12,10 +12,32 @@ const Layout: React.FC<{}> = ({ children }) => {
|
|||||||
<div style={{ margin: '0 auto 64px auto', maxWidth: '1024px' }}>
|
<div style={{ margin: '0 auto 64px auto', maxWidth: '1024px' }}>
|
||||||
{children}
|
{children}
|
||||||
<Footer />
|
<Footer />
|
||||||
<div>
|
<div
|
||||||
<SampleCode
|
style={{
|
||||||
lang='javascript'
|
backgroundColor: '#282828',
|
||||||
code={`
|
display: 'flex',
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
style={{
|
||||||
|
alignItems: 'flex-end',
|
||||||
|
color: '#FFF',
|
||||||
|
display: 'flex',
|
||||||
|
flexDirection: 'column',
|
||||||
|
fontWeight: 700,
|
||||||
|
justifyContent: 'center',
|
||||||
|
padding: '32px',
|
||||||
|
textTransform: 'uppercase',
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<div style={{ fontSize: '48px' }}>How</div>
|
||||||
|
<div style={{ fontSize: '70px' }}>it's</div>
|
||||||
|
<div style={{ fontSize: '42px' }}>made</div>
|
||||||
|
</div>
|
||||||
|
<div style={{ flex: 1, padding: '32px' }}>
|
||||||
|
<SampleCode
|
||||||
|
lang='javascript'
|
||||||
|
code={`
|
||||||
this
|
this
|
||||||
.madeWith([react,typescript])
|
.madeWith([react,typescript])
|
||||||
.then((r) => lint(r)) /* tslint */
|
.then((r) => lint(r)) /* tslint */
|
||||||
@@ -29,29 +51,30 @@ this
|
|||||||
expect(r).is(seoFriendly);
|
expect(r).is(seoFriendly);
|
||||||
})
|
})
|
||||||
`}
|
`}
|
||||||
/>
|
/>
|
||||||
</div>
|
<div
|
||||||
<div
|
className="hljs"
|
||||||
className="hljs"
|
style={{
|
||||||
style={{
|
lineHeight: 1.5,
|
||||||
lineHeight: 1.5,
|
listStyleType: 'none',
|
||||||
listStyleType: 'none',
|
marginTop: '-16px',
|
||||||
marginTop: '-16px',
|
paddingLeft: '40px',
|
||||||
paddingLeft: '40px',
|
}}
|
||||||
}}
|
|
||||||
>
|
|
||||||
.finally(
|
|
||||||
<span className="hljs-function"><span className="hljs-params">()</span> => </span>
|
|
||||||
{
|
|
||||||
<span className="hljs-comment">
|
|
||||||
<a
|
|
||||||
href="https://github.com/phuoc-ng/csslayout"
|
|
||||||
style={{ color: 'currentColor', textDecoration: 'none' }}
|
|
||||||
>
|
>
|
||||||
/* Give me 1 Github star here */
|
.finally(
|
||||||
</a>
|
<span className="hljs-function"><span className="hljs-params">()</span> => </span>
|
||||||
</span>
|
{
|
||||||
}) 🎉
|
<span className="hljs-comment">
|
||||||
|
<a
|
||||||
|
href="https://github.com/phuoc-ng/csslayout"
|
||||||
|
style={{ color: 'currentColor', textDecoration: 'none' }}
|
||||||
|
>
|
||||||
|
/* Give me 1 Github star here */
|
||||||
|
</a>
|
||||||
|
</span>
|
||||||
|
}) 🎉
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user