├── .gitignore ├── README.md ├── package-lock.json ├── package.json ├── public ├── favicon.ico ├── index.html ├── login.png ├── logo192.png ├── logo512.png ├── manifest.json └── robots.txt └── src ├── App.css ├── App.js ├── App.test.js ├── components ├── LoginPage.css └── LoginPage.js ├── index.css ├── index.js ├── logo.svg ├── reportWebVitals.js └── setupTests.js /.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # production 12 | /build 13 | 14 | # misc 15 | .DS_Store 16 | .env.local 17 | .env.development.local 18 | .env.test.local 19 | .env.production.local 20 | 21 | npm-debug.log* 22 | yarn-debug.log* 23 | yarn-error.log* 24 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Getting Started with Create React App 2 | 3 | This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). 4 | 5 | ## Available Scripts 6 | 7 | In the project directory, you can run: 8 | 9 | ### `npm start` 10 | 11 | Runs the app in the development mode.\ 12 | Open [http://localhost:3000](http://localhost:3000) to view it in your browser. 13 | 14 | The page will reload when you make changes.\ 15 | You may also see any lint errors in the console. 16 | 17 | ### `npm test` 18 | 19 | Launches the test runner in the interactive watch mode.\ 20 | See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. 21 | 22 | ### `npm run build` 23 | 24 | Builds the app for production to the `build` folder.\ 25 | It correctly bundles React in production mode and optimizes the build for the best performance. 26 | 27 | The build is minified and the filenames include the hashes.\ 28 | Your app is ready to be deployed! 29 | 30 | See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. 31 | 32 | ### `npm run eject` 33 | 34 | **Note: this is a one-way operation. Once you `eject`, you can't go back!** 35 | 36 | If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. 37 | 38 | Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own. 39 | 40 | You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it. 41 | 42 | ## Learn More 43 | 44 | You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). 45 | 46 | To learn React, check out the [React documentation](https://reactjs.org/). 47 | 48 | ### Code Splitting 49 | 50 | This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting) 51 | 52 | ### Analyzing the Bundle Size 53 | 54 | This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size) 55 | 56 | ### Making a Progressive Web App 57 | 58 | This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app) 59 | 60 | ### Advanced Configuration 61 | 62 | This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration) 63 | 64 | ### Deployment 65 | 66 | This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment) 67 | 68 | ### `npm run build` fails to minify 69 | 70 | This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify) 71 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "advmasters-login", 3 | "version": "0.1.0", 4 | "private": true, 5 | "dependencies": { 6 | "@testing-library/dom": "^10.4.0", 7 | "@testing-library/jest-dom": "^6.6.3", 8 | "@testing-library/react": "^16.3.0", 9 | "@testing-library/user-event": "^13.5.0", 10 | "react": "^19.1.0", 11 | "react-dom": "^19.1.0", 12 | "react-scripts": "5.0.1", 13 | "web-vitals": "^2.1.4" 14 | }, 15 | "scripts": { 16 | "start": "react-scripts start", 17 | "build": "react-scripts build", 18 | "test": "react-scripts test", 19 | "eject": "react-scripts eject" 20 | }, 21 | "eslintConfig": { 22 | "extends": [ 23 | "react-app", 24 | "react-app/jest" 25 | ] 26 | }, 27 | "browserslist": { 28 | "production": [ 29 | ">0.2%", 30 | "not dead", 31 | "not op_mini all" 32 | ], 33 | "development": [ 34 | "last 1 chrome version", 35 | "last 1 firefox version", 36 | "last 1 safari version" 37 | ] 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/senkoc1201/React-project/d501181ac805d2259ae29947b2fa314673e9b240/public/favicon.ico -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 12 | 13 | 17 | 18 | 27 | React App 28 | 29 | 30 | 31 |
32 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /public/login.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/senkoc1201/React-project/d501181ac805d2259ae29947b2fa314673e9b240/public/login.png -------------------------------------------------------------------------------- /public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/senkoc1201/React-project/d501181ac805d2259ae29947b2fa314673e9b240/public/logo192.png -------------------------------------------------------------------------------- /public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/senkoc1201/React-project/d501181ac805d2259ae29947b2fa314673e9b240/public/logo512.png -------------------------------------------------------------------------------- /public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "short_name": "React App", 3 | "name": "Create React App Sample", 4 | "icons": [ 5 | { 6 | "src": "favicon.ico", 7 | "sizes": "64x64 32x32 24x24 16x16", 8 | "type": "image/x-icon" 9 | }, 10 | { 11 | "src": "logo192.png", 12 | "type": "image/png", 13 | "sizes": "192x192" 14 | }, 15 | { 16 | "src": "logo512.png", 17 | "type": "image/png", 18 | "sizes": "512x512" 19 | } 20 | ], 21 | "start_url": ".", 22 | "display": "standalone", 23 | "theme_color": "#000000", 24 | "background_color": "#ffffff" 25 | } 26 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | Disallow: 4 | -------------------------------------------------------------------------------- /src/App.css: -------------------------------------------------------------------------------- 1 | /* Reset default styles */ 2 | * { 3 | margin: 0; 4 | padding: 0; 5 | box-sizing: border-box; 6 | } 7 | 8 | body { 9 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; 10 | } 11 | 12 | .App { 13 | text-align: center; 14 | } 15 | 16 | .App-logo { 17 | height: 40vmin; 18 | pointer-events: none; 19 | } 20 | 21 | @media (prefers-reduced-motion: no-preference) { 22 | .App-logo { 23 | animation: App-logo-spin infinite 20s linear; 24 | } 25 | } 26 | 27 | .App-header { 28 | background-color: #282c34; 29 | min-height: 100vh; 30 | display: flex; 31 | flex-direction: column; 32 | align-items: center; 33 | justify-content: center; 34 | font-size: calc(10px + 2vmin); 35 | color: white; 36 | } 37 | 38 | .App-link { 39 | color: #61dafb; 40 | } 41 | 42 | @keyframes App-logo-spin { 43 | from { 44 | transform: rotate(0deg); 45 | } 46 | to { 47 | transform: rotate(360deg); 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /src/App.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import LoginPage from './components/LoginPage'; 3 | import './App.css'; 4 | 5 | function App() { 6 | return ( 7 | 8 | ); 9 | } 10 | 11 | export default App; 12 | -------------------------------------------------------------------------------- /src/App.test.js: -------------------------------------------------------------------------------- 1 | import { render, screen } from '@testing-library/react'; 2 | import App from './App'; 3 | 4 | test('renders learn react link', () => { 5 | render(); 6 | const linkElement = screen.getByText(/learn react/i); 7 | expect(linkElement).toBeInTheDocument(); 8 | }); 9 | -------------------------------------------------------------------------------- /src/components/LoginPage.css: -------------------------------------------------------------------------------- 1 | /* Main container */ 2 | .login-container { 3 | min-height: 100vh; 4 | display: flex; 5 | flex-direction: column; 6 | background-color: #f8f9fa; 7 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; 8 | margin: 0 auto; 9 | padding: 0 20px; 10 | } 11 | 12 | /* Header */ 13 | .header { 14 | padding: 20px 40px; 15 | border-bottom: 1px solid #e5e7eb; 16 | } 17 | 18 | .logo { 19 | color: #0066cc; 20 | font-size: 24px; 21 | font-weight: 600; 22 | margin: 0; 23 | text-decoration: none; 24 | } 25 | 26 | /* Content */ 27 | .content { 28 | flex: 1; 29 | display: flex; 30 | align-items: center; 31 | justify-content: center; 32 | padding: 40px; 33 | gap: 80px; 34 | max-width: 1200px; 35 | margin: 0 auto; 36 | width: 100%; 37 | min-height: calc(100vh - 140px); /* Account for header and footer */ 38 | } 39 | 40 | /* Illustration */ 41 | .illustration-container { 42 | flex: 1; 43 | max-width: 480px; 44 | width: 120%; 45 | height: 600px; /* Fixed height to match form */ 46 | display: flex; 47 | justify-content: center; 48 | align-items: center; 49 | } 50 | 51 | 52 | /* Form Container */ 53 | .form-container { 54 | flex: 1; 55 | max-width: 480px; 56 | width: 100%; 57 | height: 600px; /* Fixed height to match illustration */ 58 | } 59 | 60 | .form-box { 61 | background: white; 62 | padding: 40px; 63 | border-radius: 16px; 64 | box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05); 65 | height: 100%; 66 | display: flex; 67 | flex-direction: column; 68 | justify-content: center; 69 | } 70 | 71 | /* Form Header */ 72 | .form-header { 73 | text-align: center; 74 | margin-bottom: 32px; 75 | } 76 | 77 | .icon-container { 78 | width: 48px; 79 | height: 48px; 80 | background: #f3e8ff; 81 | border-radius: 12px; 82 | display: flex; 83 | align-items: center; 84 | justify-content: center; 85 | margin: 0 auto 24px; 86 | } 87 | 88 | .user-icon { 89 | width: 24px; 90 | height: 24px; 91 | background-color: #9333ea; 92 | mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E") center/contain no-repeat; 93 | } 94 | 95 | .form-header h2 { 96 | font-size: 24px; 97 | color: #111827; 98 | margin: 0 0 12px; 99 | } 100 | 101 | .form-header p { 102 | color: #6b7280; 103 | font-size: 14px; 104 | margin: 0; 105 | line-height: 1.5; 106 | } 107 | 108 | /* Form Groups */ 109 | .form-group { 110 | margin-bottom: 24px; 111 | } 112 | 113 | .form-group label { 114 | display: block; 115 | color: #374151; 116 | font-size: 14px; 117 | margin-bottom: 8px; 118 | } 119 | 120 | .form-group input { 121 | width: 100%; 122 | padding: 12px 16px; 123 | border: 1px solid #e5e7eb; 124 | border-radius: 8px; 125 | font-size: 14px; 126 | color: #111827; 127 | transition: border-color 0.2s; 128 | } 129 | 130 | .form-group input:focus { 131 | outline: none; 132 | border-color: #9333ea; 133 | } 134 | 135 | /* Password Input */ 136 | .password-input { 137 | position: relative; 138 | } 139 | 140 | .eye-button { 141 | position: absolute; 142 | right: 16px; 143 | top: 50%; 144 | transform: translateY(-50%); 145 | background: none; 146 | border: none; 147 | padding: 0; 148 | cursor: pointer; 149 | } 150 | 151 | .eye-icon { 152 | display: block; 153 | width: 20px; 154 | height: 20px; 155 | background-color: #9ca3af; 156 | mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z'/%3E%3C/svg%3E") center/contain no-repeat; 157 | transition: background-color 0.2s; 158 | } 159 | 160 | .eye-icon.visible { 161 | mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z'/%3E%3C/svg%3E") center/contain no-repeat; 162 | } 163 | 164 | .eye-button:hover .eye-icon { 165 | background-color: #6b7280; 166 | } 167 | 168 | /* Form Options */ 169 | .form-options { 170 | display: flex; 171 | justify-content: space-between; 172 | align-items: center; 173 | margin-bottom: 24px; 174 | } 175 | 176 | .remember-me { 177 | display: flex; 178 | align-items: center; 179 | gap: 8px; 180 | color: #374151; 181 | font-size: 14px; 182 | cursor: pointer; 183 | } 184 | 185 | .remember-me input[type="checkbox"] { 186 | width: 16px; 187 | height: 16px; 188 | border: 1px solid #e5e7eb; 189 | border-radius: 4px; 190 | cursor: pointer; 191 | } 192 | 193 | .forgot-password { 194 | color: #9333ea; 195 | font-size: 14px; 196 | text-decoration: none; 197 | } 198 | 199 | /* Login Button */ 200 | .login-button { 201 | width: 100%; 202 | padding: 12px; 203 | background: #9333ea; 204 | color: white; 205 | border: none; 206 | border-radius: 8px; 207 | font-size: 16px; 208 | font-weight: 500; 209 | cursor: pointer; 210 | transition: background-color 0.2s; 211 | } 212 | 213 | .login-button:hover { 214 | background: #7e22ce; 215 | } 216 | 217 | /* Sign Up Prompt */ 218 | .signup-prompt { 219 | text-align: center; 220 | margin-top: 24px; 221 | font-size: 14px; 222 | color: #6b7280; 223 | } 224 | 225 | .signup-link { 226 | color: #9333ea; 227 | text-decoration: none; 228 | font-weight: 500; 229 | } 230 | 231 | /* Footer */ 232 | .footer { 233 | text-align: center; 234 | padding: 20px; 235 | color: #6b7280; 236 | font-size: 14px; 237 | } 238 | 239 | /* Responsive Design */ 240 | @media (max-width: 1024px) { 241 | .content { 242 | flex-direction: column; 243 | gap: 40px; 244 | } 245 | 246 | .illustration-container { 247 | max-width: 400px; 248 | } 249 | } 250 | 251 | @media (max-width: 640px) { 252 | .header { 253 | padding: 20px; 254 | } 255 | 256 | .content { 257 | padding: 20px; 258 | } 259 | 260 | .form-box { 261 | padding: 24px; 262 | } 263 | 264 | .illustration-container { 265 | display: none; 266 | } 267 | } -------------------------------------------------------------------------------- /src/components/LoginPage.js: -------------------------------------------------------------------------------- 1 | import React, { useState } from 'react'; 2 | import './LoginPage.css'; 3 | 4 | function LoginPage() { 5 | const [formData, setFormData] = useState({ 6 | email: '', 7 | password: '', 8 | rememberMe: false 9 | }); 10 | const [showPassword, setShowPassword] = useState(false); 11 | 12 | const handleInputChange = (e) => { 13 | const { name, value, type, checked } = e.target; 14 | setFormData(prev => ({ 15 | ...prev, 16 | [name]: type === 'checkbox' ? checked : value 17 | })); 18 | }; 19 | 20 | 21 | const handleSubmit = (e) => { 22 | e.preventDefault(); 23 | console.log('Form submitted:', formData); 24 | }; 25 | 26 | 27 | 28 | return ( 29 |
30 |
31 |

Advmasters I.A.

32 |
33 | 34 |
35 |
36 | Login illustration 37 |
38 | 39 |
40 |
41 |
42 |
43 |
44 |
45 |

Login Your Account

46 |

Please input your information in the fields below to enter your journey platform.

47 |
48 | 49 |
50 |
51 | 52 | 60 |
61 | 62 |
63 | 64 |
65 | 73 | 80 |
81 |
82 | 83 |
84 | 93 | Forgot Password? 94 |
95 | 96 | 99 |
100 | 101 |
102 | Don't have an account? 103 | Sign up! 104 |
105 |
106 |
107 |
108 | 109 |
110 |

2025 © Advmasters I.A.

111 |
112 |
113 | ); 114 | } 115 | 116 | export default LoginPage; -------------------------------------------------------------------------------- /src/index.css: -------------------------------------------------------------------------------- 1 | body { 2 | margin: 0; 3 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 4 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', 5 | sans-serif; 6 | -webkit-font-smoothing: antialiased; 7 | -moz-osx-font-smoothing: grayscale; 8 | } 9 | 10 | code { 11 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', 12 | monospace; 13 | } 14 | -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom/client'; 3 | import './index.css'; 4 | import App from './App'; 5 | import reportWebVitals from './reportWebVitals'; 6 | 7 | const root = ReactDOM.createRoot(document.getElementById('root')); 8 | root.render( 9 | 10 | 11 | 12 | ); 13 | 14 | // If you want to start measuring performance in your app, pass a function 15 | // to log results (for example: reportWebVitals(console.log)) 16 | // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals 17 | reportWebVitals(); 18 | -------------------------------------------------------------------------------- /src/logo.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/reportWebVitals.js: -------------------------------------------------------------------------------- 1 | const reportWebVitals = onPerfEntry => { 2 | if (onPerfEntry && onPerfEntry instanceof Function) { 3 | import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => { 4 | getCLS(onPerfEntry); 5 | getFID(onPerfEntry); 6 | getFCP(onPerfEntry); 7 | getLCP(onPerfEntry); 8 | getTTFB(onPerfEntry); 9 | }); 10 | } 11 | }; 12 | 13 | export default reportWebVitals; 14 | -------------------------------------------------------------------------------- /src/setupTests.js: -------------------------------------------------------------------------------- 1 | // jest-dom adds custom jest matchers for asserting on DOM nodes. 2 | // allows you to do things like: 3 | // expect(element).toHaveTextContent(/react/i) 4 | // learn more: https://github.com/testing-library/jest-dom 5 | import '@testing-library/jest-dom'; 6 | --------------------------------------------------------------------------------