Skip to content

Commit 3fb8cbe

Browse files
authored
Merge branch 'main' into atom
2 parents a761531 + 03d6cb3 commit 3fb8cbe

30 files changed

+2612
-3385
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
node_modules
2+
package-lock.json

packages/vscode/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146
4. `ncdoc` (Next.js custom document)
147147

148148
```jsx
149-
import Document, { Html, Main, NextScript } from "next/_document";
149+
import Document, { Html, Main, NextScript } from "next/document";
150150
const Document: Document = () => {
151151
return (
152152
<Html lang="en">
@@ -244,7 +244,7 @@
244244
8. `ncdoct`(Next.js custom document)
245245

246246
```tsx
247-
import Document, { Html, Main, NextScript } from "next/_document";
247+
import Document, { Html, Main, NextScript } from "next/document";
248248
const Document: Document = () => {
249249
return (
250250
<Html lang="en">

packages/vscode/snippets/next-javascript.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"ncdoc": {
5050
"prefix": "ncdoc",
5151
"body": [
52-
"import { Html, Main, NextScript } from \"next/_document\";",
52+
"import { Html, Main, NextScript } from \"next/document\";",
5353
"",
5454
"const Document = () => {",
5555
" return (",

packages/vscode/snippets/next-typescript.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
"ncdoct": {
9999
"prefix": "ncdoct",
100100
"body": [
101-
"import Document, { Html, Main, NextScript } from \"next/_document\";",
101+
"import Document, { Html, Main, NextScript } from \"next/document\";",
102102
"",
103103
"const Document: Document = () => {",
104104
" return (",

web/.eslintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "next/core-web-vitals"
3+
}

web/components/Action.tsx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import Image from 'next/image'
22
import React from 'react'
3-
import actionGif from '../public/action.gif'
43

54
export default function Action() {
65
return (
@@ -9,11 +8,16 @@ export default function Action() {
98
Our extension in <span className="text-[#24D1DC]">action</span>
109
</div>
1110
<div className="relative mt-16 rounded-xl border-4 border-[#24D1DC]">
12-
{/* Blur behind image */}
13-
<div className="absolute top-1/2 left-1/2 h-[25rem] w-[50rem] -translate-y-1/2 -translate-x-1/2 bg-[#2A468E] blur-[140px]"></div>
14-
{/* Image */}
11+
<div className="absolute top-1/2 left-1/2 -z-10 h-[25rem] w-[50rem] -translate-y-1/2 -translate-x-1/2 bg-[#2A468E] blur-[140px]"></div>
1512
<div className="overflow-hidden rounded-xl">
16-
<Image src={actionGif} />
13+
<Image
14+
width={600}
15+
height={373}
16+
objectFit="cover"
17+
src="https://res.cloudinary.com/didkcszrq/image/upload/v1645167017/action_pgrajw.gif"
18+
alt="React and Next.js snippets in action"
19+
className="z-10"
20+
/>
1721
</div>
1822
</div>
1923
</div>

web/components/Hero.tsx

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,24 @@ export default function Hero() {
1818
Use our VSCode and Jetbrains snippets extension
1919
</div>
2020
<div className="mt-8 grid grid-cols-1 gap-5 md:grid-cols-2">
21-
<Link href="#">
22-
<a className="w-48 rounded-md bg-gradient-to-r from-[#000A67] to-[#004E92] py-3 text-xl">
23-
Get started
24-
</a>
25-
</Link>
26-
<Link href="#">
27-
<a className="w-48 rounded-md bg-gradient-to-r from-[#232526] to-[#313334] py-3 text-xl">
28-
View GitHub
29-
</a>
30-
</Link>
21+
<a
22+
href="https://marketplace.visualstudio.com/items?itemName=AvneeshAgarwal.react-nextjs-snippets"
23+
target="_blank"
24+
rel="noopener noreferrer"
25+
className="w-48 rounded-md bg-gradient-to-r from-[#000A67] to-[#004E92] py-3 text-xl"
26+
>
27+
Get started
28+
</a>
29+
<a
30+
href="https://github.com/avneesh0612/react-nextjs-snippets"
31+
target="_blank"
32+
rel="noopener noreferrer"
33+
className="w-48 rounded-md bg-gradient-to-r from-[#232526] to-[#313334] py-3 text-xl"
34+
>
35+
View GitHub
36+
</a>
3137
</div>
3238
</div>
3339
</div>
3440
)
35-
}
41+
}

0 commit comments

Comments
 (0)