IRC button module, removed some links

This commit is contained in:
MrFry 2020-03-19 18:30:15 +01:00
parent 647ca26892
commit 833b641578
6 changed files with 36 additions and 38 deletions

View file

@ -0,0 +1,15 @@
import styles from './ircButton.module.css'
export default function IrcButton (props) {
return (
<div>
<center>
<a href='/irc'>
<div className={styles.ircLink}>
IRC chat
</div>
</a>
</center>
</div>
)
}

View file

@ -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"
}
}

View file

@ -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 (
<div>
<center>
<a href='/irc'>
<div className={styles.ircLink}>
IRC chat
</div>
</a>
</center>
<IrcButton />
<p />
<hr />
<p />

View file

@ -86,6 +86,8 @@ export default function Index (props) {
return (
<div>
{renderMotd()}
<center>
{Object.keys(links).map((key) => {
let link = links[key]
return (
@ -101,6 +103,7 @@ export default function Index (props) {
</span>
)
})}
</center>
{renderNews()}
</div>
)

View file

@ -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) {
})}
</tbody>
</table>
<IrcButton />
</div>
)
}