Skip to content
This repository was archived by the owner on Sep 4, 2023. It is now read-only.

Commit db9dc1d

Browse files
committed
Create a UX engineer test
0 parents  commit db9dc1d

18 files changed

+11998
-0
lines changed

.gitattributes

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto

.gitignore

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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*

README.md

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# UX Engineering Test
2+
3+
## A challenge for UX engineers
4+
5+
While this app does technically work it is lacking in both UI design and UX. That's where you come in!
6+
7+
For this test you will be updating the design and applying whatever CSS wizardry you think would make it better.
8+
9+
We will be looking specifically at what you choose to do and how you choose to do it.
10+
11+
Feel free to use libraries like Tailwind. You might also want to move some of the components into their own files/folders.
12+
13+
## Submitting your solution
14+
15+
Clone this repository and set up your own, new repository as the origin remote.
16+
17+
Once your remote repository is ready, add @ckortekaas and @nathanhoad and let us know that you've completed the challenge.
18+
19+
## Your comments
20+
21+
----
22+
23+
_...feel free to add any comments or thoughts in this section..._
24+
25+
----
26+
27+
## Create React App
28+
29+
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
30+
31+
In the project directory, you can run:
32+
33+
### `yarn start`
34+
35+
Runs the app in the development mode.\
36+
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
37+
38+
The page will reload if you make edits.\
39+
You will also see any lint errors in the console.
40+
41+
### `yarn test`
42+
43+
Launches the test runner in the interactive watch mode.\
44+
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.

package.json

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"name": "ux-engineer-test",
3+
"version": "0.1.0",
4+
"private": true,
5+
"dependencies": {
6+
"@testing-library/jest-dom": "^5.11.4",
7+
"@testing-library/react": "^11.1.0",
8+
"@testing-library/user-event": "^12.1.10",
9+
"@types/jest": "^26.0.24",
10+
"@types/node": "^16.4.3",
11+
"@types/react": "^17.0.15",
12+
"@types/react-dom": "^17.0.9",
13+
"react": "^17.0.2",
14+
"react-dom": "^17.0.2",
15+
"react-scripts": "4.0.3",
16+
"typescript": "^4.3.5",
17+
"web-vitals": "^1.0.1"
18+
},
19+
"scripts": {
20+
"start": "react-scripts start",
21+
"build": "react-scripts build",
22+
"test": "react-scripts test",
23+
"eject": "react-scripts eject"
24+
},
25+
"eslintConfig": {
26+
"extends": [
27+
"react-app",
28+
"react-app/jest"
29+
]
30+
},
31+
"browserslist": {
32+
"production": [
33+
">0.2%",
34+
"not dead",
35+
"not op_mini all"
36+
],
37+
"development": [
38+
"last 1 chrome version",
39+
"last 1 firefox version",
40+
"last 1 safari version"
41+
]
42+
}
43+
}

public/favicon.ico

3.78 KB
Binary file not shown.

public/index.html

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="utf-8" />
6+
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
7+
<meta name="viewport" content="width=device-width, initial-scale=1" />
8+
<meta name="theme-color" content="#000000" />
9+
<meta name="description" content="Web site created using create-react-app" />
10+
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
11+
<!--
12+
manifest.json provides metadata used when your web app is installed on a
13+
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
14+
-->
15+
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
16+
<!--
17+
Notice the use of %PUBLIC_URL% in the tags above.
18+
It will be replaced with the URL of the `public` folder during the build.
19+
Only files inside the `public` folder can be referenced from the HTML.
20+
21+
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
22+
work correctly both with client-side routing and a non-root public URL.
23+
Learn how to configure a non-root public URL by running `npm run build`.
24+
-->
25+
<title>TV Database</title>
26+
</head>
27+
28+
<body>
29+
<noscript>You need to enable JavaScript to run this app.</noscript>
30+
<div id="root"></div>
31+
<!--
32+
This HTML file is a template.
33+
If you open it directly in the browser, you will see an empty page.
34+
35+
You can add webfonts, meta tags, or analytics to this file.
36+
The build step will place the bundled scripts into the <body> tag.
37+
38+
To begin the development, run `npm start` or `yarn start`.
39+
To create a production bundle, use `npm run build` or `yarn build`.
40+
-->
41+
</body>
42+
43+
</html>

