wip: Work on design pages
This commit is contained in:
parent
6fb1fd00ce
commit
f96594f528
183 changed files with 3255 additions and 1078 deletions
|
@ -426,7 +426,7 @@ export const DesignInfo = ({ Link = false, design = false, noDocsLink = false })
|
|||
<div className="tw-mt-2 tw-text-sm tw-opacity-70 tw-font-medium">Difficulty</div>
|
||||
<Difficulty score={about[design].difficulty} />
|
||||
|
||||
{optionalMeasurements[design] ? (
|
||||
{optionalMeasurements[design].length > 0 ? (
|
||||
<>
|
||||
<div className="tw-mt-2 tw-text-sm tw-opacity-70 tw-font-medium">
|
||||
Optional Measurements
|
||||
|
@ -434,7 +434,11 @@ export const DesignInfo = ({ Link = false, design = false, noDocsLink = false })
|
|||
<div className="">
|
||||
{optionalMeasurements[design].map((m, i) => (
|
||||
<>
|
||||
<Link href={`/docs/measurements/${m.toLowerCase()}`} key={m}>
|
||||
<Link
|
||||
href={`/docs/measurements/${m.toLowerCase()}`}
|
||||
key={m}
|
||||
className={linkClasses}
|
||||
>
|
||||
{measurementsTranslations[m]}
|
||||
</Link>
|
||||
{i < optionalMeasurements[design].length - 1 ? <span>, </span> : null}
|
||||
|
@ -444,7 +448,7 @@ export const DesignInfo = ({ Link = false, design = false, noDocsLink = false })
|
|||
</>
|
||||
) : null}
|
||||
|
||||
{requiredMeasurements[design] ? (
|
||||
{requiredMeasurements[design].length > 0 ? (
|
||||
<>
|
||||
<div className="tw-mt-2 tw-text-sm tw-opacity-70 tw-font-medium">
|
||||
Required Measurements
|
||||
|
@ -452,7 +456,11 @@ export const DesignInfo = ({ Link = false, design = false, noDocsLink = false })
|
|||
<div className="">
|
||||
{requiredMeasurements[design].map((m, i) => (
|
||||
<>
|
||||
<Link href={`/docs/measurements/${m.toLowerCase()}`} key={m}>
|
||||
<Link
|
||||
href={`/docs/measurements/${m.toLowerCase()}`}
|
||||
key={m}
|
||||
className={linkClasses}
|
||||
>
|
||||
{measurementsTranslations[m]}
|
||||
</Link>
|
||||
{i < requiredMeasurements[design].length - 1 ? <span>, </span> : null}
|
||||
|
|
|
@ -5,7 +5,7 @@ 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 = 1.5
|
||||
const strokeScale = 1.8
|
||||
|
||||
/**
|
||||
* A linedrawing component for Charlie
|
||||
|
|
|
@ -35,6 +35,8 @@ import { Uma, UmaFront, UmaBack } from './uma.mjs'
|
|||
import { Umbra, UmbraFront, UmbraBack } from './umbra.mjs'
|
||||
import { Wahid, WahidFront, WahidBack } from './wahid.mjs'
|
||||
|
||||
import { MissingLinedrawing } from './missing.mjs'
|
||||
|
||||
/*
|
||||
* Bundle all fronts
|
||||
*/
|
||||
|
@ -61,20 +63,41 @@ const lineDrawingsFront = {
|
|||
gozer: GozerFront,
|
||||
hi: HiFront,
|
||||
holmes: HolmesFront,
|
||||
hortensia: HortensiaFront,
|
||||
huey: HueyFront,
|
||||
hugo: HugoFront,
|
||||
jaeger: MissingLinedrawing,
|
||||
jane: MissingLinedrawing,
|
||||
lily: MissingLinedrawing,
|
||||
lucy: LucyFront,
|
||||
lumina: LuminaFront,
|
||||
lumira: LumiraFront,
|
||||
lunetius: LunetiusFront,
|
||||
noble: NobleFront,
|
||||
hortensia: HortensiaFront,
|
||||
octoplushy: MissingLinedrawing,
|
||||
onyx: MissingLinedrawing,
|
||||
opal: MissingLinedrawing,
|
||||
otis: MissingLinedrawing,
|
||||
paco: MissingLinedrawing,
|
||||
penelope: MissingLinedrawing,
|
||||
sandy: MissingLinedrawing,
|
||||
shelly: MissingLinedrawing,
|
||||
shin: MissingLinedrawing,
|
||||
simon: SimonFront,
|
||||
simone: MissingLinedrawing,
|
||||
skully: MissingLinedrawing,
|
||||
sven: MissingLinedrawing,
|
||||
tamiko: MissingLinedrawing,
|
||||
teagan: TeaganFront,
|
||||
tiberius: MissingLinedrawing,
|
||||
titan: MissingLinedrawing,
|
||||
tristan: TristanFront,
|
||||
uma: UmaFront,
|
||||
umbra: UmbraFront,
|
||||
wahid: WahidFront,
|
||||
walburga: MissingLinedrawing,
|
||||
waralee: MissingLinedrawing,
|
||||
yuri: MissingLinedrawing,
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -135,20 +158,41 @@ const lineDrawings = {
|
|||
gozer: Gozer,
|
||||
hi: Hi,
|
||||
holmes: Holmes,
|
||||
hortensia: Hortensia,
|
||||
huey: Huey,
|
||||
hugo: Hugo,
|
||||
jaeger: MissingLinedrawing,
|
||||
jane: MissingLinedrawing,
|
||||
lily: MissingLinedrawing,
|
||||
lucy: Lucy,
|
||||
lumina: Lumina,
|
||||
lumira: Lumira,
|
||||
lunetius: Lunetius,
|
||||
noble: Noble,
|
||||
hortensia: Hortensia,
|
||||
octoplushy: MissingLinedrawing,
|
||||
onyx: MissingLinedrawing,
|
||||
opal: MissingLinedrawing,
|
||||
otis: MissingLinedrawing,
|
||||
paco: MissingLinedrawing,
|
||||
penelope: MissingLinedrawing,
|
||||
sandy: MissingLinedrawing,
|
||||
shelly: MissingLinedrawing,
|
||||
shin: MissingLinedrawing,
|
||||
simon: Simon,
|
||||
simone: MissingLinedrawing,
|
||||
skully: MissingLinedrawing,
|
||||
sven: MissingLinedrawing,
|
||||
tamiko: MissingLinedrawing,
|
||||
teagan: Teagan,
|
||||
tiberius: MissingLinedrawing,
|
||||
titan: MissingLinedrawing,
|
||||
tristan: Tristan,
|
||||
uma: Uma,
|
||||
umbra: Umbra,
|
||||
wahid: Wahid,
|
||||
walburga: MissingLinedrawing,
|
||||
waralee: MissingLinedrawing,
|
||||
yuri: MissingLinedrawing,
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -5,7 +5,7 @@ import { LineDrawingWrapper, regular } 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.7
|
||||
const strokeScale = 0.9
|
||||
|
||||
/**
|
||||
* A linedrawing component for Hugo
|
||||
|
|
|
@ -5,7 +5,7 @@ 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.8
|
||||
const strokeScale = 1.2
|
||||
|
||||
/**
|
||||
* A linedrawing component for Lumira
|
||||
|
|
|
@ -5,7 +5,7 @@ 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 = 1.2
|
||||
const strokeScale = 1.5
|
||||
|
||||
/**
|
||||
* A linedrawing component for Lunetius
|
||||
|
|
3
packages/react/components/LineDrawing/missing.mjs
Normal file
3
packages/react/components/LineDrawing/missing.mjs
Normal file
|
@ -0,0 +1,3 @@
|
|||
import React from 'react'
|
||||
|
||||
export const MissingLinedrawing = () => <span>no linedrawing for this design</span>
|
Loading…
Add table
Add a link
Reference in a new issue