-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* upgrade to Next 10 * add function names
- Loading branch information
Showing
8 changed files
with
496 additions
and
265 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,29 @@ | ||
import React from 'react' | ||
|
||
export default ({ photographer }) => ( | ||
<div className="photo-credit"> | ||
Photo by{' '} | ||
<a href={`${photographer.profile_url}?utm_source=carbon&utm_medium=referral`}> | ||
{photographer.name} | ||
</a> | ||
<style jsx> | ||
{` | ||
.photo-credit { | ||
cursor: unset; | ||
user-select: none; | ||
text-align: left; | ||
font-size: 10px; | ||
color: #aaa; | ||
margin-bottom: -2px; | ||
} | ||
export default function PhotoCredit({ photographer }) { | ||
return ( | ||
<div className="photo-credit"> | ||
Photo by{' '} | ||
<a href={`${photographer.profile_url}?utm_source=carbon&utm_medium=referral`}> | ||
{photographer.name} | ||
</a> | ||
<style jsx> | ||
{` | ||
.photo-credit { | ||
cursor: unset; | ||
user-select: none; | ||
text-align: left; | ||
font-size: 10px; | ||
color: #aaa; | ||
margin-bottom: -2px; | ||
} | ||
.photo-credit a { | ||
cursor: pointer; | ||
text-decoration: underline; | ||
} | ||
`} | ||
</style> | ||
</div> | ||
) | ||
.photo-credit a { | ||
cursor: pointer; | ||
text-decoration: underline; | ||
} | ||
`} | ||
</style> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,24 @@ | ||
import React from 'react' | ||
|
||
export default ({ fromLeft, fromRight, color = '#fff' }) => ( | ||
<div> | ||
<div className="window-pointer" /> | ||
<style jsx> | ||
{` | ||
.window-pointer { | ||
width: 0px; | ||
height: 0px; | ||
border-style: solid; | ||
border-width: 0 5px 6px 5px; | ||
border-color: transparent transparent ${color} transparent; | ||
position: absolute; | ||
top: -8px; | ||
left: ${fromLeft || 'initial'}; | ||
right: ${fromRight || 'initial'}; | ||
} | ||
`} | ||
</style> | ||
</div> | ||
) | ||
export default function WindowPointer({ fromLeft, fromRight, color = '#fff' }) { | ||
return ( | ||
<div> | ||
<div className="window-pointer" /> | ||
<style jsx> | ||
{` | ||
.window-pointer { | ||
width: 0px; | ||
height: 0px; | ||
border-style: solid; | ||
border-width: 0 5px 6px 5px; | ||
border-color: transparent transparent ${color} transparent; | ||
position: absolute; | ||
top: -8px; | ||
left: ${fromLeft || 'initial'}; | ||
right: ${fromRight || 'initial'}; | ||
} | ||
`} | ||
</style> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
import React from 'react' | ||
|
||
export default ({ width = 18, height = 18, color = '#FFFFFF' }) => ( | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
width={width} | ||
height={height} | ||
viewBox="0 0 18 18" | ||
fill="none" | ||
> | ||
<path | ||
d="M9 0C4.02837 0 0 4.02837 0 9C0 13.9716 4.02837 18 9 18C13.9716 18 18 13.9716 18 9C18 4.02837 13.9716 0 9 0ZM13.6082 6.51202L7.82308 12.3231H7.81875C7.74519 12.3966 7.54615 12.5611 7.31683 12.5611C7.1524 12.5611 6.96635 12.4702 6.81058 12.3144L4.3875 9.89135C4.31827 9.82212 4.31827 9.71394 4.3875 9.64471L5.15769 8.87452C5.19231 8.8399 5.23558 8.8226 5.27885 8.8226C5.32212 8.8226 5.36539 8.8399 5.4 8.87452L7.32115 10.7957L12.6 5.47788C12.6346 5.44327 12.6779 5.42596 12.7212 5.42596C12.7688 5.42596 12.812 5.44327 12.8423 5.47788L13.5995 6.26106C13.6774 6.33462 13.6774 6.44279 13.6082 6.51202Z" | ||
fill={color} | ||
/> | ||
</svg> | ||
) | ||
export default function Checkmark({ width = 18, height = 18, color = '#FFFFFF' }) { | ||
return ( | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
width={width} | ||
height={height} | ||
viewBox="0 0 18 18" | ||
fill="none" | ||
> | ||
<path | ||
d="M9 0C4.02837 0 0 4.02837 0 9C0 13.9716 4.02837 18 9 18C13.9716 18 18 13.9716 18 9C18 4.02837 13.9716 0 9 0ZM13.6082 6.51202L7.82308 12.3231H7.81875C7.74519 12.3966 7.54615 12.5611 7.31683 12.5611C7.1524 12.5611 6.96635 12.4702 6.81058 12.3144L4.3875 9.89135C4.31827 9.82212 4.31827 9.71394 4.3875 9.64471L5.15769 8.87452C5.19231 8.8399 5.23558 8.8226 5.27885 8.8226C5.32212 8.8226 5.36539 8.8399 5.4 8.87452L7.32115 10.7957L12.6 5.47788C12.6346 5.44327 12.6779 5.42596 12.7212 5.42596C12.7688 5.42596 12.812 5.44327 12.8423 5.47788L13.5995 6.26106C13.6774 6.33462 13.6774 6.44279 13.6082 6.51202Z" | ||
fill={color} | ||
/> | ||
</svg> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
import React from 'react' | ||
|
||
export default ({ color = 'black', style }) => ( | ||
<svg | ||
width="5" | ||
height="5" | ||
viewBox="0 0 5 5" | ||
fill="none" | ||
xmlns="http://www.w3.org/2000/svg" | ||
style={style} | ||
> | ||
<path | ||
d="M2.5 3.08725L4.41704 5L5 4.41834L3.08857 2.5L5 0.581656L4.41704 0L2.5 1.91275L0.58296 0L0 0.581656L1.91144 2.5L0 4.41834L0.58296 5L2.5 3.08725Z" | ||
fill={color} | ||
/> | ||
</svg> | ||
) | ||
export default function Remove({ color = 'black', style }) { | ||
return ( | ||
<svg | ||
width="5" | ||
height="5" | ||
viewBox="0 0 5 5" | ||
fill="none" | ||
xmlns="http://www.w3.org/2000/svg" | ||
style={style} | ||
> | ||
<path | ||
d="M2.5 3.08725L4.41704 5L5 4.41834L3.08857 2.5L5 0.581656L4.41704 0L2.5 1.91275L0.58296 0L0 0.581656L1.91144 2.5L0 4.41834L0.58296 5L2.5 3.08725Z" | ||
fill={color} | ||
/> | ||
</svg> | ||
) | ||
} |
Oops, something went wrong.