Skip to content

Commit

Permalink
Merge pull request #124 from Ansh101112/main
Browse files Browse the repository at this point in the history
MADE WHOLE RESPONSIVE UI
  • Loading branch information
Durgesh-Vaigandla authored May 18, 2024
2 parents 7205b11 + d2771ee commit 63d2569
Show file tree
Hide file tree
Showing 11 changed files with 131 additions and 2 deletions.
39 changes: 39 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
.DS_STORE
node_modules
scripts/flow/*/.flowconfig
.flowconfig
*~
*.pyc
.grunt
_SpecRunner.html
__benchmarks__
build/
remote-repo/
coverage/
.module-cache
fixtures/dom/public/react-dom.js
fixtures/dom/public/react.js
test/the-files-to-test.generated.js
*.log*
chrome-user-data
*.sublime-project
*.sublime-workspace
.idea
*.iml
.vscode
*.swp
*.swo

packages/react-devtools-core/dist
packages/react-devtools-extensions/chrome/build
packages/react-devtools-extensions/chrome/*.crx
packages/react-devtools-extensions/chrome/*.pem
packages/react-devtools-extensions/firefox/build
packages/react-devtools-extensions/firefox/*.xpi
packages/react-devtools-extensions/firefox/*.pem
packages/react-devtools-extensions/shared/build
packages/react-devtools-extensions/.tempUserDataDir
packages/react-devtools-fusebox/dist
packages/react-devtools-inline/dist
packages/react-devtools-shell/dist
packages/react-devtools-timeline/dist
Empty file added src/App.css
Empty file.
35 changes: 35 additions & 0 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import React from "react";
import { Route, Routes } from "react-router-dom";
import Home from "./pages/Home";
import QRCodeVerification from "./pages/QR";
import SignUp from "./pages/Signup";
import Login from "./pages/Login";
import NotificationSettings from "./pages/Notification";
import CustomerVoices from "./pages/Contact";

const App = () => {
return (
<>
<Routes>
<Route path="/" element={<Home></Home>}></Route>
<Route
path="/scanqr"
element={<QRCodeVerification></QRCodeVerification>}
></Route>
<Route path="/user/signup" element={<SignUp></SignUp>}></Route>
<Route path="/user/login" element={<Login></Login>}></Route>
<Route
path="/contact"
element={<CustomerVoices></CustomerVoices>}
></Route>
<Route
path="/user/notifications"
element={<NotificationSettings></NotificationSettings>}
></Route>
<Route path="/about" element={<Home></Home>}></Route>
</Routes>
</>
);
};

export default App;
8 changes: 8 additions & 0 deletions src/App.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
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();
});
10 changes: 10 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

/* Toggle switch styles */
input:checked ~ .dot {
transform: translateX(100%);
background-color: #4CAF50;
}

18 changes: 18 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import React from "react";
import ReactDOM from "react-dom/client";
import "./index.css";
import App from "./App";
import reportWebVitals from "./reportWebVitals";
import { BrowserRouter } from "react-router-dom";

const root = ReactDOM.createRoot(document.getElementById("root"));
root.render(
<BrowserRouter>
<App />
</BrowserRouter>
);

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();
1 change: 1 addition & 0 deletions src/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/pages/Login.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const Login = () => {
<div>
<label className="block text-gray-700">Phone Number</label>
<input
type="text"
type="number"
className="w-full px-4 py-2 mt-2 border rounded-md focus:outline-none focus:ring-1 focus:ring-green-600"
placeholder="Phone Number"
/>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Signup.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const SignUp = () => {
<div>
<label className="block text-gray-700">Phone Number</label>
<input
type="text"
type="number"
className="w-full px-4 py-2 mt-2 border rounded-md focus:outline-none focus:ring-1 focus:ring-green-600"
placeholder="Phone Number"
/>
Expand Down
13 changes: 13 additions & 0 deletions src/reportWebVitals.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
const reportWebVitals = onPerfEntry => {
if (onPerfEntry && onPerfEntry instanceof Function) {
import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
getCLS(onPerfEntry);
getFID(onPerfEntry);
getFCP(onPerfEntry);
getLCP(onPerfEntry);
getTTFB(onPerfEntry);
});
}
};

export default reportWebVitals;
5 changes: 5 additions & 0 deletions src/setupTests.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// jest-dom adds custom jest matchers for asserting on DOM nodes.
// allows you to do things like:
// expect(element).toHaveTextContent(/react/i)
// learn more: https://github.com/testing-library/jest-dom
import '@testing-library/jest-dom';

0 comments on commit 63d2569

Please sign in to comment.