Add options to GithubCorner
This commit is contained in:
parent
8804e9aaf0
commit
a75dceb89b
2 changed files with 14 additions and 4 deletions
|
|
@ -5,7 +5,6 @@
|
|||
z-index: 2;
|
||||
}
|
||||
.GithubCorner svg {
|
||||
fill: #151513;
|
||||
color: #fff;
|
||||
border: 0;
|
||||
max-width: 12.5vmin;
|
||||
|
|
|
|||
|
|
@ -1,9 +1,20 @@
|
|||
import React from 'react'
|
||||
import './GithubCorner.css'
|
||||
|
||||
export default ({ url }) => (
|
||||
<a className='GithubCorner' href={url} aria-label='View source on Github'>
|
||||
<svg width='80' height='80' viewBox='0 0 250 250' aria-hidden='true'>
|
||||
export default ({ url, style, className = '', color = '#151513' }) => (
|
||||
<a
|
||||
className={`GithubCorner ${className}`}
|
||||
href={url}
|
||||
aria-label='View source on Github'
|
||||
style={style}
|
||||
>
|
||||
<svg
|
||||
width='80'
|
||||
height='80'
|
||||
viewBox='0 0 250 250'
|
||||
aria-hidden='true'
|
||||
fill={color}
|
||||
>
|
||||
<path d='M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z' />
|
||||
<path
|
||||
className='octo-arm'
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue