15 changed files with 3747 additions and 0 deletions
@ -0,0 +1,24 @@ |
|||
# Logs |
|||
logs |
|||
*.log |
|||
npm-debug.log* |
|||
yarn-debug.log* |
|||
yarn-error.log* |
|||
pnpm-debug.log* |
|||
lerna-debug.log* |
|||
|
|||
node_modules |
|||
dist |
|||
dist-ssr |
|||
*.local |
|||
|
|||
# Editor directories and files |
|||
.vscode/* |
|||
!.vscode/extensions.json |
|||
.idea |
|||
.DS_Store |
|||
*.suo |
|||
*.ntvs* |
|||
*.njsproj |
|||
*.sln |
|||
*.sw? |
|||
@ -0,0 +1,16 @@ |
|||
# React + Vite |
|||
|
|||
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules. |
|||
|
|||
Currently, two official plugins are available: |
|||
|
|||
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) (or [oxc](https://oxc.rs) when used in [rolldown-vite](https://vite.dev/guide/rolldown)) for Fast Refresh |
|||
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh |
|||
|
|||
## React Compiler |
|||
|
|||
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation). |
|||
|
|||
## Expanding the ESLint configuration |
|||
|
|||
If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the [TS template](https://github.com/vitejs/vite/tree/main/packages/create-vite/template-react-ts) for information on how to integrate TypeScript and [`typescript-eslint`](https://typescript-eslint.io) in your project. |
|||
@ -0,0 +1,29 @@ |
|||
import js from '@eslint/js' |
|||
import globals from 'globals' |
|||
import reactHooks from 'eslint-plugin-react-hooks' |
|||
import reactRefresh from 'eslint-plugin-react-refresh' |
|||
import { defineConfig, globalIgnores } from 'eslint/config' |
|||
|
|||
export default defineConfig([ |
|||
globalIgnores(['dist']), |
|||
{ |
|||
files: ['**/*.{js,jsx}'], |
|||
extends: [ |
|||
js.configs.recommended, |
|||
reactHooks.configs.flat.recommended, |
|||
reactRefresh.configs.vite, |
|||
], |
|||
languageOptions: { |
|||
ecmaVersion: 2020, |
|||
globals: globals.browser, |
|||
parserOptions: { |
|||
ecmaVersion: 'latest', |
|||
ecmaFeatures: { jsx: true }, |
|||
sourceType: 'module', |
|||
}, |
|||
}, |
|||
rules: { |
|||
'no-unused-vars': ['error', { varsIgnorePattern: '^[A-Z_]' }], |
|||
}, |
|||
}, |
|||
]) |
|||
@ -0,0 +1,14 @@ |
|||
<!doctype html> |
|||
<html lang="en"> |
|||
<head> |
|||
<meta charset="UTF-8" /> |
|||
<link rel="icon" type="image/svg+xml" href="/vite.svg" /> |
|||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
|||
<title>frontend</title> |
|||
<link rel="stylesheet" href="./src/index.css"> |
|||
</head> |
|||
<body> |
|||
<div id="root"></div> |
|||
<script type="module" src="/src/main.jsx"></script> |
|||
</body> |
|||
</html> |
|||
File diff suppressed because it is too large
@ -0,0 +1,29 @@ |
|||
{ |
|||
"name": "frontend", |
|||
"private": true, |
|||
"version": "0.0.0", |
|||
"type": "module", |
|||
"scripts": { |
|||
"dev": "vite --host", |
|||
"build": "vite build", |
|||
"lint": "eslint .", |
|||
"preview": "vite preview" |
|||
}, |
|||
"dependencies": { |
|||
"@tailwindcss/vite": "^4.1.17", |
|||
"react": "^19.2.0", |
|||
"react-dom": "^19.2.0", |
|||
"tailwindcss": "^4.1.17" |
|||
}, |
|||
"devDependencies": { |
|||
"@eslint/js": "^9.39.1", |
|||
"@types/react": "^19.2.5", |
|||
"@types/react-dom": "^19.2.3", |
|||
"@vitejs/plugin-react": "^5.1.1", |
|||
"eslint": "^9.39.1", |
|||
"eslint-plugin-react-hooks": "^7.0.1", |
|||
"eslint-plugin-react-refresh": "^0.4.24", |
|||
"globals": "^16.5.0", |
|||
"vite": "^7.2.4" |
|||
} |
|||
} |
|||
|
After Width: | Height: | Size: 1.5 KiB |
@ -0,0 +1,42 @@ |
|||
#root { |
|||
max-width: 1280px; |
|||
margin: 0 auto; |
|||
padding: 2rem; |
|||
text-align: center; |
|||
} |
|||
|
|||
.logo { |
|||
height: 6em; |
|||
padding: 1.5em; |
|||
will-change: filter; |
|||
transition: filter 300ms; |
|||
} |
|||
.logo:hover { |
|||
filter: drop-shadow(0 0 2em #646cffaa); |
|||
} |
|||
.logo.react:hover { |
|||
filter: drop-shadow(0 0 2em #61dafbaa); |
|||
} |
|||
|
|||
@keyframes logo-spin { |
|||
from { |
|||
transform: rotate(0deg); |
|||
} |
|||
to { |
|||
transform: rotate(360deg); |
|||
} |
|||
} |
|||
|
|||
@media (prefers-reduced-motion: no-preference) { |
|||
a:nth-of-type(2) .logo { |
|||
animation: logo-spin infinite 20s linear; |
|||
} |
|||
} |
|||
|
|||
.card { |
|||
padding: 2em; |
|||
} |
|||
|
|||
.read-the-docs { |
|||
color: #888; |
|||
} |
|||
@ -0,0 +1,12 @@ |
|||
import { useState } from 'react' |
|||
import Register from './pages/register.jsx' |
|||
|
|||
function App() { |
|||
const [count, setCount] = useState(0) |
|||
|
|||
return ( |
|||
<Register/> |
|||
) |
|||
} |
|||
|
|||
export default App |
|||
|
After Width: | Height: | Size: 4.0 KiB |
|
After Width: | Height: | Size: 464 B |
@ -0,0 +1,131 @@ |
|||
@import "tailwindcss"; |
|||
|
|||
@font-face { |
|||
font-family: 'Inter'; |
|||
font-style: italic; |
|||
font-weight: 100 900; |
|||
font-display: swap; |
|||
src: url(https://fonts.gstatic.com/s/inter/v20/UcCm3FwrK3iLTcvnUwkT9nA2.woff2) format('woff2'); |
|||
unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; |
|||
} |
|||
/* cyrillic */ |
|||
@font-face { |
|||
font-family: 'Inter'; |
|||
font-style: italic; |
|||
font-weight: 100 900; |
|||
font-display: swap; |
|||
src: url(https://fonts.gstatic.com/s/inter/v20/UcCm3FwrK3iLTcvnUwAT9nA2.woff2) format('woff2'); |
|||
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; |
|||
} |
|||
/* greek-ext */ |
|||
@font-face { |
|||
font-family: 'Inter'; |
|||
font-style: italic; |
|||
font-weight: 100 900; |
|||
font-display: swap; |
|||
src: url(https://fonts.gstatic.com/s/inter/v20/UcCm3FwrK3iLTcvnUwgT9nA2.woff2) format('woff2'); |
|||
unicode-range: U+1F00-1FFF; |
|||
} |
|||
/* greek */ |
|||
@font-face { |
|||
font-family: 'Inter'; |
|||
font-style: italic; |
|||
font-weight: 100 900; |
|||
font-display: swap; |
|||
src: url(https://fonts.gstatic.com/s/inter/v20/UcCm3FwrK3iLTcvnUwcT9nA2.woff2) format('woff2'); |
|||
unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; |
|||
} |
|||
/* vietnamese */ |
|||
@font-face { |
|||
font-family: 'Inter'; |
|||
font-style: italic; |
|||
font-weight: 100 900; |
|||
font-display: swap; |
|||
src: url(https://fonts.gstatic.com/s/inter/v20/UcCm3FwrK3iLTcvnUwsT9nA2.woff2) format('woff2'); |
|||
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; |
|||
} |
|||
/* latin-ext */ |
|||
@font-face { |
|||
font-family: 'Inter'; |
|||
font-style: italic; |
|||
font-weight: 100 900; |
|||
font-display: swap; |
|||
src: url(https://fonts.gstatic.com/s/inter/v20/UcCm3FwrK3iLTcvnUwoT9nA2.woff2) format('woff2'); |
|||
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; |
|||
} |
|||
/* latin */ |
|||
@font-face { |
|||
font-family: 'Inter'; |
|||
font-style: italic; |
|||
font-weight: 100 900; |
|||
font-display: swap; |
|||
src: url(https://fonts.gstatic.com/s/inter/v20/UcCm3FwrK3iLTcvnUwQT9g.woff2) format('woff2'); |
|||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; |
|||
} |
|||
/* cyrillic-ext */ |
|||
@font-face { |
|||
font-family: 'Inter'; |
|||
font-style: normal; |
|||
font-weight: 100 900; |
|||
font-display: swap; |
|||
src: url(https://fonts.gstatic.com/s/inter/v20/UcCo3FwrK3iLTcvvYwYL8g.woff2) format('woff2'); |
|||
unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; |
|||
} |
|||
/* cyrillic */ |
|||
@font-face { |
|||
font-family: 'Inter'; |
|||
font-style: normal; |
|||
font-weight: 100 900; |
|||
font-display: swap; |
|||
src: url(https://fonts.gstatic.com/s/inter/v20/UcCo3FwrK3iLTcvmYwYL8g.woff2) format('woff2'); |
|||
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; |
|||
} |
|||
/* greek-ext */ |
|||
@font-face { |
|||
font-family: 'Inter'; |
|||
font-style: normal; |
|||
font-weight: 100 900; |
|||
font-display: swap; |
|||
src: url(https://fonts.gstatic.com/s/inter/v20/UcCo3FwrK3iLTcvuYwYL8g.woff2) format('woff2'); |
|||
unicode-range: U+1F00-1FFF; |
|||
} |
|||
/* greek */ |
|||
@font-face { |
|||
font-family: 'Inter'; |
|||
font-style: normal; |
|||
font-weight: 100 900; |
|||
font-display: swap; |
|||
src: url(https://fonts.gstatic.com/s/inter/v20/UcCo3FwrK3iLTcvhYwYL8g.woff2) format('woff2'); |
|||
unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; |
|||
} |
|||
/* vietnamese */ |
|||
@font-face { |
|||
font-family: 'Inter'; |
|||
font-style: normal; |
|||
font-weight: 100 900; |
|||
font-display: swap; |
|||
src: url(https://fonts.gstatic.com/s/inter/v20/UcCo3FwrK3iLTcvtYwYL8g.woff2) format('woff2'); |
|||
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; |
|||
} |
|||
/* latin-ext */ |
|||
@font-face { |
|||
font-family: 'Inter'; |
|||
font-style: normal; |
|||
font-weight: 100 900; |
|||
font-display: swap; |
|||
src: url(https://fonts.gstatic.com/s/inter/v20/UcCo3FwrK3iLTcvsYwYL8g.woff2) format('woff2'); |
|||
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; |
|||
} |
|||
/* latin */ |
|||
@font-face { |
|||
font-family: 'Inter'; |
|||
font-style: normal; |
|||
font-weight: 100 900; |
|||
font-display: swap; |
|||
src: url(https://fonts.gstatic.com/s/inter/v20/UcCo3FwrK3iLTcviYwY.woff2) format('woff2'); |
|||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; |
|||
} |
|||
|
|||
@theme { |
|||
--font-inter: Inter; |
|||
} |
|||
@ -0,0 +1,9 @@ |
|||
import { StrictMode } from 'react' |
|||
import { createRoot } from 'react-dom/client' |
|||
import App from './App.jsx' |
|||
|
|||
createRoot(document.getElementById('root')).render( |
|||
<StrictMode> |
|||
<App /> |
|||
</StrictMode>, |
|||
) |
|||
@ -0,0 +1,36 @@ |
|||
export default function Register() { |
|||
|
|||
return ( |
|||
<main className="bg-[#202342] px-4 py-14 flex items-end h-screen" > |
|||
<div className="w-full"> |
|||
<h1 className="text-[32px] font-inter font-bold text-white mb-6">Sign up</h1> |
|||
|
|||
<div className="mb-6"> |
|||
<p className="text-sm text-white mb-2 ml-4">Username</p> |
|||
<input className="h-14 bg-[#4D4F68] w-full rounded-sm text-white px-4 focus:outline-none" type="text"/> |
|||
</div> |
|||
|
|||
<div className="mb-6"> |
|||
<p className="text-sm text-white mb-2 ml-4">Email</p> |
|||
<input className="h-14 bg-[#4D4F68] w-full rounded-sm text-white px-4 focus:outline-none" type="email"/> |
|||
</div> |
|||
|
|||
<div className="mb-6"> |
|||
<p className="text-sm text-white mb-2 ml-4">Password</p> |
|||
<div className="h-14 bg-[#4D4F68] w-full rounded-sm flex items-center px-4 "> |
|||
<input type="password" name="" id="" className="flex-1 text-white focus:outline-none"/> |
|||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> |
|||
<path d="M12 19C19.63 19 21.93 12.38 21.95 12.32C22.02 12.11 22.02 11.89 21.95 11.69C21.93 11.62 19.63 5.00999 12 5.00999C4.37 5.00999 2.07 11.62 2.05 11.68C1.98 11.89 1.98 12.11 2.05 12.31C2.07 12.38 4.37 18.99 12 18.99V19ZM12 8.99999C13.64 8.99999 15 10.36 15 12C15 13.64 13.64 15 12 15C10.36 15 9 13.64 9 12C9 10.36 10.36 8.99999 12 8.99999Z" fill="white"/> |
|||
</svg> |
|||
</div> |
|||
</div> |
|||
|
|||
<button className="bg-[#42CC7E] w-full rounded-sm text-[#202342] flex items-center justify-center h-14" > |
|||
<p className="font-semibold">Sign up</p> |
|||
</button> |
|||
</div> |
|||
|
|||
</main> |
|||
) |
|||
|
|||
} |
|||
@ -0,0 +1,11 @@ |
|||
import { defineConfig } from 'vite' |
|||
import react from '@vitejs/plugin-react' |
|||
import tailwindcss from '@tailwindcss/vite' |
|||
|
|||
// https://vite.dev/config/
|
|||
export default defineConfig({ |
|||
plugins: [ |
|||
react(), |
|||
tailwindcss(), |
|||
], |
|||
}) |
|||
Loading…
Reference in new issue