Skip to content
Snippets Groups Projects
Commit 7e60835c authored by Harjinder Singh's avatar Harjinder Singh
Browse files

changes

parent 748bbda1
No related branches found
No related tags found
No related merge requests found
Showing
with 40000 additions and 2 deletions
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
/node_modules
/.pnp
.pnp.js
# testing
/coverage
# production
/build
# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Percy Project Example
This diff is collapsed.
{
"name": "prudential",
"version": "0.1.0",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "5.14.1",
"@testing-library/react": "11.2.7",
"@testing-library/user-event": "12.8.3",
"axios": "0.21.4",
"crypto": "^1.0.1",
"react": "17.0.2",
"react-bootstrap": "^1.6.3",
"react-dom": "17.0.2",
"react-router-dom": "5.3.0",
"react-scripts": "4.0.3",
"web-vitals": "1.1.2"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"@percy/script": "^1.1.0"
}
}
public/favicon.ico

3.78 KiB

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created using create-react-app"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>
</html>
public/logo192.png

5.22 KiB

public/logo512.png

9.44 KiB

{
"short_name": "React App",
"name": "Create React App Sample",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
# https://www.robotstxt.org/robotstxt.html
User-agent: *
Disallow:
const PercyScript = require('@percy/script');
// A script to navigate our app and take snapshots with Percy.
PercyScript.run(async (page, percySnapshot) => {
await page.goto('http://localhost:3000/login');
await percySnapshot('login Snapshot');
await page.goto('http://localhost:3000/landing');
await percySnapshot('landing snapshot');
// Enter a new to-do.
});
\ No newline at end of file
.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);
}
}
import React, { useState, useEffect } from "react";
import { BrowserRouter as Router, Switch, Route,useHistory } from "react-router-dom";
import LoginPage from "./pages/login/loginPage.js";
import MainPageLanding from "./pages/landing";
export default function App(props) {
const [windowSize, setwindowSize] = useState("");
const handleResize = () => {
setwindowSize(window.innerWidth);
};
useEffect(() => {
window.addEventListener("resize", handleResize);
});
return (
<Router>
{/* A <Switch> looks through its children <Route>s and
renders the first one that matches the current URL. */}
<Switch>
<Route path={"/login"}>
<LoginPage props={props}/>
</Route>
<Route path={"/landing"}>
<MainPageLanding history = {useHistory()} props={props} />
</Route>
</Switch>
</Router>
);
}
import { render, screen } from "@testing-library/react";
import App from "./App";
test("renders learn react link", () => {
render(<App />);
const linkElement = screen.getByText(/learn react/i);
expect(linkElement).toBeInTheDocument();
});
src/assets/icons/advertisementImage.jpg

82.9 KiB

src/assets/logo/1280ICICI_Bank_Logo.png

6.29 KiB

src/assets/logo/1280ICICI_Bank_Logo2x.png

13.5 KiB

src/assets/logo/1280ICICI_Bank_Logo3x.png

25.5 KiB

