Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan-Bird committed Apr 4, 2023
1 parent 3bb17d4 commit 0bd937d
Show file tree
Hide file tree
Showing 16 changed files with 197 additions and 178 deletions.
46 changes: 0 additions & 46 deletions README.md

This file was deleted.

Binary file added design.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 1 addition & 30 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,39 +5,10 @@
<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>
<title>React Interview</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>
Binary file removed public/logo192.png
Binary file not shown.
Binary file removed public/logo512.png
Binary file not shown.
25 changes: 0 additions & 25 deletions public/manifest.json

This file was deleted.

3 changes: 0 additions & 3 deletions public/robots.txt

This file was deleted.

38 changes: 0 additions & 38 deletions src/App.css

This file was deleted.

4 changes: 2 additions & 2 deletions src/App.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ import App from './App';

test('renders learn react link', () => {
render(<App />);
const linkElement = screen.getByText(/learn react/i);
expect(linkElement).toBeInTheDocument();
const heading = screen.getByRole('heading', { name: /hello world/i });
expect(heading).toBeInTheDocument();
});
18 changes: 2 additions & 16 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,24 +1,10 @@
import React from 'react';
import logo from './logo.svg';
import './App.css';

function App() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/App.tsx</code> and save to reload.
</p>
<a
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
</a>
</header>
<h1>Hello World</h1>
<p>Lorem ipsum dolor sit amet</p>
</div>
);
}
Expand Down
192 changes: 192 additions & 0 deletions src/data/userData.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,192 @@
interface UserData {
id: string;
firstName: string;
lastName: string;
submissionDate: string;
country: string;
verified: boolean;
rating: number;
}

export const userData: UserData[] = [
{
id: '9da70cb8-4d17-4d79-ae93-8b6c47662c2c',
firstName: 'Quinta',
lastName: 'Kertess',
submissionDate: '1676549713000',
country: 'Bolivia',
verified: false,
rating: 5,
},
{
id: 'c4f42f53-b1dc-4ff2-aca5-3ea19ecc77ed',
firstName: 'Lindsey',
lastName: 'Ezzell',
submissionDate: '1653938543000',
country: 'Czech Republic',
verified: true,
rating: 4,
},
{
id: '25c7439d-151d-4ded-bc25-b7f266aace33',
firstName: 'Rosaleen',
lastName: 'Clemonts',
submissionDate: '1655673344000',
country: 'Argentina',
verified: false,
rating: 1,
},
{
id: 'cf20d09c-6eef-45b7-af2f-12b4c86d1627',
firstName: 'Lemuel',
lastName: 'Shire',
submissionDate: '1679324548000',
country: 'United States',
verified: false,
rating: 1,
},
{
id: 'ecc7916a-3f95-41a9-ae60-0005b64c0a7d',
firstName: 'Fraser',
lastName: 'Purkiss',
submissionDate: '1647811929000',
country: 'Sweden',
verified: false,
rating: 1,
},
{
id: 'bb636968-a2b1-4832-911b-7f09b2cb2ce4',
firstName: 'Hali',
lastName: 'Finnan',
submissionDate: '1676135439000',
country: 'China',
verified: true,
rating: 1,
},
{
id: '723b5e08-74df-45d7-ab3e-d5f9c4775839',
firstName: 'Rebeka',
lastName: 'Slyford',
submissionDate: '1644219508000',
country: 'Thailand',
verified: true,
rating: 2,
},
{
id: 'cd6328fc-3c73-426b-854f-35a7dc64f7e1',
firstName: 'Salim',
lastName: 'Blincoe',
submissionDate: '1641164434000',
country: 'China',
verified: true,
rating: 4,
},
{
id: 'ab93c7de-2ba4-4445-a1ba-94ac92f1abba',
firstName: 'Koressa',
lastName: 'Pessel',
submissionDate: '1655418991000',
country: 'China',
verified: false,
rating: 3,
},
{
id: '980469fa-1db0-4003-8ec8-3caa1b2052e9',
firstName: 'Maude',
lastName: 'Teenan',
submissionDate: '1678427263000',
country: 'China',
verified: false,
rating: 5,
},
{
id: '8416bb61-2284-4898-90db-84ee2ebe3ab0',
firstName: 'Adrian',
lastName: 'Peacop',
submissionDate: '1668791548000',
country: 'China',
verified: true,
rating: 1,
},
{
id: 'b5de4d66-97cb-41c9-bd1a-47f39b5967e1',
firstName: 'Sophronia',
lastName: 'Sherwill',
submissionDate: '1670130448000',
country: 'China',
verified: true,
rating: 1,
},
{
id: '20fdfa3b-1d47-4056-b751-3874420871a3',
firstName: 'Fanchon',
lastName: 'Atyea',
submissionDate: '1660231069000',
country: 'Latvia',
verified: true,
rating: 3,
},
{
id: '0103aba4-1b11-4cac-934a-24d6ff495c9a',
firstName: 'Dena',
lastName: 'Clunan',
submissionDate: '1680134713000',
country: 'Portugal',
verified: false,
rating: 4,
},
{
id: '9f673bdd-c977-4203-9f0c-2f741b462ba3',
firstName: 'Gus',
lastName: 'Ney',
submissionDate: '1661654680000',
country: 'China',
verified: false,
rating: 3,
},
{
id: '989eecac-ca83-4335-92ff-9df388c4fa5b',
firstName: 'Kassey',
lastName: 'Kinzel',
submissionDate: '1665684945000',
country: 'South Korea',
verified: false,
rating: 1,
},
{
id: 'b962363e-16ea-4d75-a531-d8102896c5ca',
firstName: 'Vivie',
lastName: 'Benesevich',
submissionDate: '1678767918000',
country: 'China',
verified: false,
rating: 3,
},
{
id: '12c604ef-cc1e-4fbe-bb54-dc59a7897e87',
firstName: 'Deirdre',
lastName: 'Swanborrow',
submissionDate: '1651214816000',
country: 'Peru',
verified: true,
rating: 4,
},
{
id: 'e166f86f-4d78-4eda-a86a-c491797d0681',
firstName: 'Leonelle',
lastName: 'Petrashkov',
submissionDate: '1661071298000',
country: 'Poland',
verified: false,
rating: 1,
},
{
id: 'df7f11aa-8aef-4358-97b2-8b78fc8d680a',
firstName: 'Roth',
lastName: 'Yurasov',
submissionDate: '1644979120000',
country: 'South Africa',
verified: true,
rating: 1,
},
];
6 changes: 0 additions & 6 deletions src/index.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
}
Loading

0 comments on commit 0bd937d

Please sign in to comment.