mirror of
https://github.com/phuoc-ng/csslayout.git
synced 2025-10-24 11:16:27 +02:00
67 lines
1.6 KiB
Markdown
67 lines
1.6 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)
|
|
|
|
## 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:
|
|
|
|
```shell
|
|
$ git clone https://github.com/phuocng/csslayout
|
|
```
|
|
|
|
- Install the dependencies:
|
|
|
|
```shell
|
|
$ cd csslayout
|
|
$ npm install
|
|
```
|
|
|
|
- Run it on the local:
|
|
|
|
```shell
|
|
$ npm run start
|
|
```
|
|
|
|
Visit http://localhost:8081 to see it in action.
|
|
|
|
## Contributing
|
|
|
|
PRs are welcomed. If you think 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:
|
|
|
|
```shell
|
|
$ 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)
|