mirror of
https://github.com/phuoc-ng/csslayout.git
synced 2025-08-08 07:07:15 +02:00
Add feature section to the homepage
This commit is contained in:
10
README.md
10
README.md
@@ -20,7 +20,7 @@ I usually don't want to include all of them in my project.
|
|||||||
So I collect most popular layouts and components that can be built with pure CSS.
|
So I collect most popular layouts and components that can be built with pure CSS.
|
||||||
They are powered by modern CSS features such as flexbox and grid.
|
They are powered by modern CSS features such as flexbox and grid.
|
||||||
|
|
||||||
They are great starting points and could be picked and customized easily for each specific need.
|
They are great starting points to be picked and customized easily for each specific need.
|
||||||
By composing them, you can have any possible layout that exists in the real life.
|
By composing them, you can have any possible layout that exists in the real life.
|
||||||
|
|
||||||
The entire website is powered by
|
The entire website is powered by
|
||||||
@@ -33,8 +33,12 @@ this
|
|||||||
.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])
|
.then(r => {
|
||||||
.finally(/* Give me 1 star */) 🎉
|
expect(r).is(scalableCode);
|
||||||
|
expect(r).is(superFastWebsite);
|
||||||
|
expect(r).is(seoFriendly);
|
||||||
|
})
|
||||||
|
.finally(() => {/* Give me 1 star */}) 🎉
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
## Running it on local
|
## Running it on local
|
||||||
|
@@ -58,13 +58,16 @@ const Home = () => {
|
|||||||
fontSize: '24px',
|
fontSize: '24px',
|
||||||
fontWeight: 300,
|
fontWeight: 300,
|
||||||
lineHeight: 1.5,
|
lineHeight: 1.5,
|
||||||
margin: 0,
|
margin: '32px 0 16px 0',
|
||||||
padding: '32px 0',
|
padding: '0',
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Here is the collection of patterns
|
Here is the collection of patterns
|
||||||
</h2>
|
</h2>
|
||||||
|
<div style={{ marginBottom: '32px', textAlign: 'center' }}>
|
||||||
|
All covers you see in this page are made with CSS only. Inspect them! 🎉
|
||||||
|
</div>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
<Heading title="Layouts" />
|
<Heading title="Layouts" />
|
||||||
|
@@ -55,6 +55,28 @@ const Home = () => {
|
|||||||
a collection of popular layouts and patterns made with CSS
|
a collection of popular layouts and patterns made with CSS
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
|
<div style={{ display: 'flex', lineHeight: 1.5 }}>
|
||||||
|
<div style={{ flex: 1, padding: '24px'}} className="drop-cap">
|
||||||
|
<div style={{ marginBottom: '16px' }}>
|
||||||
|
Components, patterns and layouts are things you have to deal with everyday.
|
||||||
|
</div>
|
||||||
|
<div>There are a lot of CSS frameworks that provide rich set of layouts and patterns,
|
||||||
|
but I usually don't want to include all of them in my project.</div>
|
||||||
|
</div>
|
||||||
|
<div style={{ flex: 1, padding: '24px'}} className="drop-cap">
|
||||||
|
<div style={{ marginBottom: '16px' }}>
|
||||||
|
So that I collect most popular layouts and patterns that can be built with pure CSS.
|
||||||
|
</div>
|
||||||
|
<div>They are powered by modern CSS features such as flexbox and CSS grid.</div>
|
||||||
|
</div>
|
||||||
|
<div style={{ flex: 1, padding: '24px'}} className="drop-cap">
|
||||||
|
<div style={{ marginBottom: '16px' }}>
|
||||||
|
Starting with the most basic part, you can customize easily for each specific need.
|
||||||
|
</div>
|
||||||
|
<div>By composing them, you can have any possible layout that exists in the real life.</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
className="hljs"
|
className="hljs"
|
||||||
style={{
|
style={{
|
||||||
|
@@ -14,3 +14,12 @@ input[type="email"], input[type="number"], input[type="password"], input[type="t
|
|||||||
code {
|
code {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
|
.drop-cap:first-letter {
|
||||||
|
border: 2px solid;
|
||||||
|
float: left;
|
||||||
|
font-size: 64px;
|
||||||
|
font-weight: 700;
|
||||||
|
line-height: 1;
|
||||||
|
margin: 0 8px 0 0;
|
||||||
|
padding: 0 8px;
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user