Skip to content

Commit 588f202

Browse files
committed
transition from EJS to React done
1 parent 23a1103 commit 588f202

67 files changed

Lines changed: 4290 additions & 5694 deletions

Some content is hidden

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

.gitignore

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

Frontend/.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
VITE_BACKEND_EMAIL_URL=http://localhost:3000/api/email

Frontend/.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

Frontend/eslint.config.js

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import js from '@eslint/js'
2+
import globals from 'globals'
3+
import reactHooks from 'eslint-plugin-react-hooks'
4+
import reactRefresh from 'eslint-plugin-react-refresh'
5+
6+
export default [
7+
{ ignores: ['dist'] },
8+
{
9+
files: ['**/*.{js,jsx}'],
10+
languageOptions: {
11+
ecmaVersion: 2020,
12+
globals: globals.browser,
13+
parserOptions: {
14+
ecmaVersion: 'latest',
15+
ecmaFeatures: { jsx: true },
16+
sourceType: 'module',
17+
},
18+
},
19+
plugins: {
20+
'react-hooks': reactHooks,
21+
'react-refresh': reactRefresh,
22+
},
23+
rules: {
24+
...js.configs.recommended.rules,
25+
...reactHooks.configs.recommended.rules,
26+
'no-unused-vars': ['error', { varsIgnorePattern: '^[A-Z_]' }],
27+
'react-refresh/only-export-components': [
28+
'warn',
29+
{ allowConstantExport: true },
30+
],
31+
},
32+
},
33+
]
Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
<!DOCTYPE html>
2-
<html lang="en" class="scroll-smooth">
3-
1+
<!doctype html>
2+
<html lang="en">
43
<head>
54
<link rel="shortcut icon" href="/svg/code.svg" type="image/x-icon">
65
<link rel="preconnect" href="https://fonts.googleapis.com">
@@ -15,21 +14,10 @@
1514
<meta property="og:url" content="https://sunjay.xyz/" />
1615
<meta property="og:type" content="website" />
1716
<title>Sunjay Kumar | Full Stack Developer</title>
18-
<link href="/css/style.css" rel="stylesheet" />
1917
</head>
20-
21-
<body
22-
class="font-[Inter] relative overflow-x-hidden selection:bg-[#3d3d3d] selection:text-gray-50 dark:selection:text-[#3d3d3d] dark:selection:bg-gray-50">
23-
24-
<%- include('partials/toggle') %>
25-
<%- include('partials/home') %>
26-
<%- include('partials/about') %>
27-
<%- include('partials/skills') %>
28-
<%- include('partials/projects') %>
29-
<%- include('partials/achievements') %>
30-
<%- include('partials/contact') %>
31-
<%- include('partials/footer') %>
18+
<body>
19+
<div id="root">
20+
</div>
21+
<script type="module" src="/src/main.jsx"></script>
3222
</body>
33-
<script src="/js/script.js"></script>
34-
<script defer src="https://code.iconify.design/iconify-icon/3.0.0/iconify-icon.min.js"></script>
3523
</html>

0 commit comments

Comments
 (0)