public/manifest.json

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"short_name": "TV Database",
3+
"name": "TV Show Database",
4+
"icons": [
5+
{
6+
"src": "favicon.ico",
7+
"sizes": "64x64 32x32 24x24 16x16",
8+
"type": "image/x-icon"
9+
}
10+
],
11+
"start_url": ".",
12+
"display": "standalone",
13+
"theme_color": "#000000",
14+
"background_color": "#ffffff"
15+
}

public/robots.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# https://www.robotstxt.org/robotstxt.html
2+
User-agent: *
3+
Disallow:

src/App.css

+128
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
.app {
2+
max-width: 1100px;
3+
margin: auto;
4+
}
5+
6+
.search {
7+
display: flex;
8+
background: #999;
9+
border-radius: 10px;
10+
padding: 10px 14px;
11+
text-align: center;
12+
}
13+
14+
.search input {
15+
width: 100%;
16+
font-size: 22px;
17+
line-height: 26px;
18+
border: none;
19+
border-top-left-radius: 5px;
20+
border-bottom-left-radius: 5px;
21+
height: 40px;
22+
padding: 0 20px;
23+
}
24+
25+
.search button {
26+
width: 200px;
27+
font-size: 22px;
28+
line-height: 26px;
29+
border-color: #050;
30+
background-color: #070;
31+
color: white;
32+
border: none;
33+
border-top-right-radius: 5px;
34+
border-bottom-right-radius: 5px;
35+
height: 42px;
36+
cursor: pointer;
37+
}
38+
39+
.results-meta {
40+
margin: 20px 0;
41+
}
42+
43+
.show-list {
44+
display: flex;
45+
flex-wrap: wrap;
46+
}
47+
48+
.show-preview {
49+
max-width: 300px;
50+
width: 20%;
51+
text-align: center;
52+
margin-bottom: 30px;
53+
cursor: pointer;
54+
}
55+
56+
.show-preview img {
57+
max-width: 100%;
58+
margin-bottom: 3px;
59+
}
60+
61+
.show-preview span {
62+
color: black;
63+
font-weight: bold;
64+
display: block;
65+
}
66+
67+
.show {
68+
display: flex;
69+
margin: 50px 0;
70+
}
71+
72+
.show-back {
73+
margin: 30px 0;
74+
}
75+
76+
.show-back button {
77+
background: none;
78+
border: none;
79+
padding: 0;
80+
cursor: pointer;
81+
font-size: 18px;
82+
line-height: 22px;
83+
}
84+
85+
.show-back button:before {
86+
content: "≡ ";
87+
}
88+
89+
.show-image {
90+
flex: 0 0 auto;
91+
width: 350px;
92+
margin-right: 50px;
93+
}
94+
95+
.show-image img {
96+
max-width: 100%;
97+
}
98+
99+
.show h2 {
100+
font-size: 30px;
101+
line-height: 36px;
102+
margin: 0 0 10px 0;
103+
}
104+
105+
.show-meta {
106+
color: #777;
107+
}
108+
109+
110+
.cast {
111+
list-style: none;
112+
padding: 0;
113+
}
114+
115+
.cast-member {
116+
margin-bottom: 10px;
117+
display: flex;
118+
align-items: center;
119+
}
120+
121+
.cast-member-image {
122+
max-width: 40px;
123+
margin-right: 10px;
124+
}
125+
126+
.cast-member-image img {
127+
max-width: 100%;
128+
}

src/App.test.tsx

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { render, screen } from '@testing-library/react';
2+
import App from './App';
3+
4+
test('renders learn react link', () => {
5+
render(<App />);
6+
const title = screen.getByText(/TV Database/i);
7+
expect(title).toBeInTheDocument();
8+
});

0 commit comments

Comments
 (0)