mirror of
https://github.com/phuoc-ng/csslayout.git
synced 2025-08-03 12:47:50 +02:00
89 lines
2.9 KiB
Markdown
89 lines
2.9 KiB
Markdown
# 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 Support (coming soon)
|
|
|
|
[](https://csslayout.io)
|
|
|
|
## 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.
|
|
|
|
## Running it on local
|
|
|
|
- Clone the project:
|
|
|
|
```console
|
|
$ git clone https://github.com/phuoc-ng/csslayout
|
|
```
|
|
|
|
- Install the dependencies:
|
|
|
|
```console
|
|
$ cd csslayout
|
|
$ npm install
|
|
```
|
|
|
|
- Run it on the local:
|
|
|
|
```console
|
|
$ 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:
|
|
|
|
```console
|
|
$ 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
|
|
* [Twitter](https://twitter.com/nghuuphuoc)
|
|
* [dev.to](https://dev.to/phuocng)
|
|
* [Github](https://github.com/phuoc-ng)
|
|
|
|
## Products
|
|
|
|
You might be interested in my products:
|
|
|
|
_Products_
|
|
* [Blur Page - A browser extension to hide sensitive information on a web page](https://blur.page)
|
|
* [Check Browsers Support - A browser extension to check browser compatibility without leaving your tab](https://checkbrowsers.support)
|
|
* [Fake Numbers - Generate fake and valid numbers](https://fakenumbers.io)
|
|
* [Form Validation - The best validation library for JavaScript](https://formvalidation.io)
|
|
* [Intersection Observer Examples - Practical, real world examples of Intersection Observer](https://intersectionobserver.io)
|
|
* [React PDF Viewer - A React component to view a PDF document](https://react-pdf-viewer.dev)
|
|
|
|
_Resources_
|
|
* [1LOC - Favorite JavaScript utilities in single line of code](https://1loc.dev)
|
|
* [CSS Layout - A collection of popular layouts and patterns made with CSS](https://csslayout.io)
|
|
* [HTML DOM - How to manage HTML DOM with vanilla JavaScript](https://htmldom.dev)
|
|
* [Responsive Design Patterns - A collection of patterns to create a responsive web page](https://responsive.page)
|
|
* [Super tiny, quick tips, tricks and best practices of front-end development](https://getfrontend.tips)
|
|
* [this VS that - The differences between ___ and ___ in the front-end development](https://thisthat.dev)
|