1
0
Fork 0
freesewing/sites/shared/components/logos/freesewing.js

37 lines
861 B
JavaScript
Raw Normal View History

import React from 'react'
2022-10-12 20:40:08 +02:00
import { path } from 'shared/components/icons/freesewing.js'
import colors from 'tailwindcss/colors'
2021-12-26 16:43:35 +01:00
const strokes = {
light: colors.neutral[300],
dark: colors.neutral[800],
hax0r: colors.lime[700],
lgbtq: colors.neutral[500],
trans: colors.neutral[500],
}
let step = 0
2022-10-12 20:40:08 +02:00
const Logo = ({ className = 'w-20 h-20', theme = 'light', stroke = false }) => {
const svgProps = {
xmlns: 'http://www.w3.org/2000/svg',
2022-06-09 13:35:06 +02:00
viewBox: '1 0 25 25',
2022-10-12 20:40:08 +02:00
className: className,
}
return (
<svg {...svgProps}>
<defs>
2021-12-27 17:33:31 +01:00
<path id="react-logo" d={path} />
</defs>
2022-10-12 20:40:08 +02:00
<use
xlinkHref="#react-logo"
fill="none"
stroke={stroke || strokes[theme]}
strokeWidth="0.5"
/>
<use xlinkHref="#react-logo" fill="currentColor" stroke="none" />
</svg>
)
}
export default Logo