1
0
Fork 0

wip: Work on design pages

This commit is contained in:
joostdecock 2025-01-02 14:29:32 +01:00
parent f96594f528
commit 799a5ec08a
65 changed files with 89 additions and 1523 deletions

View file

@ -1,3 +1,30 @@
import React from 'react'
import { LineDrawingWrapper, regular } from './shared.mjs'
export const MissingLinedrawing = () => <span>no linedrawing for this design</span>
/**
* A linedrawing component for designs that do not (yet) have their own
*
* @param {object} props - All React props
* @param {string} props.className - Any CSS classes to apply
* @param {number} props.stroke - The stroke width to apply
*/
export const MissingLinedrawing = ({ className, stroke = 1 }) => (
<LineDrawingWrapper viewBox="0 0 100 100" {...{ className }}>
<path
key="stitches"
{...regular(stroke * 3)}
d="m 20 20 L 80 80 M 20 80 L 80 20"
style={{ opacity: 0.6 }}
/>
<text
fill="currentColor"
stroke="none"
textAnchor="middle"
style={{ fontSize: '7px', opacity: '0.6' }}
>
<tspan x="50" y="90">
No line drawing (yet)
</tspan>
</text>
</LineDrawingWrapper>
)