@modoitaliano/giorgia 0.1.111 → 0.1.113

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "package": "@modoitaliano/giorgia",
3
- "version": "0.1.111",
3
+ "version": "0.1.113",
4
4
  "templateRendering": {
5
5
  "contract": "cronkite.templates",
6
6
  "contractVersion": 1,
@@ -5,7 +5,7 @@
5
5
  "id": "modoitaliano.live-program",
6
6
  "name": "Modo Italiano Live Program",
7
7
  "package": "@modoitaliano/giorgia",
8
- "bundleVersion": "0.1.111",
8
+ "bundleVersion": "0.1.113",
9
9
  "entrypoint": "index.html",
10
10
  "capabilities": [
11
11
  "audio.playback",
@@ -22,7 +22,7 @@
22
22
  "required": ["entry", "partials"],
23
23
  "properties": {
24
24
  "entry": { "$ref": "#/$defs/safePath" },
25
- "partials": { "type": "array", "items": { "type": "string", "minLength": 1 } }
25
+ "partials": { "type": "array", "uniqueItems": true, "items": { "type": "string", "minLength": 1 } }
26
26
  }
27
27
  },
28
28
  "partial": { "$ref": "#/$defs/templateReference" },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@modoitaliano/giorgia",
3
3
  "description": "Server-side Handlebars renderer and templates for ModoItaliano pages.",
4
- "version": "0.1.111",
4
+ "version": "0.1.113",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -39,13 +39,19 @@
39
39
  <div class='carousel-background flex-1 w-full overflow-hidden bg-slate-100 dark:bg-slate-800 relative shadow-sm'>
40
40
  {{#if slides}}
41
41
  {{#each slides}}
42
- <div class='carousel-slide {{#if @first}}active opacity-100{{else}}hidden opacity-0{{/if}} absolute inset-0 bg-cover bg-center transition-opacity duration-700' style='background-image: url({{image}});'></div>
42
+ <div class='carousel-slide {{#if @first}}active opacity-100{{else}}hidden opacity-0{{/if}} absolute inset-0 transition-opacity duration-700'>
43
+ {{#if @first}}<img src='{{image}}' alt='{{alt}}' class='absolute inset-0 w-full h-full object-cover object-center'{{#if variants}} srcset='{{#each variants}}{{url}} {{width}}w{{#unless @last}}, {{/unless}}{{/each}}{{#if width}}, {{image}} {{width}}w{{/if}}' sizes='(min-width: 1280px) 58vw, 100vw'{{/if}}{{#if width}}{{#if height}} width='{{width}}' height='{{height}}'{{/if}}{{/if}} fetchpriority='high' />{{else}}<img src='{{image}}' alt='{{alt}}' class='absolute inset-0 w-full h-full object-cover object-center'{{#if variants}} srcset='{{#each variants}}{{url}} {{width}}w{{#unless @last}}, {{/unless}}{{/each}}{{#if width}}, {{image}} {{width}}w{{/if}}' sizes='(min-width: 1280px) 58vw, 100vw'{{/if}}{{#if width}}{{#if height}} width='{{width}}' height='{{height}}'{{/if}}{{/if}} loading='lazy' />{{/if}}
44
+ </div>
43
45
  {{/each}}
44
46
  {{else}}
45
47
  {{#if hero.url}}
46
- <div class='carousel-slide active opacity-100 absolute inset-0 bg-cover bg-center transition-opacity duration-700' style='background-image: url({{hero.url}});'></div>
48
+ <div class='carousel-slide active opacity-100 absolute inset-0 transition-opacity duration-700'>
49
+ <img src='{{hero.url}}' alt='{{hero.alt}}' class='absolute inset-0 w-full h-full object-cover object-center'{{#if hero.variants}} srcset='{{#each hero.variants}}{{url}} {{width}}w{{#unless @last}}, {{/unless}}{{/each}}{{#if hero.width}}, {{hero.url}} {{hero.width}}w{{/if}}' sizes='(min-width: 1280px) 58vw, 100vw'{{/if}}{{#if hero.width}}{{#if hero.height}} width='{{hero.width}}' height='{{hero.height}}'{{/if}}{{/if}} fetchpriority='high' />
50
+ </div>
47
51
  {{else}}
48
- <div class='carousel-slide active opacity-100 absolute inset-0 bg-cover bg-center transition-opacity duration-700' style='background-image: url(https://images.unsplash.com/photo-1586348943529-beaae6c28db9?w=1440&h=882&fit=crop);'></div>
52
+ <div class='carousel-slide active opacity-100 absolute inset-0 transition-opacity duration-700'>
53
+ <img src='https://images.unsplash.com/photo-1586348943529-beaae6c28db9?w=1440&h=882&fit=crop' alt='' class='absolute inset-0 w-full h-full object-cover object-center' fetchpriority='high' />
54
+ </div>
49
55
  {{/if}}
50
56
  {{/if}}
51
57
  </div>
@@ -47,8 +47,10 @@
47
47
  <section class='lg:col-span-1 xl:col-span-4 flex flex-col h-full justify-between'>
48
48
  {{#with homepageSlots.landing.card5}}
49
49
  <div class='bg-black text-white mb-6 flex-grow flex flex-col'>
50
- <div class='flex-grow min-h-[250px] bg-cover bg-center flex flex-col justify-end' style='background-image: linear-gradient(to top, rgba(0,0,0,1), rgba(0,0,0,0.7) 50%, transparent 100%), url("{{featuredImage.url}}");'>
51
- <div class='px-4'>
50
+ <div class='relative flex-grow min-h-[250px] overflow-hidden flex flex-col justify-end'>
51
+ <img src='{{featuredImage.url}}' alt='{{featuredImage.alt}}' class='absolute inset-0 w-full h-full object-cover object-center'{{#if featuredImage.variants}} srcset='{{#each featuredImage.variants}}{{url}} {{width}}w{{#unless @last}}, {{/unless}}{{/each}}{{#if featuredImage.width}}, {{featuredImage.url}} {{featuredImage.width}}w{{/if}}' sizes='(min-width: 1280px) 25vw, (min-width: 1024px) 40vw, 100vw'{{/if}}{{#if featuredImage.width}}{{#if featuredImage.height}} width='{{featuredImage.width}}' height='{{featuredImage.height}}'{{/if}}{{/if}} loading='lazy' />
52
+ <div class='absolute inset-0 pointer-events-none' style='background-image: linear-gradient(to top, rgba(0,0,0,1), rgba(0,0,0,0.7) 50%, transparent 100%);'></div>
53
+ <div class='relative px-4'>
52
54
  <span class='bg-[#b21100] text-white px-3 py-2 text-xs tracking-[1px] font-bold uppercase inline-block mb-2'>{{#with (lookup categories 0)}}{{name}}{{/with}}</span>
53
55
  <h2 class='text-2xl font-bold font-encode mb-2'>
54
56
  <a href='{{url}}' class='hover:text-slate-300 transition-colors'>{{title}}</a>
@@ -2,12 +2,21 @@
2
2
  <div class='carousel-background absolute inset-0 w-full h-full'>
3
3
  {{#if slides}}
4
4
  {{#each slides}}
5
- <div class='carousel-slide {{#if @first}}active opacity-100{{else}}hidden opacity-0{{/if}} absolute inset-0 bg-cover bg-center transition-opacity duration-700' style='background-image: radial-gradient(71.75% 69.5% at 50% 47.39%, rgba(0, 0, 0, 0) 0%, #000000 100%), url({{image}});'></div>
5
+ <div class='carousel-slide {{#if @first}}active opacity-100{{else}}hidden opacity-0{{/if}} absolute inset-0 transition-opacity duration-700'>
6
+ {{#if @first}}<img src='{{image}}' alt='{{alt}}' class='absolute inset-0 w-full h-full object-cover object-center'{{#if variants}} srcset='{{#each variants}}{{url}} {{width}}w{{#unless @last}}, {{/unless}}{{/each}}{{#if width}}, {{image}} {{width}}w{{/if}}' sizes='100vw'{{/if}}{{#if width}}{{#if height}} width='{{width}}' height='{{height}}'{{/if}}{{/if}} fetchpriority='high' />{{else}}<img src='{{image}}' alt='{{alt}}' class='absolute inset-0 w-full h-full object-cover object-center'{{#if variants}} srcset='{{#each variants}}{{url}} {{width}}w{{#unless @last}}, {{/unless}}{{/each}}{{#if width}}, {{image}} {{width}}w{{/if}}' sizes='100vw'{{/if}}{{#if width}}{{#if height}} width='{{width}}' height='{{height}}'{{/if}}{{/if}} loading='lazy' />{{/if}}
7
+ <div class='absolute inset-0 pointer-events-none' style='background-image: radial-gradient(71.75% 69.5% at 50% 47.39%, rgba(0, 0, 0, 0) 0%, #000000 100%);'></div>
8
+ </div>
6
9
  {{/each}}
7
10
  {{else if hero.url}}
8
- <div class='carousel-slide active opacity-100 absolute inset-0 bg-cover bg-center transition-opacity duration-700' style='background-image: radial-gradient(71.75% 69.5% at 50% 47.39%, rgba(0, 0, 0, 0) 0%, #000000 100%), url({{hero.url}});'></div>
11
+ <div class='carousel-slide active opacity-100 absolute inset-0 transition-opacity duration-700'>
12
+ <img src='{{hero.url}}' alt='{{hero.alt}}' class='absolute inset-0 w-full h-full object-cover object-center'{{#if hero.variants}} srcset='{{#each hero.variants}}{{url}} {{width}}w{{#unless @last}}, {{/unless}}{{/each}}{{#if hero.width}}, {{hero.url}} {{hero.width}}w{{/if}}' sizes='100vw'{{/if}}{{#if hero.width}}{{#if hero.height}} width='{{hero.width}}' height='{{hero.height}}'{{/if}}{{/if}} fetchpriority='high' />
13
+ <div class='absolute inset-0 pointer-events-none' style='background-image: radial-gradient(71.75% 69.5% at 50% 47.39%, rgba(0, 0, 0, 0) 0%, #000000 100%);'></div>
14
+ </div>
9
15
  {{else}}
10
- <div class='carousel-slide active opacity-100 absolute inset-0 bg-cover bg-center transition-opacity duration-700' style='background-image: radial-gradient(71.75% 69.5% at 50% 47.39%, rgba(0, 0, 0, 0) 0%, #000000 100%), url(https://images.unsplash.com/photo-1586348943529-beaae6c28db9?w=1440&h=882&fit=crop);'></div>
16
+ <div class='carousel-slide active opacity-100 absolute inset-0 transition-opacity duration-700'>
17
+ <img src='https://images.unsplash.com/photo-1586348943529-beaae6c28db9?w=1440&h=882&fit=crop' alt='' class='absolute inset-0 w-full h-full object-cover object-center' fetchpriority='high' />
18
+ <div class='absolute inset-0 pointer-events-none' style='background-image: radial-gradient(71.75% 69.5% at 50% 47.39%, rgba(0, 0, 0, 0) 0%, #000000 100%);'></div>
19
+ </div>
11
20
  {{/if}}
12
21
  </div>
13
22
 
@@ -9,7 +9,7 @@
9
9
  <link href='/content/styles/giorgia.css' rel='stylesheet' />
10
10
  {{#if (eq layout 'homepage')}}
11
11
  {{#if hero.url}}
12
- <link rel='preload' as='image' href='{{hero.url}}' fetchpriority='high' />
12
+ <link rel='preload' as='image' href='{{hero.url}}'{{#if hero.variants}} imagesrcset='{{#each hero.variants}}{{url}} {{width}}w{{#unless @last}}, {{/unless}}{{/each}}{{#if hero.width}}, {{hero.url}} {{hero.width}}w{{/if}}' imagesizes='100vw'{{/if}} fetchpriority='high' />
13
13
  {{/if}}
14
14
  {{else}}
15
15
  {{#if featuredImage.url}}