diff --git a/src/defaultStyles.css b/src/defaultStyles.css index 3a01fca..7a35e51 100644 --- a/src/defaultStyles.css +++ b/src/defaultStyles.css @@ -10,32 +10,20 @@ body { color: #999999; } +a { + color: white; +} + .link { margin: 20px; font-size: 20px; } -.feedbackArea { - color: var(--text-color); - background-color: var(--background-color); - font-size: 18px; -} - .sidebarLink { color: var(--text-color); text-decoration: none; } -.motdHeader { - text-align: center; - font-size: 24px; -} - -.motd { - text-align: center; - font-size: 20px; -} - .sidebar { margin: 0; padding: 0; diff --git a/src/pages/feedback.js b/src/pages/feedback.js index 7462b1f..847722b 100644 --- a/src/pages/feedback.js +++ b/src/pages/feedback.js @@ -1,67 +1,251 @@ +import React, { useState } from 'react' +import fetch from 'unfetch' + import IrcButton from '../components/IrcButton.js' -import constants from '../constants.json' +import styles from './feedback.module.css' +// import constants from '../constants.json' + +const results = { + success: 'SUCCESS', + error: 'ERROR', + notSent: 'NOTSENT', + invalid: 'INVALID' +} export default function Feedback (props) { - // TODO: textarea style to css - // TODO: response to user that msg is sucessfully sent - const renderTestSender = () => { + const [form, setForm] = useState({}) + const [file, setFile] = useState(undefined) + const [result, setResult] = useState(results.notSent) + const [fileResult, setFileResult] = useState(results.notSent) + + const onChange = (e) => { + setForm({ + ...form, + [e.target.name]: e.target.value + }) + } + + const renderTextInputArea = (params) => { return ( -
- Hibát kiváltó teszt feltöltése -
- -
- - -
- -

- Ha egy kérdésre mindig helytelenül talál választ a userscript (vagy egyéb hibát észlelsz), akkor - azon az oldalon nyomj egy ctrl-s -t. Ez lementi a weboldalt úgy ahogy van egy mappába, és egy - html fájlba. Ezt a kettőt ha berakod egy .zip-be, és ide feltöltöd, akkor ránézek mi lehet a - hiba, és kijavítom. Max 10 MB! Ha több, elég a .html. Bónusz ha mellékelsz egy - readme-t, hogy mit csináljak. +

+
+ {params.text} +
+