1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-08-06 14:16:50 +02:00

Add feature section to the homepage

This commit is contained in:
Phuoc Nguyen
2019-11-27 22:12:14 +07:00
parent cf9ae9ed51
commit 5f1b3a61b8
4 changed files with 43 additions and 5 deletions

View File

@@ -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.
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.
The entire website is powered by
@@ -33,8 +33,12 @@ this
.then(r => optimizeAndBundle(webpack))
.then(r => exportHtml(react-snap))
.then(r => deploy(Netlify))
.assert([scalableCode, superFastWebsite, seoFriendly])
.finally(/* Give me 1 star */) 🎉
.then(r => {
expect(r).is(scalableCode);
expect(r).is(superFastWebsite);
expect(r).is(seoFriendly);
})
.finally(() => {/* Give me 1 star */}) 🎉
~~~
## Running it on local

View File

@@ -58,13 +58,16 @@ const Home = () => {
fontSize: '24px',
fontWeight: 300,
lineHeight: 1.5,
margin: 0,
padding: '32px 0',
margin: '32px 0 16px 0',
padding: '0',
textAlign: 'center',
}}
>
Here is the collection of patterns
</h2>
<div style={{ marginBottom: '32px', textAlign: 'center' }}>
All covers you see in this page are made with CSS only. Inspect them! 🎉
</div>
<section>
<Heading title="Layouts" />

View File

@@ -55,6 +55,28 @@ const Home = () => {
a collection of popular layouts and patterns made with CSS
</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
className="hljs"
style={{

View File

@@ -14,3 +14,12 @@ input[type="email"], input[type="number"], input[type="password"], input[type="t
code {
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;
}