@press2ai/theme-specialist-glossy 0.9.2 → 0.10.0
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@press2ai/theme-specialist-glossy",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "Classless, AI-first theme inspired by Stripe. Framework-agnostic templates (Hono, Astro, raw HTML). Semantic HTML, Schema.org microdata, JSON-LD — built for LLM crawlers.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
package/src/styles/glossy.css
CHANGED
|
@@ -226,7 +226,7 @@ section:has(> article[itemscope]) {
|
|
|
226
226
|
display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--g3);
|
|
227
227
|
}
|
|
228
228
|
section:has(> article[itemscope]) > h2 { grid-column: 1 / -1; margin-bottom: var(--g2); }
|
|
229
|
-
section:has(> article[itemscope]) > nav[aria-label] { grid-column: 1 / -1; margin-top: 0; }
|
|
229
|
+
section:has(> article[itemscope]) > nav[aria-label] { grid-column: 1 / -1; margin-top: 0; margin-bottom: var(--g2); }
|
|
230
230
|
article[itemscope] {
|
|
231
231
|
position: relative; background: var(--card); border: 1px solid var(--line);
|
|
232
232
|
border-radius: var(--r-lg); padding: var(--g3);
|
package/src/templates/catalog.ts
CHANGED
|
@@ -55,6 +55,14 @@ export function steps(title: string, items: { title: string; description: string
|
|
|
55
55
|
return `<section>\n<h2>${esc(title)}</h2>\n<ol>\n${lis}\n</ol>\n</section>`;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
+
export function catalogGrid(p: { title: string; filters?: string; cards: string }): string {
|
|
59
|
+
return `<section>
|
|
60
|
+
<h2>${esc(p.title)}</h2>
|
|
61
|
+
${p.filters ?? ''}
|
|
62
|
+
${p.cards}
|
|
63
|
+
</section>`;
|
|
64
|
+
}
|
|
65
|
+
|
|
58
66
|
export function trustBlock(title: string, points: string[]): string {
|
|
59
67
|
const items = points.map(p => `<li>${esc(p)}</li>`).join('\n');
|
|
60
68
|
return `<aside>
|
package/src/templates/index.ts
CHANGED
|
@@ -2,5 +2,5 @@ export { layout, type LayoutProps } from './layout.ts';
|
|
|
2
2
|
export { hero } from './hero.ts';
|
|
3
3
|
export { profileCard } from './profile-card.ts';
|
|
4
4
|
export { profileArticle } from './profile-article.ts';
|
|
5
|
-
export { catalogHero, statBar, categoryNav, steps, trustBlock, pagination, type CatalogHeroProps, type PaginationProps } from './catalog.ts';
|
|
5
|
+
export { catalogHero, catalogGrid, statBar, categoryNav, steps, trustBlock, pagination, type CatalogHeroProps, type PaginationProps } from './catalog.ts';
|
|
6
6
|
export { esc, fullName } from './helpers.ts';
|