Layout of Tumblr icon, added Instagram in example
This commit is contained in:
parent
45f5d7ba65
commit
6949054197
3 changed files with 10 additions and 3 deletions
|
@ -1,6 +1,7 @@
|
|||
import './App.css';
|
||||
import {Button, ButtonGroup} from 'react-bootstrap';
|
||||
import 'bootstrap/dist/css/bootstrap.min.css';
|
||||
import { IconContext } from 'react-icons/lib';
|
||||
import { BsFacebook, BsInstagram, BsTwitter, BsGithub, BsYoutube, BsLinkedin, BsPinterest, BsReddit } from 'react-icons/bs';
|
||||
import {GrTumblr} from 'react-icons/gr';
|
||||
import Tumblr from './icons/Tumblr';
|
||||
|
@ -37,7 +38,7 @@ function App() {
|
|||
res = <Button className="roots" id="pinterest" variant="primary" href={rootDetail.url}><BsPinterest/> {rootDetail.text}</Button>
|
||||
}
|
||||
else if (rootDetail.type === "tumblr") {
|
||||
res = <Button className="roots" id="tumblr" variant="primary" href={rootDetail.url}><GrTumblr/> {rootDetail.text}</Button>
|
||||
res = <Button className="roots" id="tumblr" variant="primary" href={rootDetail.url}><IconContext.Provider value={{size: "1.05em"}}><GrTumblr/></IconContext.Provider> <div className="text">{rootDetail.text}</div></Button>
|
||||
}
|
||||
else if (rootDetail.type === "reddit") {
|
||||
res = <Button className="roots" id="reddit" variant="primary" href={rootDetail.url}><BsReddit/> {rootDetail.text}</Button>
|
||||
|
|
|
@ -20,6 +20,11 @@
|
|||
"type": "tumblr",
|
||||
"url": "https://mikwee.tumblr.com",
|
||||
"text": "My personal Tumblr blog"
|
||||
},
|
||||
{
|
||||
"type": "instagram",
|
||||
"url": "https://instagram.com",
|
||||
"text": "Instagram"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -31,8 +31,9 @@ $btn-border-width: 0px;
|
|||
#tumblr {
|
||||
background-color: #35465c;
|
||||
display: flex;
|
||||
.icon {
|
||||
flex-grow: 1;
|
||||
align-items: center;
|
||||
.text {
|
||||
margin-left: 1mm;
|
||||
}
|
||||
}
|
||||
#reddit {
|
||||
|
|
Loading…
Reference in a new issue