diff --git a/README.md b/README.md index c172850..95120c7 100644 --- a/README.md +++ b/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. 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 diff --git a/client/App.tsx b/client/App.tsx index 674f6c6..bb5912c 100644 --- a/client/App.tsx +++ b/client/App.tsx @@ -22,6 +22,7 @@ const App = () => { + diff --git a/client/Explore.tsx b/client/Explore.tsx index d12e90d..51a6ace 100644 --- a/client/Explore.tsx +++ b/client/Explore.tsx @@ -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 +
+ All covers you see in this page are made with CSS only. Inspect them! 🎉 +
@@ -90,6 +93,7 @@ const Home = () => { + diff --git a/client/Home.tsx b/client/Home.tsx index a90be5b..f7abc74 100644 --- a/client/Home.tsx +++ b/client/Home.tsx @@ -55,6 +55,28 @@ const Home = () => { a collection of popular layouts and patterns made with CSS +
+
+
+ Components, patterns and layouts are things you have to deal with everyday. +
+
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.
+
+
+
+ So that I collect most popular layouts and patterns that can be built with pure CSS. +
+
They are powered by modern CSS features such as flexbox and CSS grid.
+
+
+
+ Starting with the most basic part, you can customize easily for each specific need. +
+
By composing them, you can have any possible layout that exists in the real life.
+
+
+
{ + diff --git a/client/constants/Pattern.ts b/client/constants/Pattern.ts index f78e91b..921e78e 100644 --- a/client/constants/Pattern.ts +++ b/client/constants/Pattern.ts @@ -7,6 +7,7 @@ enum Pattern { DockedAtCorner = 'Docked at corner', DotLeader = 'Dot leader', DotNavigation = 'Dot navigation', + DropArea = 'Drop area', FeatureList = 'Feature list', FixedAtCorner = 'Fixed at corner', HolyGrail = 'Holy grail', diff --git a/client/index.css b/client/index.css index d5c1d82..812caae 100644 --- a/client/index.css +++ b/client/index.css @@ -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; +} diff --git a/client/patterns/drop-area/Cover.tsx b/client/patterns/drop-area/Cover.tsx new file mode 100644 index 0000000..7575374 --- /dev/null +++ b/client/patterns/drop-area/Cover.tsx @@ -0,0 +1,40 @@ +import React from 'react'; + +import Frame from '../../placeholders/Frame'; +import Line from '../../placeholders/Line'; + +const Cover: React.FC<{}> = () => { + return ( + +
+
+
+
+
+
+
+ + ); +}; + +export default Cover; diff --git a/client/patterns/drop-area/Details.tsx b/client/patterns/drop-area/Details.tsx new file mode 100644 index 0000000..b7310f9 --- /dev/null +++ b/client/patterns/drop-area/Details.tsx @@ -0,0 +1,61 @@ +import React from 'react'; + +import DetailsLayout from '../../layouts/DetailsLayout'; +import Block from '../../placeholders/Block'; +import BrowserFrame from '../../placeholders/BrowserFrame'; + +const Details: React.FC<{}> = () => { + return ( + +
+ +
+
+ +
+
+
+ )} + source={` +
+ ... +
+`} + /> +
+ + ); +}; + +export default Details; diff --git a/public/sitemap.xml b/public/sitemap.xml index 47dbba3..225bf0d 100644 --- a/public/sitemap.xml +++ b/public/sitemap.xml @@ -11,6 +11,7 @@ https://csslayout.io/centering https://csslayout.io/docked-at-corner https://csslayout.io/dot-navigation + https://csslayout.io/drop-area https://csslayout.io/feature-list https://csslayout.io/fixed-at-corner https://csslayout.io/input-addon