Skip to main content
Glama

Storyden

by Southclaws
Mozilla Public License 2.0
227
aspect-ratio.mjs965 B
import { getPatternStyles, patternFns } from '../helpers.mjs'; import { css } from '../css/index.mjs'; const aspectRatioConfig = { transform(props, { map }) { const { ratio = 4 / 3, ...rest } = props; return { position: "relative", _before: { content: `""`, display: "block", height: "0", paddingBottom: map(ratio, (r) => `${1 / r * 100}%`) }, "&>*": { display: "flex", justifyContent: "center", alignItems: "center", overflow: "hidden", position: "absolute", inset: "0", width: "100%", height: "100%" }, "&>img, &>video": { objectFit: "cover" }, ...rest }; }} export const getAspectRatioStyle = (styles = {}) => { const _styles = getPatternStyles(aspectRatioConfig, styles) return aspectRatioConfig.transform(_styles, patternFns) } export const aspectRatio = (styles) => css(getAspectRatioStyle(styles)) aspectRatio.raw = getAspectRatioStyle

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Southclaws/storyden'

If you have feedback or need assistance with the MCP directory API, please join our Discord server