diff --git a/src/components/Button.js b/src/components/Button.js index 8cda1d4..8395434 100644 --- a/src/components/Button.js +++ b/src/components/Button.js @@ -1,13 +1,11 @@ import styles from './button.module.css' -export default function Button (props) { +export default function Button(props) { return (
-
- {props.text} -
+
{props.text}
diff --git a/src/components/Question.js b/src/components/Question.js index 549d512..8c100db 100644 --- a/src/components/Question.js +++ b/src/components/Question.js @@ -1,7 +1,7 @@ import React, { PureComponent } from 'react' class Question extends PureComponent { - render () { + render() { const { question } = this.props let qdata = question.data @@ -15,16 +15,10 @@ class Question extends PureComponent { } return ( -
-
- {question.Q} -
-
- {question.A} -
-
- {qdata || null} -
+
+
{question.Q}
+
{question.A}
+
{qdata || null}
) } diff --git a/src/components/Questions.js b/src/components/Questions.js index b2107cf..d1c0555 100644 --- a/src/components/Questions.js +++ b/src/components/Questions.js @@ -5,7 +5,7 @@ import Question from './Question.js' import styles from './Questions.module.css' class Questions extends PureComponent { - render () { + render() { const { subjs } = this.props return ( @@ -13,16 +13,9 @@ class Questions extends PureComponent { {subjs.map((subj, i) => { return (
-
- {subj.Name} -
- { subj.Questions.map((question, i) => { - return ( - - ) +
{subj.Name}
+ {subj.Questions.map((question, i) => { + return })}
) diff --git a/src/components/Subject.js b/src/components/Subject.js index 8235b5e..cd88281 100644 --- a/src/components/Subject.js +++ b/src/components/Subject.js @@ -3,26 +3,19 @@ import React, { PureComponent } from 'react' import Question from './Question.js' class Subject extends PureComponent { - render () { + render() { const { subj } = this.props if (subj) { return ( -
+
{subj.Questions.map((question, i) => { - return ( - - ) + return })}
) } else { - return ( -
- ) + return
} } } diff --git a/src/components/SubjectSelector.js b/src/components/SubjectSelector.js index 3918c99..735add3 100644 --- a/src/components/SubjectSelector.js +++ b/src/components/SubjectSelector.js @@ -1,10 +1,10 @@ import styles from './SubjectSelector.module.css' -export default function SubjectSelector (props) { +export default function SubjectSelector(props) { const { activeSubjName, searchTerm, data, onSubjSelect } = props return ( -
+
{data.map((subj, i) => { if (!subj.Name.toLowerCase().includes(searchTerm.toLowerCase())) { return null @@ -12,16 +12,15 @@ export default function SubjectSelector (props) { return (
onSubjSelect(subj.Name)} > - - {subj.Name} - + {subj.Name} [ {subj.Questions.length} ] diff --git a/src/components/layout.js b/src/components/layout.js index 6e1e6cf..f83a7e6 100644 --- a/src/components/layout.js +++ b/src/components/layout.js @@ -80,11 +80,15 @@ export default function Layout({
- Frylabs + + + Frylabs + +
{sidebarOpen ? ( @@ -123,9 +127,9 @@ export default function Layout({ rel="noreferrer" > Donate - +
-
+
{ diff --git a/src/components/sleep.js b/src/components/sleep.js index dfa2b6a..62efc19 100644 --- a/src/components/sleep.js +++ b/src/components/sleep.js @@ -1,18 +1,19 @@ import constants from '../constants.json' -export default function Sleep (props) { +export default function Sleep(props) { const hours = new Date().getHours() if (hours < 4 || hours > 23) { return ( -
+
diff --git a/src/data/helps.json b/src/data/helps.json index 9da4768..1220b1f 100644 --- a/src/data/helps.json +++ b/src/data/helps.json @@ -1,8 +1,5 @@ { - "header": [ - "Miben", - "Hogy" - ], + "header": ["Miben", "Hogy"], "rows": { "feedbacker": { "name": "Visszajelzésben", diff --git a/src/defaultStyles.css b/src/defaultStyles.css index b8d492a..165c227 100644 --- a/src/defaultStyles.css +++ b/src/defaultStyles.css @@ -15,7 +15,7 @@ body { } li { - padding: 2px 0px; + padding: 2px 0px; } a { @@ -195,7 +195,7 @@ input { } .endofpage { - padding-bottom: 20px; + padding-bottom: 20px; } .questionContainer { @@ -267,40 +267,40 @@ input { } .warning { - color: red; - font-weight: 100; - font-size: 17.5px; + color: red; + font-weight: 100; + font-size: 17.5px; } #manualWarn { - font-size: 14px; + font-size: 14px; } .manual_img { - padding: 20px 2px; + padding: 20px 2px; } .subtitle { - color: var(--text-color); - font-size: 23px; - text-align: center; - font-weight: 100; - margin: 0px; - padding-top: 8px; + color: var(--text-color); + font-size: 23px; + text-align: center; + font-weight: 100; + margin: 0px; + padding-top: 8px; } .pageHeader { - background-color: var(--text-color); - height: 45px; - max-width: 100%; - color: black; - margin: 5px 0px 0px 0px; + background-color: var(--text-color); + height: 45px; + max-width: 100%; + color: black; + margin: 5px 0px 0px 0px; } .pageHeader h1 { - padding-top: 6px; - letter-spacing: 7px; - margin: 0px; + padding-top: 6px; + letter-spacing: 7px; + margin: 0px; } .manualUsage { @@ -309,7 +309,7 @@ input { } .manualBody { - text-align: justify; + text-align: justify; } select { diff --git a/src/pages/404.js b/src/pages/404.js index c07144b..afd11fc 100644 --- a/src/pages/404.js +++ b/src/pages/404.js @@ -1,8 +1,15 @@ -export default function Custom404 () { +export default function Custom404() { return (

404

-