diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000000000..1dcef2d9f
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+node_modules
+.env
\ No newline at end of file
diff --git a/.idea/.gitignore b/.idea/.gitignore
new file mode 100644
index 000000000..b58b603fe
--- /dev/null
+++ b/.idea/.gitignore
@@ -0,0 +1,5 @@
+# Default ignored files
+/shelf/
+/workspace.xml
+# Editor-based HTTP Client requests
+/httpRequests/
diff --git a/.idea/final_project.iml b/.idea/final_project.iml
new file mode 100644
index 000000000..0c8867d7e
--- /dev/null
+++ b/.idea/final_project.iml
@@ -0,0 +1,12 @@
+
+
'+t+"
"}catch(i){a+=""+t+"
Sign in to be able to generate random ARAM tournaments\r\n or generate single games from the link below.\r\n
\r\n\r\n| Team Name | \r\nSummoner #1 | \r\nSummoner #2 | \r\nSummoner #3 | \r\nSummoner #4 | \r\nSummoner #5 | \r\n\r\n | \r\n |
|---|
| Teams | \r\nTeam 1 Champions | \r\nTeam 2 Champions | \r\n
|---|
{errorMessage}
\r\n >\r\n );\r\n}\r\n\r\nexport default ErrorPage;","import React, { useState } from \"react\";\r\n\r\nfunction importAll(r) {\r\n let images = {};\r\n r.keys().map((item, index) => images[item.replace('./', '')] = r(item));\r\n return images;\r\n}\r\n\r\nconst blue_images = importAll(require.context('../img/blue_champs', false, /\\.(png|jpe?g|svg)$/));\r\nconst red_images = importAll(require.context('../img/red_champs', false, /\\.(png|jpe?g|svg)$/));\r\n\r\nconst SinglePage = () => {\r\n const [state, setState] = useState({\r\n formData: { blueSums: '', redSums: '', blueChamps: '', redChamps: '', blueDraft: '', redDraft: '' }\r\n });\r\n\r\n const [btnDisable, setBtnDisable] = useState(false);\r\n\r\n const onInputChange = (name, value) => {\r\n setState({\r\n ...state,\r\n formData: {\r\n ...state.formData,\r\n [name]: value\r\n }\r\n });\r\n };\r\n\r\n const checkFive = (input) => {\r\n\r\n let split = input.split(\",\");\r\n if (split.length !== 5) {\r\n return false;\r\n }\r\n\r\n //remove all spaces\r\n split.map(e => e.trim());\r\n\r\n return split;\r\n }\r\n\r\n\r\n const formatChamps = (input, images) => {\r\n let element = '';\r\n\r\n input.forEach(e => {\r\n let name = e + '.png';\r\n name = name.replace(/ /g, \"_\");\r\n name = name.replace('\\'', \"\");\r\n console.log(name.toLocaleLowerCase(), images[name.toLocaleLowerCase()]);\r\n try {\r\n element += '' + e + '
' + e + '
Enter the usernames separated by comma in each text box\r\n
\r\n\r\n{errorMessage}
+ > + ); +} + +export default ErrorPage; \ No newline at end of file diff --git a/client/src/pages/LandingPage.jsx b/client/src/pages/LandingPage.jsx new file mode 100644 index 000000000..080e36520 --- /dev/null +++ b/client/src/pages/LandingPage.jsx @@ -0,0 +1,24 @@ +import React from "react"; +import { useHistory } from "react-router-dom"; + +const LandingPage = () => { + const history = useHistory(); + + return ( +Sign in to be able to generate random ARAM tournaments + or generate single games from the link below. +
+ +' + e + '
' + e + '
Enter the usernames separated by comma in each text box +
+ +| Teams | +Team 1 Champions | +Team 2 Champions | +
|---|
| Team Name | +Summoner #1 | +Summoner #2 | +Summoner #3 | +Summoner #4 | +Summoner #5 | ++ | + |
|---|