This repository has been archived by the owner on Aug 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
74a86f8
commit af2ade9
Showing
23 changed files
with
968 additions
and
621 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
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
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export { default as Moon } from './moon' | ||
export { default as Sun } from './sun' |
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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/* eslint-disable max-len */ | ||
import * as React from 'react' | ||
import PropTypes from 'prop-types' | ||
import { withTheme } from 'styled-components' | ||
|
||
function Moon({ theme, fill, filled, size, height, width, label, ...props }) { | ||
if (filled) { | ||
return ( | ||
<svg | ||
viewBox='0 0 512 512' | ||
width={size || width || 24} | ||
height={size || height || 24} | ||
{...props} | ||
> | ||
<path | ||
fill={fill || theme.colors.primary} | ||
d='M152.62 126.77c0-33 4.85-66.35 17.23-94.77C87.54 67.83 32 151.89 32 247.38 32 375.85 136.15 480 264.62 480c95.49 0 179.55-55.54 215.38-137.85-28.42 12.38-61.8 17.23-94.77 17.23-128.47 0-232.61-104.14-232.61-232.61z' | ||
/> | ||
</svg> | ||
) | ||
} | ||
return ( | ||
<svg | ||
viewBox='0 0 512 512' | ||
width={size || width || 24} | ||
height={size || height || 24} | ||
{...props} | ||
> | ||
<path | ||
d='M160 136c0-30.62 4.51-61.61 16-88C99.57 81.27 48 159.32 48 248c0 119.29 96.71 216 216 216 88.68 0 166.73-51.57 200-128-26.39 11.49-57.38 16-88 16-119.29 0-216-96.71-216-216z' | ||
fill='none' | ||
stroke={fill || theme.accents.a3} | ||
strokeLinecap='round' | ||
strokeLinejoin='round' | ||
strokeWidth={32} | ||
/> | ||
</svg> | ||
) | ||
} | ||
|
||
Moon.propTypes = { | ||
theme: PropTypes.object, | ||
filled: PropTypes.bool, | ||
fill: PropTypes.string, | ||
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), | ||
width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), | ||
height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), | ||
label: PropTypes.string | ||
} | ||
|
||
export default withTheme(Moon) |
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 |
---|---|---|
@@ -0,0 +1,61 @@ | ||
/* eslint-disable max-len */ | ||
import * as React from 'react' | ||
import PropTypes from 'prop-types' | ||
import { withTheme } from 'styled-components' | ||
|
||
function Sun({ theme, fill, filled, size, height, width, label, ...props }) { | ||
if (filled) { | ||
return ( | ||
<svg | ||
viewBox='0 0 512 512' | ||
width={size || width || 24} | ||
height={size || height || 24} | ||
{...props} | ||
> | ||
<path | ||
fill={fill || theme.colors.primary} | ||
d='M256 118a22 22 0 01-22-22V48a22 22 0 0144 0v48a22 22 0 01-22 22zM256 486a22 22 0 01-22-22v-48a22 22 0 0144 0v48a22 22 0 01-22 22zM369.14 164.86a22 22 0 01-15.56-37.55l33.94-33.94a22 22 0 0131.11 31.11l-33.94 33.94a21.93 21.93 0 01-15.55 6.44zM108.92 425.08a22 22 0 01-15.55-37.56l33.94-33.94a22 22 0 1131.11 31.11l-33.94 33.94a21.94 21.94 0 01-15.56 6.45zM464 278h-48a22 22 0 010-44h48a22 22 0 010 44zM96 278H48a22 22 0 010-44h48a22 22 0 010 44zM403.08 425.08a21.94 21.94 0 01-15.56-6.45l-33.94-33.94a22 22 0 0131.11-31.11l33.94 33.94a22 22 0 01-15.55 37.56zM142.86 164.86a21.89 21.89 0 01-15.55-6.44l-33.94-33.94a22 22 0 0131.11-31.11l33.94 33.94a22 22 0 01-15.56 37.55zM256 358a102 102 0 11102-102 102.12 102.12 0 01-102 102z' | ||
/> | ||
</svg> | ||
) | ||
} | ||
return ( | ||
<svg | ||
viewBox='0 0 512 512' | ||
width={size || width || 24} | ||
height={size || height || 24} | ||
{...props} | ||
> | ||
<path | ||
fill='none' | ||
stroke={fill || theme.accents.a3} | ||
strokeLinecap='round' | ||
strokeMiterlimit={10} | ||
strokeWidth={32} | ||
d='M256 48v48M256 416v48M403.08 108.92l-33.94 33.94M142.86 369.14l-33.94 33.94M464 256h-48M96 256H48M403.08 403.08l-33.94-33.94M142.86 142.86l-33.94-33.94' | ||
/> | ||
<circle | ||
cx={256} | ||
cy={256} | ||
r={80} | ||
fill='none' | ||
stroke={fill || theme.accents.a3} | ||
strokeLinecap='round' | ||
strokeMiterlimit={10} | ||
strokeWidth={32} | ||
/> | ||
</svg> | ||
) | ||
} | ||
|
||
Sun.propTypes = { | ||
theme: PropTypes.object, | ||
filled: PropTypes.bool, | ||
fill: PropTypes.string, | ||
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), | ||
width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), | ||
height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), | ||
label: PropTypes.string | ||
} | ||
|
||
export default withTheme(Sun) |
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
Oops, something went wrong.
af2ade9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: