csslayout

A collection of popular layouts and patterns made with CSS. Now it has 90+ patterns and continues growing!

Github星跟踪图

Vote for me on ProductHunt

CSS Layout

A collection of popular layouts and patterns made with CSS:

  • ?Zero dependencies
  • ?No frameworks
  • ?No CSS hacks
  • ?Real use cases
  • Good practices (coming soon)
  • Accessibility (coming soon)

CSS Layout

Why

Being a front-end engineer, I have to deal with a lot of layouts and components.
There are a lot of CSS frameworks out there that provide popular layouts/components but
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 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

this
    .madeWith([react,typescript])
    .then(r => lint(tslint))
    .then(r => lazyLoad(@loadable/component))
    .then(r => optimizeAndBundle(webpack))
    .then(r => exportHtml(react-snap))
    .then(r => deploy(Netlify))
    .then(r => {
        expect(r).is(scalableCode);
        expect(r).is(superFastWebsite);
        expect(r).is(seoFriendly);
    })
    .finally(() => {/* Give me 1 star */}) ?

Running it on local

  • Clone the project:
$ git clone https://github.com/phuoc-ng/csslayout
  • Install the dependencies:
$ cd csslayout
$ npm install
  • Run it on the local:
$ npm run dev-server

Visit http://localhost:1234 to see it in action.

Contributing

PRs are welcomed. If you thing there are any missing useful layouts or patterns, please create an issue or submit a PR.

It's important to note that you should run the following command to lint the code:

$ npm run lint

If there is any issue, it will be logged in the tslint.log file.

About

This project is developed by Nguyen Huu Phuoc. I love building products and sharing knowledge.

Be my friend on

Products

You might be interesting in my products:, Product, Description, ---------------------------------------------------, -------------------------------------------------------------------, Blur Page, A browser extension to hide sensitive information on a web page, CSS Layout, A collection of popular layouts and patterns made with CSS, Fake Numbers, Generate fake and valid numbers, Form Validation, The best validation library for JavaScript, HTML DOM, How to manage HTML DOM with vanilla JavaScript, React PDF Viewer, A React component to view a PDF document

主要指标

概览
名称与所有者phuocng/csslayout
主编程语言MDX
编程语言JavaScript (语言数: 1)
平台
许可证MIT License
所有者活动
创建于2019-11-15 06:04:35
推送于2023-11-22 14:23:17
最后一次提交2023-11-22 21:23:14
发布数0
用户参与
星数8.1k
关注者数116
派生数522
提交数691
已启用问题?
问题数33
打开的问题数13
拉请求数197
打开的拉请求数0
关闭的拉请求数3
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?