- )
-}
+ );
+};
-export default Home
+export default Home;
diff --git a/public/czech.png b/public/czech.png
new file mode 100644
index 0000000..e62c34c
Binary files /dev/null and b/public/czech.png differ
diff --git a/public/heavytank.svg b/public/heavytank.svg
new file mode 100644
index 0000000..b26cd0d
--- /dev/null
+++ b/public/heavytank.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/public/lighttank.svg b/public/lighttank.svg
new file mode 100644
index 0000000..970b74c
--- /dev/null
+++ b/public/lighttank.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/public/list.png b/public/list.png
new file mode 100644
index 0000000..9ea62e4
Binary files /dev/null and b/public/list.png differ
diff --git a/public/mediumtank.svg b/public/mediumtank.svg
new file mode 100644
index 0000000..be8d491
--- /dev/null
+++ b/public/mediumtank.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/Assignments.tsx b/src/Assignments.tsx
new file mode 100644
index 0000000..9bd04ca
--- /dev/null
+++ b/src/Assignments.tsx
@@ -0,0 +1,110 @@
+import React, { useState } from "react";
+const assignments = [
+
+
Assignment #1: Style the list
+
+ Code the folowing static content in /src/components/Vehicles.tsx according
+ to design. Images are in /public
+
+
+
Bonus questions
+
+
How to make vehicle class SVGs respect text color?
+
+ How prevent styles in Vehicles.css influencing the rest of the app?
+
+
+ ,
+
+
Assignment #2: Generate the list from JSON
+
+ Update /src/components/Vehicles.tsx to use:
+ import vehicles from "../../vehicles.json";
+ instead of hardcoded data
+
+
Bonus questions
+
+
+ Have a look at src/components/getRomanNumerals.ts and try to finish the
+ implementation.
+
+
+ How would you recommend to update the Vehicles component if there were
+ thousands of vehicles in the list?
+
+
+ ,
+
+
Assignment #3: Filter the list
+
+ Update /src/components/Vehicles.tsx to filter the list by a text input.
+
+
Bonus questions
+
+
+ How would you lower server load, if the filtering was done on the
+ server?
+
+
+ What would you have to watch out for, if the filtering was done on the
+ server and the server response time was very irregular? How would you
+ deal with it?
+
+
+ ,
+
+
Assignment #4: Get list data asynchroneously
+
+ Update /src/components/Vehicles.tsx to use:
+ {`const { data, error } = useVehicles();`}
+ from /src/useVehicles.ts
+
+
Bonus questions
+
+
+ How would improve UX experience, if the API was slow and unreliable?
+
+
+ How would you reduce the loading interval, if the list had a lot of
+ entries?
+