<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 15.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="180.833px" height="25px" viewBox="0 0 180.833 25" enable-background="new 0 0 180.833 25" xml:space="preserve">
<path fill="#F99D27" d="M6.72,5.404c5.885-5.643,13.01-7.11,15.86-3.243c2.85,3.865,0.344,11.62-5.54,17.263
c-5.883,5.643-13.008,7.109-15.858,3.243S0.814,11.047,6.72,5.404L6.72,5.404z"/>
<path fill="#B02A30" d="M10.605,2.405c-0.643,0.466-1.31,1-1.953,1.622c-5.149,4.91-7.286,11.665-4.758,15.04
c2.62,3.379,8.987,2.156,14.227-2.842c2.827-2.645,4.734-5.754,5.516-8.643c0.23-2.111-0.07-4-1.08-5.422
C20.304-0.817,15.455-0.594,10.605,2.405z"/>
<path fill="#FFFFFF" d="M13.524,22.2c-2.758,2-5.608,3-8.39,2.577c1.173,0.066,2.115-1.199,2.874-2.865
c0.781-1.732,1.264-3.311,1.632-4.822c0.574-2.354,0.62-4.043,0.321-4.42c-0.482-0.6-1.54-0.445-2.758,0.222
c-0.574,0.31-1.356,0.11-0.436-0.956c0.919-1.088,4.596-3.666,5.906-4.088c1.448-0.4,3.103,0.156,2.552,1.689
C14.834,10.67,9.755,23.534,13.524,22.2L13.524,22.2z M17.684,2.227c0.69,0.667,0.275,2.11-0.897,3.266
c-1.172,1.133-2.712,1.533-3.378,0.889c-0.713-0.645-0.299-2.133,0.896-3.288C15.5,1.938,17.017,1.583,17.684,2.227z M23.706,24.756
h4.413l3.447-12.442h-4.412L23.706,24.756z M46.299,24.756h4.413l3.447-12.442h-4.39L46.299,24.756L46.299,24.756z M68.914,24.756
h4.39l3.447-12.442h-4.39L68.914,24.756z M42.208,16.58h4.413c0.575-2.799-1.287-4.243-5.608-4.243
c-4.987,0-8.389,2.354-9.515,6.466c-1.034,3.709,1.011,5.977,5.7,5.977c4.757,0,7.561-1.422,8.757-4.621h-4.413
c-0.62,1.4-1.77,2.154-3.333,2.154c-2.137,0-2.965-1.311-2.321-3.666c0.69-2.465,2.298-3.82,4.436-3.82
C41.68,14.826,42.324,15.402,42.208,16.58L42.208,16.58z M64.823,16.58h4.413c0.575-2.799-1.287-4.243-5.608-4.243
c-4.987,0-8.389,2.354-9.515,6.466c-1.034,3.709,1.011,5.977,5.7,5.977c4.758,0,7.562-1.422,8.757-4.621h-4.413
c-0.62,1.4-1.77,2.154-3.333,2.154c-2.137,0-2.965-1.311-2.32-3.666c0.689-2.465,2.297-3.82,4.435-3.82
C64.272,14.826,64.915,15.402,64.823,16.58L64.823,16.58z M83.37,22.803l1.012-3.623h2.873c2.206,0,3.195,0.379,2.804,1.844
c-0.368,1.355-1.471,1.777-3.47,1.777H83.37V22.803z M85.738,14.227h2.735c2.046,0,3.01,0.244,2.666,1.487
c-0.345,1.244-1.448,1.556-3.585,1.556h-2.666L85.738,14.227z M80.038,24.779h6.596c1.885,0,3.287-0.133,4.62-1.045
c0.889-0.574,1.541-1.449,1.839-2.465c0.482-1.711-0.345-2.845-2.345-3.133c1.908-0.357,3.103-1.311,3.518-2.777
c0.321-1.133,0.068-1.955-0.782-2.51c-0.69-0.445-1.84-0.512-3.402-0.512h-6.573L80.038,24.779L80.038,24.779z M101.366,20.779
l-0.046,0.154c-0.437,1.601-1.793,2.578-3.424,2.578c-1.195,0-1.701-0.445-1.472-1.289c0.322-1.133,1.356-1.443,3.265-1.443H101.366
z M100.355,24.777h2.643c0.068-0.577,0.207-1.221,0.414-1.932l0.965-3.467c0.645-2.288-0.527-3.466-3.516-3.466
c-2.873,0-4.758,0.978-5.332,2.601h2.527c0.322-0.824,1.057-1.201,2.275-1.201c1.355,0,1.839,0.578,1.494,1.844l-0.047,0.156h-1.401
c-3.931,0-6.067,0.689-6.665,2.889C93.253,23.889,94.355,25,96.701,25c1.517,0,2.85-0.488,3.906-1.4L100.355,24.777z
M105.273,24.777h2.666l1.242-4.442c0.436-1.601,1.976-2.733,3.562-2.733c1.563,0,2.092,0.89,1.608,2.645l-1.264,4.531h2.62
l1.472-5.332c0.62-2.243-0.553-3.555-3.15-3.555c-1.678,0-3.057,0.557-4.205,1.733l0.322-1.533h-2.621
c-0.275,1.354-0.459,2.222-0.551,2.533L105.273,24.777L105.273,24.777z M118.053,24.779h2.598l1.287-4.688l3.494,4.688h3.562
l-3.931-4.955l5.332-3.732h-3.332l-4.987,3.51l2.022-7.265H121.5L118.053,24.779z"/>
<path fill="#FFFFFF" d="M143.417,15.756v-1.777h1.921v1.777H143.417z M143.417,24v-7.26h1.921V24H143.417z M154.564,20.314
l1.961,0.623c-0.3,1.094-0.802,1.908-1.503,2.44c-0.698,0.528-1.584,0.793-2.66,0.793c-1.329,0-2.424-0.452-3.28-1.36
c-0.857-0.912-1.285-2.156-1.285-3.732c0-1.668,0.431-2.962,1.291-3.883c0.861-0.926,1.994-1.387,3.397-1.387
c1.226,0,2.222,0.361,2.988,1.086c0.455,0.428,0.797,1.043,1.024,1.846l-2.002,0.479c-0.119-0.52-0.367-0.93-0.746-1.23
c-0.373-0.301-0.828-0.451-1.367-0.451c-0.742,0-1.346,0.268-1.812,0.8c-0.46,0.533-0.69,1.397-0.69,2.591
c0,1.268,0.229,2.17,0.685,2.707c0.455,0.537,1.048,0.807,1.776,0.807c0.539,0,1-0.17,1.389-0.512
c0.387-0.343,0.665-0.881,0.834-1.613V20.314z M159.541,24V13.979h3.029l1.818,6.836l1.798-6.836h3.035V24h-1.88v-7.889L165.353,24
h-1.948l-1.982-7.889V24H159.541L159.541,24z M172.019,20.74l1.969-0.192c0.118,0.66,0.358,1.146,0.718,1.456
c0.364,0.311,0.854,0.465,1.469,0.465c0.652,0,1.143-0.137,1.471-0.41c0.333-0.277,0.499-0.602,0.499-0.971
c0.006-0.22-0.069-0.434-0.212-0.602c-0.137-0.168-0.378-0.314-0.725-0.438c-0.236-0.082-0.776-0.229-1.621-0.438
c-1.084-0.268-1.844-0.6-2.282-0.99c-0.615-0.553-0.923-1.225-0.923-2.018c0-0.51,0.144-0.986,0.431-1.43
c0.292-0.445,0.709-0.785,1.251-1.018c0.547-0.232,1.205-0.348,1.977-0.348c1.256,0,2.203,0.274,2.836,0.826
c0.639,0.551,0.973,1.287,1.004,2.209l-2.022,0.088c-0.087-0.515-0.272-0.884-0.562-1.107c-0.281-0.229-0.707-0.342-1.277-0.342
c-0.588,0-1.049,0.121-1.381,0.363c-0.206,0.139-0.327,0.373-0.321,0.621c0,0.237,0.101,0.439,0.302,0.608
c0.254,0.214,0.875,0.438,1.858,0.67c0.983,0.233,1.711,0.474,2.181,0.726c0.457,0.229,0.84,0.582,1.107,1.018
c0.27,0.429,0.402,0.959,0.402,1.593c0.001,0.573-0.165,1.134-0.478,1.612c-0.319,0.502-0.771,0.875-1.354,1.123
c-0.582,0.24-1.31,0.361-2.18,0.361c-1.267,0-2.24-0.291-2.919-0.875c-0.679-0.588-1.085-1.443-1.217-2.564V20.74z"/>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="187" height="25" fill="none" viewBox="0 0 187 25">
<path fill="#F99D27" fill-rule="evenodd" d="M6.72 5.404c5.885-5.643 13.01-7.11 15.86-3.243 2.85 3.865.344 11.62-5.54 17.263-5.883 5.643-13.008 7.109-15.858 3.243-2.85-3.866-.368-11.62 5.539-17.263z" clip-rule="evenodd"/>
<path fill="#B02A30" fill-rule="evenodd" d="M10.605 2.405c-.643.466-1.31 1-1.953 1.622-5.149 4.91-7.286 11.664-4.758 15.04 2.62 3.378 8.987 2.156 14.227-2.843 2.827-2.644 4.734-5.754 5.516-8.642.23-2.111-.07-4-1.08-5.422-2.253-2.977-7.102-2.754-11.952.245z" clip-rule="evenodd"/>
<path fill="#fff" fill-rule="evenodd" d="M13.524 22.2c-2.758 2-5.608 3-8.39 2.578 1.173.066 2.115-1.2 2.874-2.866.781-1.733 1.264-3.31 1.632-4.822.574-2.354.62-4.043.321-4.42-.482-.6-1.54-.445-2.758.222-.574.31-1.356.11-.436-.956.919-1.088 4.596-3.666 5.906-4.088 1.448-.4 3.103.156 2.552 1.689-.391 1.133-5.47 13.997-1.701 12.664zm4.16-19.973c.69.667.275 2.11-.897 3.266-1.172 1.133-2.712 1.533-3.378.889-.713-.645-.299-2.133.896-3.288 1.195-1.156 2.712-1.511 3.379-.867zM23.706 24.756h4.413l3.447-12.442h-4.412l-3.448 12.442zM46.299 24.756h4.413l3.447-12.442h-4.39L46.3 24.756zM68.914 24.756h4.39l3.447-12.442h-4.39l-3.447 12.442zM42.208 16.58h4.413c.575-2.799-1.287-4.243-5.608-4.243-4.987 0-8.389 2.355-9.515 6.465-1.034 3.71 1.011 5.977 5.7 5.977 4.757 0 7.561-1.422 8.757-4.621h-4.413c-.62 1.4-1.77 2.155-3.333 2.155-2.137 0-2.965-1.311-2.321-3.666.69-2.466 2.298-3.821 4.436-3.821 1.356 0 2 .577 1.884 1.755zM64.823 16.58h4.413c.575-2.799-1.287-4.243-5.608-4.243-4.987 0-8.389 2.355-9.515 6.465-1.034 3.71 1.011 5.977 5.7 5.977 4.758 0 7.562-1.422 8.757-4.621h-4.413c-.62 1.4-1.77 2.155-3.333 2.155-2.137 0-2.965-1.311-2.32-3.666.689-2.466 2.297-3.821 4.435-3.821 1.333 0 1.976.577 1.884 1.755zM83.37 22.802l1.012-3.622h2.873c2.206 0 3.195.378 2.804 1.844-.368 1.355-1.471 1.777-3.47 1.777H83.37zm2.368-8.576h2.735c2.046 0 3.01.244 2.666 1.488-.345 1.244-1.448 1.555-3.585 1.555h-2.666l.85-3.043zm-5.7 10.553h6.596c1.885 0 3.287-.133 4.62-1.044a4.42 4.42 0 0 0 1.839-2.466c.482-1.711-.345-2.844-2.345-3.133 1.908-.356 3.103-1.31 3.517-2.777.322-1.133.069-1.955-.781-2.51-.69-.445-1.84-.512-3.402-.512h-6.573l-3.47 12.442zM101.366 20.779l-.046.155c-.436 1.6-1.792 2.577-3.424 2.577-1.195 0-1.7-.444-1.471-1.288.322-1.133 1.356-1.444 3.264-1.444h1.677zm-1.011 3.999h2.643c.069-.578.207-1.222.414-1.933l.965-3.466c.644-2.288-.528-3.466-3.516-3.466-2.873 0-4.758.978-5.332 2.6h2.528c.322-.823 1.057-1.2 2.275-1.2 1.356 0 1.839.577 1.494 1.844l-.046.155h-1.402c-3.93 0-6.067.69-6.665 2.889-.46 1.688.643 2.799 2.988 2.799 1.517 0 2.85-.489 3.907-1.4l-.253 1.178zM105.274 24.778h2.666l1.241-4.443c.436-1.6 1.976-2.733 3.562-2.733 1.563 0 2.092.889 1.609 2.644l-1.264 4.532h2.62l1.471-5.332c.621-2.244-.552-3.555-3.149-3.555-1.678 0-3.057.556-4.206 1.733l.322-1.533h-2.62c-.276 1.355-.46 2.222-.552 2.533l-1.7 6.154zM118.053 24.779h2.597l1.287-4.688 3.494 4.688h3.562l-3.93-4.955 5.332-3.732h-3.333l-4.987 3.51 2.022-7.265H121.5l-3.447 12.442z" clip-rule="evenodd"/>
<path fill="#fff" d="M143.417 15.756v-1.777h1.921v1.777h-1.921zm0 8.244v-7.26h1.921V24h-1.921zm4.978-2.673v-1.92h3.773v1.92h-3.773zm12.607-1.012l1.961.622c-.3 1.094-.802 1.908-1.503 2.441-.698.529-1.584.793-2.66.793-1.33 0-2.424-.453-3.281-1.36-.857-.912-1.285-2.156-1.285-3.733 0-1.668.431-2.962 1.292-3.883.861-.925 1.994-1.387 3.397-1.387 1.226 0 2.222.362 2.988 1.087.455.428.797 1.043 1.025 1.845l-2.003.479c-.118-.52-.367-.93-.745-1.23-.374-.302-.829-.452-1.367-.452-.743 0-1.347.267-1.812.8-.46.533-.69 1.397-.69 2.59 0 1.268.228 2.17.684 2.708.455.537 1.048.806 1.777.806.538 0 1-.17 1.388-.512.387-.342.665-.88.834-1.613zM165.979 24V13.979h3.029l1.818 6.835 1.798-6.835h3.035V24h-1.88v-7.889L171.79 24h-1.948l-1.983-7.889V24h-1.88zm12.477-3.26l1.969-.192c.118.66.358 1.146.718 1.456.364.31.854.465 1.469.465.652 0 1.142-.137 1.47-.41.333-.278.499-.602.499-.971a.891.891 0 0 0-.212-.602c-.137-.168-.378-.314-.724-.437-.237-.082-.777-.228-1.621-.438-1.084-.268-1.845-.599-2.283-.99-.615-.552-.923-1.224-.923-2.017 0-.51.144-.987.431-1.43.292-.446.709-.785 1.251-1.018.547-.232 1.205-.348 1.976-.348 1.257 0 2.203.275 2.837.827.638.551.972 1.287 1.004 2.208l-2.023.089c-.087-.515-.273-.884-.561-1.108-.282-.228-.708-.342-1.278-.342-.588 0-1.048.121-1.381.363a.73.73 0 0 0-.321.622c0 .237.1.44.301.608.255.214.875.438 1.859.67.984.233 1.711.474 2.181.725a2.75 2.75 0 0 1 1.107 1.018c.269.429.403.96.403 1.593a2.95 2.95 0 0 1-.478 1.613c-.319.502-.77.875-1.354 1.122-.583.241-1.31.362-2.18.362-1.267 0-2.24-.292-2.919-.875-.679-.588-1.085-1.443-1.217-2.564z"/>
</svg>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment