Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
@gyldendal/kobber-scene
Advanced tools
Components for rendering scene objects from Gyldendal's CMS.
See Scene.stories.tsx for examples.
Can be imported as web components or react components:
@gyldendal/kobber-scene/web-components
@gyldendal/kobber-scene/react
Enums that match data from CMS are defined in types.ts
Pass CMS-data and other variables through the calculatePadding
-function and pass it to kobber-scene-boundary
to apply css paddings.
import { calculatePadding } from '@gyldendal/kobber-scene/web-components';
const padding = calculatePadding({
cmsWhiteSpace: sceneFromCms.sceneWhitespace,
cmsHorizontalAlignment: sceneFromCms.sceneHorizontalAlignments
});
<kobber-scene>
<kobber-scene-boundary padding=${JSON.stringify(padding)}>
...
</kobber-scene-boundary>
</kobber-scene>
The following rules are applied to thousands of scenes in Skolestudio:
sc-feature-header
and sc-card-carousel
are displayed in full widthsc-feature-header
affects the wrapping row's bottom paddingTo apply the same rules, pass scene.rows
through groupRowsByPresentation and render each rowGroup
as in Skolestudio.
FAQs
Components for rendering scene objects from Gyldendal's CMS.
The npm package @gyldendal/kobber-scene receives a total of 156 weekly downloads. As such, @gyldendal/kobber-scene popularity was classified as not popular.
We found that @gyldendal/kobber-scene demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.