From 797f1f70b455ab7c5ad883833bf3cf36ca1eaf3b Mon Sep 17 00:00:00 2001 From: SeaZeeZee Date: Sun, 6 Apr 2025 14:45:49 +0000 Subject: [PATCH] [react] feat: add jane linedrawings (#211) Adds linedrawings to Jane's design page. Co-authored-by: SeaZeeZee <86711383+SeaZeeZee@users.noreply.github.com> Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/211 Reviewed-by: Joost De Cock Co-authored-by: SeaZeeZee Co-committed-by: SeaZeeZee --- .../react/components/LineDrawing/index.mjs | 8 ++ .../react/components/LineDrawing/jane.mjs | 74 +++++++++++++++++++ 2 files changed, 82 insertions(+) create mode 100644 packages/react/components/LineDrawing/jane.mjs diff --git a/packages/react/components/LineDrawing/index.mjs b/packages/react/components/LineDrawing/index.mjs index 6aa103de6e9..0725315999a 100644 --- a/packages/react/components/LineDrawing/index.mjs +++ b/packages/react/components/LineDrawing/index.mjs @@ -23,6 +23,7 @@ import { Holmes, HolmesFront } from './holmes.mjs' import { Hortensia, HortensiaFront } from './hortensia.mjs' import { Huey, HueyFront, HueyBack } from './huey.mjs' import { Hugo, HugoFront, HugoBack } from './hugo.mjs' +import { Jane, JaneFront, JaneBack } from './jane.mjs' import { Lucy, LucyFront } from './lucy.mjs' import { Lumina, LuminaFront, LuminaBack } from './lumina.mjs' import { Lumira, LumiraFront, LumiraBack } from './lumira.mjs' @@ -64,6 +65,7 @@ const lineDrawingsFront = { hortensia: HortensiaFront, huey: HueyFront, hugo: HugoFront, + jane: JaneFront, lucy: LucyFront, lumina: LuminaFront, @@ -102,6 +104,7 @@ const lineDrawingsBack = { gozer: GozerBack, huey: HueyBack, hugo: HugoBack, + jane: JaneBack, lumina: LuminaBack, lumira: LumiraBack, noble: NobleBack, @@ -142,6 +145,7 @@ const lineDrawings = { hortensia: Hortensia, huey: Huey, hugo: Hugo, + jane: Jane, lucy: Lucy, lumina: Lumina, @@ -259,6 +263,10 @@ export { Hugo, HugoFront, HugoBack, + // Jane + Jane, + JaneFront, + JaneBack, // Lucy Lucy, LucyFront, diff --git a/packages/react/components/LineDrawing/jane.mjs b/packages/react/components/LineDrawing/jane.mjs new file mode 100644 index 00000000000..f9ee630e8ed --- /dev/null +++ b/packages/react/components/LineDrawing/jane.mjs @@ -0,0 +1,74 @@ +import React from 'react' +import { LineDrawingWrapper, thin, dashed } from './shared.mjs' + +/* + * This strokeScale factor is used to normalize the stroke across + * designs so we have a consistent look when showing our collection + */ +const strokeScale = 0.5 + +/** + * A linedrawing component for Aaron + * + * @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 Jane = ({ className, stroke = 1 }) => ( + + + + +) + +/** + * A linedrawing component for the front of Aaron + * + * @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 JaneFront = ({ className, stroke = 1 }) => ( + + + +) + +/** + * A linedrawing component for the front of Aaron + * + * @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 JaneBack = ({ className, stroke = 1 }) => ( + + + +) + +/* + * SVG elements for the front + */ +export const Front = ({ stroke }) => ( + <> + + +) + +/* + * SVG elements for the back + */ +const Back = ({ stroke }) => ( + <> + + +)