mirror of
https://gitlab.com/MrFry/qmining-page
synced 2025-04-01 20:23:44 +02:00
Added button component
This commit is contained in:
parent
b4dc053e1f
commit
615c77a1b1
2 changed files with 25 additions and 0 deletions
15
src/components/Button.js
Normal file
15
src/components/Button.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
import styles from './button.module.css'
|
||||
|
||||
export default function Button (props) {
|
||||
return (
|
||||
<div>
|
||||
<center>
|
||||
<a href={props.href}>
|
||||
<div className={styles.ircLink}>
|
||||
{props.text}
|
||||
</div>
|
||||
</a>
|
||||
</center>
|
||||
</div>
|
||||
)
|
||||
}
|
10
src/components/button.module.css
Normal file
10
src/components/button.module.css
Normal file
|
@ -0,0 +1,10 @@
|
|||
.ircLink {
|
||||
background-color: #9999ff;
|
||||
border: none;
|
||||
color: white;
|
||||
padding: 15px 32px;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
display: inline-block;
|
||||
font-size: 16px;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue