Skip to content

Commit 60a2f7f

Browse files
authored
Merge pull request phuocng#193 from 1milligram/nextjs
Use Nextjs
2 parents 88200a6 + b53be6f commit 60a2f7f

File tree

417 files changed

+14089
-15459
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

417 files changed

+14089
-15459
lines changed

.babelrc

Lines changed: 0 additions & 14 deletions
This file was deleted.

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.DS_Store
22
.netlify
3-
dist
3+
.next
44
node_modules
5+
out
56
package-lock.json
67
tslint.log

.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.netlify
2+
.next
3+
node_modules
4+
out

README.md

Lines changed: 11 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
A collection of popular layouts and patterns made with CSS:
44

5-
* 🎉Zero dependencies
6-
* 🎉No frameworks
7-
* 🎉No CSS hacks
8-
* 🎉Real use cases
5+
* 🎉 Zero dependencies
6+
* 🎉 No frameworks
7+
* 🎉 No CSS hacks
8+
* 🎉 Real use cases
99
* Good practices (coming soon)
1010
* Accessibility Support (coming soon)
1111

@@ -27,32 +27,32 @@ By composing them, you can have any possible layout that exists in the real life
2727

2828
- Clone the project:
2929

30-
```console
31-
$ git clone https://github.com/phuoc-ng/csslayout
30+
```shell
31+
$ git clone https://github.com/1milligram/csslayout
3232
```
3333

3434
- Install the dependencies:
3535

36-
```console
36+
```shell
3737
$ cd csslayout
3838
$ npm install
3939
```
4040

4141
- Run it on the local:
4242

43-
```console
44-
$ npm run dev-server
43+
```shell
44+
$ npm run dev
4545
```
4646

47-
Visit http://localhost:1234 to see it in action.
47+
Visit http://localhost:3000 to see it in action.
4848

4949
## Contributing
5050

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

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

55-
```console
55+
```shell
5656
$ npm run lint
5757
```
5858

@@ -66,23 +66,3 @@ Be my friend on
6666
* [Twitter](https://twitter.com/nghuuphuoc)
6767
* [dev.to](https://dev.to/phuocng)
6868
* [Github](https://github.com/phuoc-ng)
69-
70-
## Products
71-
72-
You might be interested in my products:
73-
74-
_Products_
75-
* [Blur Page - A browser extension to hide sensitive information on a web page](https://blur.page)
76-
* [Check Browsers Support - A browser extension to check browser compatibility without leaving your tab](https://checkbrowsers.support)
77-
* [Fake Numbers - Generate fake and valid numbers](https://fakenumbers.io)
78-
* [Form Validation - The best validation library for JavaScript](https://formvalidation.io)
79-
* [Intersection Observer Examples - Practical, real world examples of Intersection Observer](https://intersectionobserver.io)
80-
* [React PDF Viewer - A React component to view a PDF document](https://react-pdf-viewer.dev)
81-
82-
_Resources_
83-
* [1LOC - Favorite JavaScript utilities in single line of code](https://1loc.dev)
84-
* [CSS Layout - A collection of popular layouts and patterns made with CSS](https://csslayout.io)
85-
* [HTML DOM - How to manage HTML DOM with vanilla JavaScript](https://htmldom.dev)
86-
* [Responsive Design Patterns - A collection of patterns to create a responsive web page](https://responsive.page)
87-
* [Super tiny, quick tips, tricks and best practices of front-end development](https://getfrontend.tips)
88-
* [this VS that - The differences between ___ and ___ in the front-end development](https://thisthat.dev)

bin/generateScreenshot.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,20 @@ const main = () => {
1313
}
1414

1515
const pattern = args[2];
16-
16+
1717
(async () => {
18-
const browser = await puppeteer.launch();
19-
18+
const browser = await puppeteer.launch();
19+
2020
const page = await browser.newPage();
21-
await page.goto(`http://localhost:1234/patterns/${pattern}`);
21+
await page.goto(`http://localhost:3000/${pattern}`);
2222

2323
await page.waitForSelector('.demo__live');
2424
const element = await page.$('.demo__live');
2525
await element.screenshot({
26-
path: `public/assets/patterns/${pattern}.png`
26+
path: `public/assets/patterns/${pattern}.png`,
2727
});
2828
await page.close();
29-
29+
3030
await browser.close();
3131
})();
3232
};

client/App.tsx

Lines changed: 0 additions & 30 deletions
This file was deleted.

client/components/CoverCard.tsx

Lines changed: 0 additions & 32 deletions
This file was deleted.

client/components/Heading.tsx

Lines changed: 0 additions & 20 deletions
This file was deleted.

client/components/Product.tsx

Lines changed: 0 additions & 28 deletions
This file was deleted.

client/components/RelatedPatterns.tsx

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)