JDG SVELTE UI is an in-progress UI framework by
Joshua Dean Goldstein.
Standard usages and tests of components are below.
Enjoy!
VersionPackageJson
Gets the version field of the package.json from a repo.
To demo, here's the version of JDG UI SVELTE and all consuming websites:
We've got lots of image components!
IMAGE
No fill container, show blur, show caption/attribution
Inside BodyCopy
IMAGE
This is a .gif, and won't get the height or width optimized if it's Cloudinary (for some reason,
that causes an error).
IMAGE TILE
No fill container, show blur, show caption/attribution
Inside BodyCopy
IMAGE TILE
No fill container, no blur in unfilled space
Inside BodyCopy
IMAGE TILE
No fill container, no blur in unfilled space, no caption/attr
Clicking goes to "./about"
IMAGE TILE
Clicking goes to Google but in a new tab. It also shows a label.
IMAGE TILE
The label on this ImageTile is centered.
IMAGE TILE
With label and custom label background color. Also has a custom "pre-label."
IMAGE TILE
No blur allowed in imageMeta
IMAGE FULL WIDTH
IMAGE CAROUSEL
in a full-width container
Note that the 2nd image will not have a blur
IMAGE COMPARE
in a full-width container
2 ITEMS
3+ ITEMS
compactModeOnMobile true:
3+ ITEMS
compactModeOnMobile false:
HYBRID GRID/CAROUSEL
3+ ITEMS
(will become ImageCarousel on smallest breakpoint)
And this is body copy!
This JDGBodyCopy has a text color override. And a hyperlink for testing! The hyperlink should have the same color as the text.
This JDGBodyCopy has a text color override and simple hyperlinks. And a hyperlink for testing! The hyperlink should remain the "simple hyperlink" color.
This body copy has regular hyperlink styles. They're useful for short words, no more than a few at a time.
This body copy has simplified hyperlink styles. These are useful for longer sections of text which might be hyperlinks but could also wrap.
Accent blocks can be used with a couple of different approaches:
Varying widths:
Consistent width:
Square aspect ratio:
Displays a colorful rectangle containing an imageTile and description text.
This section tests the floating content box. The title should balance itself thanks to text-wrap: balance;.