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": { "data": {
"href": "data.json", "href": "data.json",
"text": "Összes kérdés 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' import constants from '../constants.json'
@ -51,13 +51,7 @@ export default function Feedback (props) {
return ( return (
<div> <div>
<center> <IrcButton />
<a href='/irc'>
<div className={styles.ircLink}>
IRC chat
</div>
</a>
</center>
<p /> <p />
<hr /> <hr />
<p /> <p />

View file

@ -86,21 +86,24 @@ export default function Index (props) {
return ( return (
<div> <div>
{renderMotd()} {renderMotd()}
{Object.keys(links).map((key) => { <center>
let link = links[key]
return ( {Object.keys(links).map((key) => {
<span let link = links[key]
className='link' return (
key={key} <span
> className='link'
<a key={key}
href={link.href}
> >
{link.text} <a
</a> href={link.href}
</span> >
) {link.text}
})} </a>
</span>
)
})}
</center>
{renderNews()} {renderNews()}
</div> </div>
) )

View file

@ -1,3 +1,4 @@
import IrcButton from '../components/IrcButton.js'
import styles from './repos.module.css' import styles from './repos.module.css'
import repos from '../data/repos.json' import repos from '../data/repos.json'
@ -50,6 +51,7 @@ export default function Repos (props) {
})} })}
</tbody> </tbody>
</table> </table>
<IrcButton />
</div> </div>
) )
} }