generated from dillionverma/portfolio
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: navbar optimization, support for multiple languages, removal of…
… blog, formatting code and others
- Loading branch information
1 parent
f2ad8d4
commit 18346c0
Showing
59 changed files
with
7,177 additions
and
3,679 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# next.js | ||
.next | ||
next-env.d.ts | ||
next.config.js | ||
|
||
# lockfiles | ||
package-lock.json | ||
pnpm-lock.yaml | ||
|
||
# dependencies | ||
node_modules | ||
|
||
# tailwind | ||
tailwind.config.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/** @type {import("eslint").Linter.Config} */ | ||
const config = { | ||
parser: "@typescript-eslint/parser", | ||
parserOptions: { | ||
project: true, | ||
}, | ||
// @ts-ignore | ||
plugins: ["@typescript-eslint"], | ||
extends: [ | ||
"next/core-web-vitals", | ||
"plugin:@typescript-eslint/recommended-type-checked", | ||
"plugin:@typescript-eslint/stylistic-type-checked", | ||
], | ||
rules: { | ||
// JavaScript rules | ||
"prefer-const": "error", | ||
// TypeScript rules | ||
"@typescript-eslint/array-type": "off", | ||
"@typescript-eslint/consistent-type-definitions": "off", | ||
"@typescript-eslint/consistent-type-imports": [ | ||
"warn", | ||
{ | ||
prefer: "type-imports", | ||
fixStyle: "inline-type-imports", | ||
}, | ||
], | ||
"@typescript-eslint/no-unused-vars": [ | ||
"warn", | ||
{ | ||
argsIgnorePattern: "^_", | ||
}, | ||
], | ||
"@typescript-eslint/require-await": "off", | ||
"@typescript-eslint/no-misused-promises": [ | ||
"error", | ||
{ | ||
checksVoidReturn: { | ||
attributes: false, | ||
}, | ||
}, | ||
], | ||
// React rules | ||
"react/self-closing-comp": ["error"], | ||
}, | ||
} | ||
module.exports = config |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pnpm lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# next.js | ||
.next | ||
next-env.d.ts | ||
next.config.js | ||
|
||
# lockfiles | ||
package-lock.json | ||
pnpm-lock.yaml | ||
|
||
# dependencies | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"i18n-ally.localesPaths": ["messages"], | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": "explicit", | ||
"source.organizeImports": "always" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/** @type {import("eslint").Linter.Config} */ | ||
const config = { | ||
parser: "@typescript-eslint/parser", | ||
parserOptions: { | ||
project: true, | ||
}, | ||
// @ts-ignore | ||
plugins: ["@typescript-eslint"], | ||
extends: [ | ||
"next/core-web-vitals", | ||
"plugin:@typescript-eslint/recommended-type-checked", | ||
"plugin:@typescript-eslint/stylistic-type-checked", | ||
], | ||
rules: { | ||
// JavaScript rules | ||
"prefer-const": "error", | ||
// TypeScript rules | ||
"@typescript-eslint/array-type": "off", | ||
"@typescript-eslint/consistent-type-definitions": "off", | ||
"@typescript-eslint/consistent-type-imports": [ | ||
"warn", | ||
{ | ||
prefer: "type-imports", | ||
fixStyle: "inline-type-imports", | ||
}, | ||
], | ||
"@typescript-eslint/no-unused-vars": [ | ||
"warn", | ||
{ | ||
argsIgnorePattern: "^_", | ||
}, | ||
], | ||
"@typescript-eslint/require-await": "off", | ||
"@typescript-eslint/no-misused-promises": [ | ||
"error", | ||
{ | ||
checksVoidReturn: { | ||
attributes: false, | ||
}, | ||
}, | ||
], | ||
// React rules | ||
"react/self-closing-comp": ["error"], | ||
}, | ||
} | ||
|
||
module.exports = config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"hi": "Hi, I'm", | ||
"about": "About", | ||
"work": "Work Experience", | ||
"present": "Present", | ||
"education": "Education", | ||
"contact": "Contact", | ||
"skills": "skills", | ||
"projects": "Projects", | ||
"check-my-work": "Check out my latest work", | ||
"my-work-description": "I've worked on a variety of projects, from simple websites to complex web applications. Here are a few of my favorites.", | ||
"awesome": "Awesome", | ||
"building-things": "I like building things", | ||
"have-done": "These are some of the things I have done", | ||
"data-from": "Data recorded by", | ||
"places-i-visited": "Places I have visited", | ||
"travel": "Travel", | ||
"get-in-touch": "Get in touch", | ||
"want-to-chat": "Want to chat?", | ||
"shoot-me": "Just shoot me a dm", | ||
"direct-twitter": "with a direct question on twitter", | ||
"will-respond": "and I'll respond whenever I can.", | ||
"language": "Toggle Language", | ||
"light": "Light Mode", | ||
"dark": "Dark Mode" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"hi": "Hi, 我是", | ||
"about": "关于我", | ||
"work": "工作经历", | ||
"present": "至今", | ||
"education": "教育背景", | ||
"contact": "联系方式", | ||
"skills": "我的技能", | ||
"projects": "我的项目", | ||
"check-my-work": "我做过的项目", | ||
"my-work-description": "我参与过各种项目,从简单的网站到复杂的 Web 应用程序", | ||
"awesome": "很酷的事情", | ||
"building-things": "一些有趣的事情", | ||
"have-done": "好看的皮囊千篇一律,有趣的灵魂万里挑一", | ||
"data-from": "数据来源于", | ||
"places-i-visited": "我去过的地方", | ||
"travel": "旅行", | ||
"get-in-touch": "交个朋友", | ||
"want-to-chat": "想聊天", | ||
"shoot-me": "直接给我发私信", | ||
"direct-twitter": "在 Twitter 上", | ||
"will-respond": "我会及时回复", | ||
"language": " 切换语言", | ||
"light": "浅色模式", | ||
"dark": "深色模式" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,29 @@ | ||
/** @type {import('next').NextConfig} */ | ||
import createNextIntlPlugin from "next-intl/plugin" | ||
|
||
const withNextIntl = createNextIntlPlugin() | ||
|
||
/** @type {import("next").NextConfig} */ | ||
const nextConfig = { | ||
reactStrictMode: true, | ||
}; | ||
// https://react-svgr.com/docs/next/ | ||
// https://github.com/vercel/next.js/issues/48177#issuecomment-1506251112 | ||
webpack(config) { | ||
config.module.rules.push({ | ||
test: /\.svg$/i, | ||
use: ["@svgr/webpack"], | ||
}) | ||
return config | ||
}, | ||
experimental: { | ||
turbo: { | ||
rules: { | ||
"*.svg": { | ||
loaders: ["@svgr/webpack"], | ||
as: "*.js", | ||
}, | ||
}, | ||
}, | ||
}, | ||
} | ||
|
||
export default nextConfig; | ||
export default withNextIntl(nextConfig) |
Oops, something went wrong.