mirror of
https://gitlab.com/MrFry/qmining-page
synced 2025-04-01 20:23:44 +02:00
IRC button module, removed some links
This commit is contained in:
parent
647ca26892
commit
833b641578
6 changed files with 36 additions and 38 deletions
15
src/components/IrcButton.js
Normal file
15
src/components/IrcButton.js
Normal 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>
|
||||
)
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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 />
|
||||
|
|
|
@ -86,21 +86,24 @@ export default function Index (props) {
|
|||
return (
|
||||
<div>
|
||||
{renderMotd()}
|
||||
{Object.keys(links).map((key) => {
|
||||
let link = links[key]
|
||||
return (
|
||||
<span
|
||||
className='link'
|
||||
key={key}
|
||||
>
|
||||
<a
|
||||
href={link.href}
|
||||
<center>
|
||||
|
||||
{Object.keys(links).map((key) => {
|
||||
let link = links[key]
|
||||
return (
|
||||
<span
|
||||
className='link'
|
||||
key={key}
|
||||
>
|
||||
{link.text}
|
||||
</a>
|
||||
</span>
|
||||
)
|
||||
})}
|
||||
<a
|
||||
href={link.href}
|
||||
>
|
||||
{link.text}
|
||||
</a>
|
||||
</span>
|
||||
)
|
||||
})}
|
||||
</center>
|
||||
{renderNews()}
|
||||
</div>
|
||||
)
|
||||
|
|
|
@ -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>
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue