diff --git a/src/components/IrcButton.js b/src/components/IrcButton.js new file mode 100644 index 0000000..be532c5 --- /dev/null +++ b/src/components/IrcButton.js @@ -0,0 +1,15 @@ +import styles from './ircButton.module.css' + +export default function IrcButton (props) { + return ( +
+
+ +
+ IRC chat +
+
+
+
+ ) +} diff --git a/src/pages/feedback.module.css b/src/components/ircButton.module.css similarity index 100% rename from src/pages/feedback.module.css rename to src/components/ircButton.module.css diff --git a/src/data/links.json b/src/data/links.json index 4eb9e5b..a0e576b 100644 --- a/src/data/links.json +++ b/src/data/links.json @@ -10,21 +10,5 @@ "data": { "href": "data.json", "text": "Összes kérdés JSON" - }, - "server": { - "href": "servergit", - "text": "Szerver repó" - }, - "client": { - "href": "scriptgit", - "text": "Script git" - }, - "classes": { - "href": "classesgit", - "text": "Classes git" - }, - "qmining": { - "href": "qminingSite", - "text": "Qmining module website" } } diff --git a/src/pages/feedback.js b/src/pages/feedback.js index 0fe39d8..fd74871 100644 --- a/src/pages/feedback.js +++ b/src/pages/feedback.js @@ -1,4 +1,4 @@ -import styles from './feedback.module.css' +import IrcButton from '../components/IrcButton.js' import constants from '../constants.json' @@ -51,13 +51,7 @@ export default function Feedback (props) { return (
-
- -
- IRC chat -
-
-
+


diff --git a/src/pages/index.js b/src/pages/index.js index cc48d4c..390b739 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -86,21 +86,24 @@ export default function Index (props) { return (

{renderMotd()} - {Object.keys(links).map((key) => { - let link = links[key] - return ( - - + + {Object.keys(links).map((key) => { + let link = links[key] + return ( + - {link.text} - - - ) - })} + + {link.text} + + + ) + })} + {renderNews()}
) diff --git a/src/pages/repos.js b/src/pages/repos.js index b236761..b8cb5f6 100644 --- a/src/pages/repos.js +++ b/src/pages/repos.js @@ -1,3 +1,4 @@ +import IrcButton from '../components/IrcButton.js' import styles from './repos.module.css' import repos from '../data/repos.json' @@ -50,6 +51,7 @@ export default function Repos (props) { })} +
) }