cinqcinqdev-seo 0.1.58 → 0.1.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/module.json
CHANGED
|
@@ -54,7 +54,17 @@ const props = defineProps({
|
|
|
54
54
|
});
|
|
55
55
|
const sectionPad = computed(() => ({ compact: "py-8 px-4 md:px-8", normal: "py-14 px-6 md:px-12", spacious: "py-24 px-8 md:px-16" })[props.spacing] || "py-14 px-6 md:px-12");
|
|
56
56
|
const cardRound = computed(() => ({ sharp: "rounded-lg", rounded: "rounded-xl", pill: "rounded-full" })[props.radius] || "rounded-xl");
|
|
57
|
-
const
|
|
57
|
+
const TAG_SCALE = { h1: 1.6, h2: 1.25, h3: 1, h4: 0.8, div: 0.9 };
|
|
58
|
+
const BASE_SIZE = {
|
|
59
|
+
sm: [0.9, 1.2, 1.4],
|
|
60
|
+
md: [1.15, 1.8, 2.2],
|
|
61
|
+
lg: [1.6, 3.5, 5]
|
|
62
|
+
};
|
|
63
|
+
const titleFontSize = computed(() => {
|
|
64
|
+
const scale = TAG_SCALE[props.titleTag] ?? 1;
|
|
65
|
+
const [min, pref, max] = BASE_SIZE[props.textSize] || BASE_SIZE.md;
|
|
66
|
+
return `clamp(${(min * scale).toFixed(2)}rem, ${(pref * scale).toFixed(2)}vw, ${(max * scale).toFixed(2)}rem)`;
|
|
67
|
+
});
|
|
58
68
|
const maxW = computed(() => {
|
|
59
69
|
if (props.contentWidth !== "normal") return { narrow: "max-w-2xl mx-auto", normal: "max-w-4xl mx-auto", wide: "max-w-6xl mx-auto", full: "max-w-full" }[props.contentWidth] || "max-w-4xl mx-auto";
|
|
60
70
|
return { article: "max-w-2xl mx-auto", wide: "max-w-4xl mx-auto", full: "w-full" }[props.layout] || "max-w-2xl mx-auto";
|