Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4,106 changes: 3,921 additions & 185 deletions package-lock.json

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,19 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@material-ui/core": "^4.12.4",
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
"bootstrap": "^5.3.3",
"font-awesome": "^4.7.0",
"npx": "^10.2.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-redux": "^9.1.2",
"react-router-dom": "^6.23.1",
"react-scripts": "5.0.1",
"redux": "^5.0.1",
"web-vitals": "^2.1.4"
},
"scripts": {
Expand All @@ -34,5 +41,8 @@
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"tailwindcss": "^3.4.4"
}
}
Binary file added public/assets/bg.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/logo-r.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions public/assets/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
41 changes: 3 additions & 38 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -1,38 +1,3 @@
.App {
text-align: center;
}

.App-logo {
height: 40vmin;
pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
.App-logo {
animation: App-logo-spin infinite 20s linear;
}
}

.App-header {
background-color: #282c34;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: calc(10px + 2vmin);
color: white;
}

.App-link {
color: #61dafb;
}

@keyframes App-logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
.navbar-nav a{
font-size: medium;
}
19 changes: 4 additions & 15 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,12 @@
import logo from './logo.svg';
import './App.css';
import Login from './components/Login';

import React from 'react';

function App() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/App.js</code> and save to reload.
</p>
<a
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
</a>
</header>
<Login />
</div>
);
}
Expand Down
144 changes: 144 additions & 0 deletions src/components/Login.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
/* src/LoginPage.css */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600&family=Lato:wght@400&display=swap');

.login-container {
display: flex;
height: 100vh;
}

.left-side {
background-color: #190144;
width: 60%;
display: flex;
justify-content: center;
align-items: center;
}

.center-box {
opacity: 1;
color: rgba(255, 255, 255, 1);
font-family: "Montserrat-SemiBold";
font-size: 28px;
font-weight: 600;
font-style: SemiBold;
letter-spacing: 0.21px;
text-align: left;
text-transform: uppercase;
max-width: 594px;
}

.top-content {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
}

.icon {
font-size: 48px;
margin-bottom: 10px;
}

.ria-text {
font-family: "Montserrat-SemiBold", sans-serif;
font-size: 28px;
font-weight: 600;
color: rgba(255, 255, 255, 1);
text-transform: uppercase;
}

.bottom-content {
font-family: "Montserrat-SemiBold", sans-serif;
font-size: 28px;
font-weight: 600;
color: rgba(255, 255, 255, 1);
text-transform: uppercase;
text-align: center;
line-height: 36px;
}

.right-side {
width: 40%;
display: flex;
justify-content: center;
align-items: center;
}

.login-form {
width: 80%;
max-width: 350px;
display: flex;
flex-direction: column;
}

.login-heading {
margin-bottom: 20px;
font-family: "Montserrat-SemiBold", sans-serif;
font-size: 24px;
font-weight: 600;
font-style: SemiBold;
letter-spacing: 0px;
text-align: left;
line-height: 36px;
color: rgba(0, 0, 0, 0.87);
opacity: 1;
}

.form-group {
margin-bottom: 20px;
}

.form-group label {
margin-bottom: 8px;
display: block;
font-size: 14px;
color: #333;
}

.email {
font-family: "Lato-Regular", sans-serif;
font-size: 16px;
font-weight: 400;
font-style: Regular;
letter-spacing: 0.25px;
text-align: left;
line-height: 24px;
color: rgba(0, 0, 0, 0.87);
opacity: 1;
}

.form-group input {
width: 100%;
padding: 10px;
font-size: 14px;
border: 1px solid #ccc;
border-radius: 4px;
}

.login-button {
background-color: #190144;
color: #fff;
padding: 10px 15px;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
}

.login-button:hover {
background-color: #2a0266;
}

.forgot-password {
margin-top: 10px;
display: block;
text-align: center;
color: #190144;
text-decoration: none;
font-size: 14px;
}

.forgot-password:hover {
text-decoration: underline;
}
33 changes: 33 additions & 0 deletions src/components/Login.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// src/LoginPage.js

import React from 'react';
import './Login.css';

function Login() {
return (
<div className="login-container">
<div className="left-side">
<div className="center-box">
<img src="/assets/logo.svg" class="card-img" alt="..." />
</div>
</div>
<div className="right-side">
<form className="login-form">
<h1 className="login-heading">Login</h1>
<div className="form-group">
<label htmlFor="username" className="email">Email id</label>
<input type="text" id="username" name="username" placeholder="Enter your email id here" />
</div>
<div className="form-group">
<label htmlFor="password">Password</label>
<input type="password" id="password" name="password" placeholder="Enter your password here" />
</div>
<button type="submit" className="login-button">Login</button>
<a href="#" className="forgot-password">Forgot password?</a>
</form>
</div>
</div>
);
}

export default Login;
1 change: 1 addition & 0 deletions src/index.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
Expand Down
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import ReactDOM from 'react-dom/client';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
import '../node_modules/bootstrap/dist/css/bootstrap.min.css';
import '../node_modules/font-awesome/css/font-awesome.min.css';

const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
Expand Down