mirror of
https://github.com/phuoc-ng/csslayout.git
synced 2025-08-07 22:56:51 +02:00
Small layout tweaks
This commit is contained in:
@@ -21,7 +21,7 @@ const DetailsLayout: React.FC<DetailsLayoutProps> = ({ title, children }) => {
|
|||||||
style={{
|
style={{
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
backgroundColor: '#00449E',
|
backgroundColor: '#00449E',
|
||||||
borderRadius: '9999px',
|
borderRadius: '4px',
|
||||||
color: '#FFF',
|
color: '#FFF',
|
||||||
display: 'inline-flex',
|
display: 'inline-flex',
|
||||||
margin: '32px 0',
|
margin: '32px 0',
|
||||||
|
@@ -4,171 +4,180 @@ import SubscribeForm from './SubscribeForm';
|
|||||||
|
|
||||||
const Footer: React.FC<{}> = () => {
|
const Footer: React.FC<{}> = () => {
|
||||||
return (
|
return (
|
||||||
<div
|
<>
|
||||||
style={{
|
|
||||||
border: '1px solid rgba(0, 0, 0, 0.2)',
|
|
||||||
display: 'flex',
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
|
borderLeft: '1px solid rgba(0, 0, 0, 0.2)',
|
||||||
borderRight: '1px solid rgba(0, 0, 0, 0.2)',
|
borderRight: '1px solid rgba(0, 0, 0, 0.2)',
|
||||||
display: 'flex',
|
padding: '32px',
|
||||||
flex: 1,
|
textAlign: 'center',
|
||||||
fontSize: '16px',
|
|
||||||
lineHeight: 1.5,
|
|
||||||
padding: '24px',
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<ul
|
<div style={{ lineHeight: 1.5, marginBottom: '12px' }}>
|
||||||
style={{
|
Subscribe to the newsletter for the latest layouts or patterns. No spam. Ever!
|
||||||
fontWeight: 500,
|
</div>
|
||||||
lineHeight: 1.5,
|
<SubscribeForm />
|
||||||
listStyleType: 'none',
|
|
||||||
margin: 0,
|
|
||||||
padding: 0,
|
|
||||||
width: '100%',
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<li style={{ alignItems: 'center', display: 'flex' }}>
|
|
||||||
<h3
|
|
||||||
style={{
|
|
||||||
fontSize: '20px',
|
|
||||||
fontWeight: 700,
|
|
||||||
margin: 0,
|
|
||||||
padding: '0 8px 0 0',
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
.my-products
|
|
||||||
</h3>
|
|
||||||
{
|
|
||||||
</li>
|
|
||||||
<ul style={{ listStyleType: 'none', margin: 0, paddingLeft: '24px' }}>
|
|
||||||
<li style={{ alignItems: 'center', display: 'flex', justifyContent: 'space-between' }}>
|
|
||||||
<div>css-layout,</div>
|
|
||||||
<div style={{ color: 'rgba(0, 0, 0, 0.3)' }}>
|
|
||||||
/* You are here */
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
<li style={{ alignItems: 'center', display: 'flex', justifyContent: 'space-between' }}>
|
|
||||||
<a
|
|
||||||
href="https://formvalidation.io"
|
|
||||||
style={{ textDecoration: 'none' }}
|
|
||||||
target="_blank"
|
|
||||||
title="FormValidation ~ best validation library for JavaScript"
|
|
||||||
>
|
|
||||||
form-validation,
|
|
||||||
</a>
|
|
||||||
<div style={{ color: 'rgba(0, 0, 0, 0.3)' }}>
|
|
||||||
/* A JS validation library */
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
<li style={{ alignItems: 'center', display: 'flex', justifyContent: 'space-between' }}>
|
|
||||||
<a
|
|
||||||
href="https://blur.page"
|
|
||||||
style={{ textDecoration: 'none' }}
|
|
||||||
target="_blank"
|
|
||||||
title="BlurPage ~ a browser extension to hide sensitive element on page"
|
|
||||||
>
|
|
||||||
blur-page,
|
|
||||||
</a>
|
|
||||||
<div style={{ color: 'rgba(0, 0, 0, 0.3)' }}>
|
|
||||||
/* Chrome and Firefox extensions */
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
<li style={{ alignItems: 'center', display: 'flex', justifyContent: 'space-between' }}>
|
|
||||||
<a
|
|
||||||
href="https://react-pdf-viewer.dev"
|
|
||||||
style={{ textDecoration: 'none' }}
|
|
||||||
target="_blank"
|
|
||||||
title="React PDF Viewer ~ a PDF viewer made for React"
|
|
||||||
>
|
|
||||||
react-pdf-viewer,
|
|
||||||
</a>
|
|
||||||
<div style={{ color: 'rgba(0, 0, 0, 0.3)' }}>
|
|
||||||
/* A React component */
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<li>}</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
flex: 1,
|
border: '1px solid rgba(0, 0, 0, 0.2)',
|
||||||
fontSize: '16px',
|
display: 'flex',
|
||||||
lineHeight: 1.5,
|
|
||||||
padding: '24px',
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<ul
|
<div
|
||||||
style={{
|
style={{
|
||||||
fontWeight: 500,
|
borderRight: '1px solid rgba(0, 0, 0, 0.2)',
|
||||||
|
display: 'flex',
|
||||||
|
flex: 1,
|
||||||
|
fontSize: '16px',
|
||||||
lineHeight: 1.5,
|
lineHeight: 1.5,
|
||||||
listStyleType: 'none',
|
padding: '24px',
|
||||||
margin: '0 0 16px 0',
|
|
||||||
padding: 0,
|
|
||||||
width: '100%',
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<li style={{ alignItems: 'center', display: 'flex' }}>
|
<ul
|
||||||
<h3
|
style={{
|
||||||
style={{
|
fontWeight: 500,
|
||||||
fontSize: '20px',
|
lineHeight: 1.5,
|
||||||
fontWeight: 700,
|
listStyleType: 'none',
|
||||||
margin: 0,
|
margin: 0,
|
||||||
padding: '0 8px 0 0',
|
padding: 0,
|
||||||
}}
|
width: '100%',
|
||||||
>
|
}}
|
||||||
.about
|
>
|
||||||
</h3>
|
|
||||||
{
|
|
||||||
</li>
|
|
||||||
<ul style={{ listStyleType: 'none', margin: 0, paddingLeft: '24px' }}>
|
|
||||||
<li style={{ alignItems: 'center', display: 'flex' }}>
|
<li style={{ alignItems: 'center', display: 'flex' }}>
|
||||||
<div>twitter:</div>
|
<h3
|
||||||
<a
|
style={{
|
||||||
href="https://twitter.com/nghuuphuoc"
|
fontSize: '20px',
|
||||||
style={{ marginLeft: 'auto', textDecoration: 'none' }}
|
fontWeight: 700,
|
||||||
target="_blank"
|
margin: 0,
|
||||||
|
padding: '0 8px 0 0',
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
@nghuuphuoc
|
.my-products
|
||||||
</a>
|
</h3>
|
||||||
<div>;</div>
|
{
|
||||||
</li>
|
|
||||||
<li style={{ alignItems: 'center', display: 'flex' }}>
|
|
||||||
<div>email:</div>
|
|
||||||
<a
|
|
||||||
href="mailto: me@phuoc.ng"
|
|
||||||
style={{ marginLeft: 'auto', textDecoration: 'none' }}
|
|
||||||
target="_blank"
|
|
||||||
>
|
|
||||||
me@phuoc.ng
|
|
||||||
</a>
|
|
||||||
<div>;</div>
|
|
||||||
</li>
|
|
||||||
<li style={{ alignItems: 'center', display: 'flex' }}>
|
|
||||||
<div>github:</div>
|
|
||||||
<a
|
|
||||||
href="https://github.com/phuoc-ng/csslayout"
|
|
||||||
style={{ marginLeft: 'auto', textDecoration: 'none' }}
|
|
||||||
target="_blank"
|
|
||||||
>
|
|
||||||
github.com/phuoc-ng/csslayout
|
|
||||||
</a>
|
|
||||||
<div>;</div>
|
|
||||||
</li>
|
</li>
|
||||||
|
<ul style={{ listStyleType: 'none', margin: 0, paddingLeft: '24px' }}>
|
||||||
|
<li style={{ alignItems: 'center', display: 'flex', justifyContent: 'space-between' }}>
|
||||||
|
<div>css-layout,</div>
|
||||||
|
<div style={{ color: 'rgba(0, 0, 0, 0.3)' }}>
|
||||||
|
/* You are here */
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
<li style={{ alignItems: 'center', display: 'flex', justifyContent: 'space-between' }}>
|
||||||
|
<a
|
||||||
|
href="https://formvalidation.io"
|
||||||
|
style={{ textDecoration: 'none' }}
|
||||||
|
target="_blank"
|
||||||
|
title="FormValidation ~ best validation library for JavaScript"
|
||||||
|
>
|
||||||
|
form-validation,
|
||||||
|
</a>
|
||||||
|
<div style={{ color: 'rgba(0, 0, 0, 0.3)' }}>
|
||||||
|
/* A JS validation library */
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
<li style={{ alignItems: 'center', display: 'flex', justifyContent: 'space-between' }}>
|
||||||
|
<a
|
||||||
|
href="https://blur.page"
|
||||||
|
style={{ textDecoration: 'none' }}
|
||||||
|
target="_blank"
|
||||||
|
title="BlurPage ~ a browser extension to hide sensitive element on page"
|
||||||
|
>
|
||||||
|
blur-page,
|
||||||
|
</a>
|
||||||
|
<div style={{ color: 'rgba(0, 0, 0, 0.3)' }}>
|
||||||
|
/* Chrome and Firefox extensions */
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
<li style={{ alignItems: 'center', display: 'flex', justifyContent: 'space-between' }}>
|
||||||
|
<a
|
||||||
|
href="https://react-pdf-viewer.dev"
|
||||||
|
style={{ textDecoration: 'none' }}
|
||||||
|
target="_blank"
|
||||||
|
title="React PDF Viewer ~ a PDF viewer made for React"
|
||||||
|
>
|
||||||
|
react-pdf-viewer,
|
||||||
|
</a>
|
||||||
|
<div style={{ color: 'rgba(0, 0, 0, 0.3)' }}>
|
||||||
|
/* A React component */
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<li>}</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
style={{
|
||||||
|
flex: 1,
|
||||||
|
fontSize: '16px',
|
||||||
|
lineHeight: 1.5,
|
||||||
|
padding: '24px',
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<ul
|
||||||
|
style={{
|
||||||
|
fontWeight: 500,
|
||||||
|
lineHeight: 1.5,
|
||||||
|
listStyleType: 'none',
|
||||||
|
margin: '0 0 16px 0',
|
||||||
|
padding: 0,
|
||||||
|
width: '100%',
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<li style={{ alignItems: 'center', display: 'flex' }}>
|
||||||
|
<h3
|
||||||
|
style={{
|
||||||
|
fontSize: '20px',
|
||||||
|
fontWeight: 700,
|
||||||
|
margin: 0,
|
||||||
|
padding: '0 8px 0 0',
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
.about
|
||||||
|
</h3>
|
||||||
|
{
|
||||||
|
</li>
|
||||||
|
<ul style={{ listStyleType: 'none', margin: 0, paddingLeft: '24px' }}>
|
||||||
|
<li style={{ alignItems: 'center', display: 'flex' }}>
|
||||||
|
<div>twitter:</div>
|
||||||
|
<a
|
||||||
|
href="https://twitter.com/nghuuphuoc"
|
||||||
|
style={{ marginLeft: 'auto', textDecoration: 'none' }}
|
||||||
|
target="_blank"
|
||||||
|
>
|
||||||
|
@nghuuphuoc
|
||||||
|
</a>
|
||||||
|
<div>;</div>
|
||||||
|
</li>
|
||||||
|
<li style={{ alignItems: 'center', display: 'flex' }}>
|
||||||
|
<div>email:</div>
|
||||||
|
<a
|
||||||
|
href="mailto: me@phuoc.ng"
|
||||||
|
style={{ marginLeft: 'auto', textDecoration: 'none' }}
|
||||||
|
target="_blank"
|
||||||
|
>
|
||||||
|
me@phuoc.ng
|
||||||
|
</a>
|
||||||
|
<div>;</div>
|
||||||
|
</li>
|
||||||
|
<li style={{ alignItems: 'center', display: 'flex' }}>
|
||||||
|
<div>github:</div>
|
||||||
|
<a
|
||||||
|
href="https://github.com/phuoc-ng/csslayout"
|
||||||
|
style={{ marginLeft: 'auto', textDecoration: 'none' }}
|
||||||
|
target="_blank"
|
||||||
|
>
|
||||||
|
github.com/phuoc-ng/csslayout
|
||||||
|
</a>
|
||||||
|
<div>;</div>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<li>}</li>
|
||||||
</ul>
|
</ul>
|
||||||
<li>}</li>
|
|
||||||
</ul>
|
|
||||||
<div>
|
|
||||||
<div style={{ lineHeight: 1.5, marginBottom: '12px' }}>
|
|
||||||
Subscribe to the newsletter for the latest layouts or patterns. No spam. Ever!
|
|
||||||
</div>
|
|
||||||
<SubscribeForm />
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -18,7 +18,7 @@ const ExplorePage = () => {
|
|||||||
to="/"
|
to="/"
|
||||||
style={{
|
style={{
|
||||||
backgroundColor: '#00449E',
|
backgroundColor: '#00449E',
|
||||||
borderRadius: '9999px',
|
borderRadius: '4px',
|
||||||
color: '#FFF',
|
color: '#FFF',
|
||||||
padding: '8px 16px',
|
padding: '8px 16px',
|
||||||
textDecoration: 'none',
|
textDecoration: 'none',
|
||||||
|
@@ -26,7 +26,7 @@ const HomePage = () => {
|
|||||||
<h1
|
<h1
|
||||||
style={{
|
style={{
|
||||||
backgroundColor: '#00449E',
|
backgroundColor: '#00449E',
|
||||||
borderRadius: '9999px',
|
borderRadius: '4px',
|
||||||
color: '#FFF',
|
color: '#FFF',
|
||||||
fontSize: '36px',
|
fontSize: '36px',
|
||||||
fontWeight: 600,
|
fontWeight: 600,
|
||||||
|
Reference in New Issue
Block a user