@fifthbell/brokaw 0.1.57 → 0.1.58
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/components/live-program/components/Marquee.js +2 -2
- package/dist/components/live-program/components/MarqueeCurtain.js +2 -2
- package/dist/components/live-program/components/WorldClocks.js +1 -1
- package/dist/components/live-program/components/slides/ArticleSlide.js +1 -1
- package/dist/components/live-program/components/slides/CallsignSlide.js +1 -1
- package/dist/components/live-program/components/slides/LiveEventSlide.js +6 -6
- package/dist/components/live-program/segments/EarthquakeSegment.js +4 -4
- package/dist/components/live-program/segments/LiveEventSegment.js +1 -1
- package/dist/components/live-program/segments/MarketsSegment.js +4 -4
- package/dist/components/live-program/segments/WeatherSegment.js +3 -3
- package/dist/live-program-page/index.html +1 -1
- package/dist/live-program-page/live-program.css +1 -1
- package/dist/live-program-page/live-program.js +3 -3
- package/dist/renderer.browser.js +0 -2
- package/package.json +1 -1
- package/src/partial-deps.json +1 -2
- package/src/styles/compiled.css +1 -1
- package/src/templates/layouts/404.hbs +1 -1
- package/src/templates/layouts/link-in-bio.hbs +3 -3
- package/src/templates/partials/blocks/heading.hbs +3 -3
- package/src/templates/partials/blocks/live-update.hbs +1 -1
- package/src/templates/partials/components/article-main.hbs +21 -21
- package/src/templates/partials/components/breaking-news/live-updates-column.hbs +1 -1
- package/src/templates/partials/components/breaking-news.hbs +1 -1
- package/src/templates/partials/components/category/header.hbs +1 -1
- package/src/templates/partials/components/category/main-grid.hbs +5 -5
- package/src/templates/partials/components/category/more-grid.hbs +3 -3
- package/src/templates/partials/components/editorial-hero.hbs +6 -6
- package/src/templates/partials/components/headline.hbs +1 -1
- package/src/templates/partials/components/home/landing.hbs +25 -25
- package/src/templates/partials/components/home/more-stories.hbs +2 -2
- package/src/templates/partials/components/home/must-read.hbs +8 -8
- package/src/templates/partials/components/live-story/main.hbs +3 -3
- package/src/templates/partials/components/media/main.hbs +1 -1
- package/src/templates/partials/components/not-found/main.hbs +1 -1
- package/src/templates/partials/components/search/main.hbs +3 -3
- package/src/templates/partials/components/snack.hbs +1 -1
- package/src/templates/partials/components/spotlight-hero.hbs +6 -6
- package/src/templates/partials/components/trending.hbs +6 -10
- package/src/templates/partials/headers/header-main.hbs +20 -19
- package/src/templates/templates/instagram-image.hbs +1 -1
- package/src/templates/partials/footers/footer-minimal.hbs +0 -5
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
Lead Story
|
|
7
7
|
</span>
|
|
8
8
|
|
|
9
|
-
<h1 class='headline text-4xl lg:text-5xl xl:text-6xl font-bold text-slate-900 dark:text-slate-100 tracking-tight leading-[1] font-
|
|
9
|
+
<h1 class='headline text-4xl lg:text-5xl xl:text-6xl font-bold text-slate-900 dark:text-slate-100 tracking-tight leading-[1] font-encode'>
|
|
10
10
|
<a href='{{articleUrl slug=slug categories=categories language=@root.language}}' class='hover:underline decoration-4 decoration-[#b21100]/20 underline-offset-4'>{{title}}</a>
|
|
11
11
|
</h1>
|
|
12
12
|
|
|
13
|
-
<p class='deck text-lg md:text-xl text-slate-600 dark:text-slate-400
|
|
13
|
+
<p class='deck font-secondary text-lg md:text-xl text-slate-600 dark:text-slate-400 leading-relaxed mt-4'>{{excerpt}}</p>
|
|
14
14
|
|
|
15
15
|
<div class='flex items-center space-x-4 pt-4 border-t border-slate-100 dark:border-slate-800 mt-4'>
|
|
16
16
|
<span class='text-xs font-bold uppercase tracking-wider text-slate-500'>{{#with (lookup categories 0)}}{{name}}{{else}}Top Stories{{/with}}</span>
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
timestamp=(coalesce updatedAt publishedAt)
|
|
29
29
|
image=image
|
|
30
30
|
featuredImage=featuredImage
|
|
31
|
-
titleClass='text-sm lg:text-base leading-tight lg:leading-[22px] font-
|
|
31
|
+
titleClass='text-sm lg:text-base leading-tight lg:leading-[22px] font-bold text-slate-900 dark:text-slate-100 font-encode'
|
|
32
32
|
}}
|
|
33
33
|
{{/each}}
|
|
34
34
|
</div>
|
|
@@ -39,13 +39,13 @@
|
|
|
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-
|
|
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-300' style='background-image: url({{image}});'></div>
|
|
43
43
|
{{/each}}
|
|
44
44
|
{{else}}
|
|
45
45
|
{{#if hero.url}}
|
|
46
|
-
<div class='carousel-slide active opacity-100 absolute inset-0 bg-cover bg-center transition-opacity duration-
|
|
46
|
+
<div class='carousel-slide active opacity-100 absolute inset-0 bg-cover bg-center transition-opacity duration-300' style='background-image: url({{hero.url}});'></div>
|
|
47
47
|
{{else}}
|
|
48
|
-
<div class='carousel-slide active opacity-100 absolute inset-0 bg-cover bg-center transition-opacity duration-
|
|
48
|
+
<div class='carousel-slide active opacity-100 absolute inset-0 bg-cover bg-center transition-opacity duration-300' style='background-image: url(https://images.unsplash.com/photo-1586348943529-beaae6c28db9?w=1440&h=882&fit=crop);'></div>
|
|
49
49
|
{{/if}}
|
|
50
50
|
{{/if}}
|
|
51
51
|
</div>
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
</div>
|
|
5
5
|
<div class='flex gap-2 lg:gap-4 items-start'>
|
|
6
6
|
<div class='flex-1'>
|
|
7
|
-
{{#if (eq headingLevel 'h2')}}<h2{{else}}<h3{{/if}} class='{{#if titleClass}}{{titleClass}}{{else}}text-sm lg:text-base leading-tight lg:leading-[22px] font-
|
|
7
|
+
{{#if (eq headingLevel 'h2')}}<h2{{else}}<h3{{/if}} class='{{#if titleClass}}{{titleClass}}{{else}}text-sm lg:text-base leading-tight lg:leading-[22px] font-bold text-slate-900 dark:text-slate-100 font-encode{{/if}}'>
|
|
8
8
|
<a href='{{url}}' class='{{#if linkClass}}{{linkClass}}{{else}}hover:text-[#8f0d00] dark:hover:text-[#ff2e1a] transition-colors{{/if}}'>{{title}}</a>
|
|
9
9
|
{{#if (eq headingLevel 'h2')}}</h2{{else}}</h3{{/if}}>
|
|
10
10
|
</div>
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
<div class='grid grid-cols-12
|
|
2
|
-
<div class='col-span-12
|
|
1
|
+
<div class='grid grid-cols-12 gap-6 px-6'>
|
|
2
|
+
<div class='col-span-12 space-y-12 pt-6 lg:col-span-9 lg:pt-8 xl:col-span-6'>
|
|
3
3
|
{{#with homepageSlots.landing.headline1}}
|
|
4
|
-
<section class='
|
|
5
|
-
<a href='{{url}}' class='relative flex-shrink-0
|
|
6
|
-
<img src='{{featuredImage.url}}' alt='{{featuredImage.alt}}' class='
|
|
4
|
+
<section class='flex flex-col'>
|
|
5
|
+
<a href='{{url}}' class='editorial-image relative block flex-shrink-0'>
|
|
6
|
+
<img src='{{featuredImage.url}}' alt='{{featuredImage.alt}}' class='h-[400px] w-full object-cover' fetchpriority='high' />
|
|
7
7
|
</a>
|
|
8
8
|
|
|
9
|
-
<div class='mt-4 flex-grow flex
|
|
10
|
-
<div class='
|
|
11
|
-
<span class='
|
|
12
|
-
<span class='mx-
|
|
9
|
+
<div class='mt-4 flex flex-grow flex-col'>
|
|
10
|
+
<div class='editorial-meta mb-4 flex items-center'>
|
|
11
|
+
<span class='editorial-kicker'>{{#with (lookup categories 0)}}{{name}}{{/with}}</span>
|
|
12
|
+
<span class='mx-3 text-black/25 dark:text-white/25'>/</span>
|
|
13
13
|
<span class='article-time' data-timestamp='{{updatedAt}}'>{{formatDate updatedAt}}</span>
|
|
14
14
|
</div>
|
|
15
15
|
|
|
16
|
-
<h1 class='text-4xl font-bold
|
|
17
|
-
<a href='{{url}}' class='
|
|
16
|
+
<h1 class='mb-4 font-encode text-4xl font-bold leading-11 tracking-[-0.025em] text-[var(--brokaw-ink)]'>
|
|
17
|
+
<a href='{{url}}' class='editorial-link'>{{title}}</a>
|
|
18
18
|
</h1>
|
|
19
19
|
|
|
20
|
-
<p class='
|
|
20
|
+
<p class='mb-4 font-secondary text-2xl leading-8 text-[var(--brokaw-ink-muted)]'>{{excerpt}}</p>
|
|
21
21
|
|
|
22
|
-
<div class='grid
|
|
22
|
+
<div class='editorial-rule mt-4 grid flex-grow grid-cols-1 gap-6 border-t pt-6 md:grid-cols-2'>
|
|
23
23
|
{{#each ../homepageSlots.landing.sub1}}
|
|
24
24
|
{{> components/snack
|
|
25
25
|
url=url
|
|
@@ -42,21 +42,21 @@
|
|
|
42
42
|
{{/with}}
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
|
-
<div class='col-span-12 md:col-span-7 lg:col-span-3
|
|
45
|
+
<div class='col-span-12 space-y-12 pt-6 md:col-span-7 lg:col-span-3 lg:pt-8'>
|
|
46
46
|
<section class='lg:col-span-1 xl:col-span-4 flex flex-col h-full justify-between'>
|
|
47
47
|
{{#with homepageSlots.landing.card5}}
|
|
48
|
-
<div class='
|
|
48
|
+
<div class='mb-6 flex flex-grow flex-col bg-[var(--brokaw-night)] text-white shadow-[var(--brokaw-shadow-raised)]'>
|
|
49
49
|
<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}}");'>
|
|
50
50
|
<div class='px-4'>
|
|
51
|
-
<span class='
|
|
52
|
-
<h2 class='text-2xl font-bold
|
|
51
|
+
<span class='mb-3 inline-block text-[11px] font-bold uppercase tracking-[0.14em] text-white/70'>{{#with (lookup categories 0)}}{{name}}{{/with}}</span>
|
|
52
|
+
<h2 class='mb-2 font-encode text-2xl font-bold leading-[1.08]'>
|
|
53
53
|
<a href='{{url}}' class='hover:text-slate-300 transition-colors'>{{title}}</a>
|
|
54
54
|
</h2>
|
|
55
55
|
</div>
|
|
56
56
|
</div>
|
|
57
|
-
<div class='px-4 pb-4
|
|
58
|
-
<p class='text-sm'>{{excerpt}}</p>
|
|
59
|
-
<span class='text-xs
|
|
57
|
+
<div class='flex-shrink-0 px-4 pb-4 pt-3'>
|
|
58
|
+
<p class='font-secondary text-sm leading-5 text-white/75'>{{excerpt}}</p>
|
|
59
|
+
<span class='mt-2 block text-xs tabular-nums text-white/45'>{{formatDate updatedAt}}</span>
|
|
60
60
|
</div>
|
|
61
61
|
</div>
|
|
62
62
|
{{/with}}
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
{{#with homepageSlots.landing.headline6}}
|
|
65
65
|
<div class='flex flex-col'>
|
|
66
66
|
<a href='{{url}}' class='mb-4 flex-shrink-0 h-[180px] block'>
|
|
67
|
-
<img src='{{featuredImage.url}}' width='500' height='200' alt='{{featuredImage.alt}}' class='
|
|
67
|
+
<img src='{{featuredImage.url}}' width='500' height='200' alt='{{featuredImage.alt}}' class='h-full w-full object-cover' />
|
|
68
68
|
</a>
|
|
69
69
|
<div class='flex items-center text-slate-500 dark:text-slate-400 text-sm mb-2'>
|
|
70
70
|
<span class='uppercase font-bold'>{{#with (lookup categories 0)}}{{name}}{{/with}}</span>
|
|
@@ -80,11 +80,11 @@
|
|
|
80
80
|
</section>
|
|
81
81
|
</div>
|
|
82
82
|
|
|
83
|
-
<aside class='col-span-12 md:col-span-5 lg:col-span-12 xl:col-span-3
|
|
83
|
+
<aside class='col-span-12 pt-6 md:col-span-5 lg:col-span-12 xl:col-span-3'>
|
|
84
84
|
<div class='space-y-10'>
|
|
85
85
|
<div class='space-y-6'>
|
|
86
|
-
<div class='flex items-center justify-between border-b
|
|
87
|
-
<h3 class='kicker
|
|
86
|
+
<div class='editorial-rule flex items-center justify-between border-b pb-3'>
|
|
87
|
+
<h3 class='editorial-kicker'>Top Stories</h3>
|
|
88
88
|
</div>
|
|
89
89
|
</div>
|
|
90
90
|
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
imageClasses='bg-slate-200 grayscale hover:grayscale-0 transition-all'
|
|
103
103
|
titleTextSize='text-xl'
|
|
104
104
|
titleFontWeight='font-bold'
|
|
105
|
-
titleClasses='font-
|
|
105
|
+
titleClasses='font-encode leading-snug'
|
|
106
106
|
}}
|
|
107
107
|
{{/each}}
|
|
108
108
|
</div>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<div class='py-12 px-6'>
|
|
2
2
|
<div class='flex items-center gap-2 mb-6 border-l-4 border-[#b21100] pl-4'>
|
|
3
|
-
<h2 class='text-2xl font-bold tracking-tight font-
|
|
3
|
+
<h2 class='text-2xl font-bold tracking-tight font-encode'>More Stories</h2>
|
|
4
4
|
</div>
|
|
5
5
|
<div class='grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-12'>
|
|
6
6
|
{{#each homepageSlots.moreStories}}
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
titleFontWeight='font-bold'
|
|
17
17
|
titleClasses='font-encode'
|
|
18
18
|
excerptTextSize='text-lg'
|
|
19
|
-
excerptClasses='font-
|
|
19
|
+
excerptClasses='font-secondary leading-relaxed'
|
|
20
20
|
}}
|
|
21
21
|
{{/each}}
|
|
22
22
|
</div>
|
|
@@ -3,21 +3,21 @@
|
|
|
3
3
|
<div class='grid grid-cols-2 gap-6'>
|
|
4
4
|
<div class='col-span-2'>
|
|
5
5
|
<div class='flex items-center gap-2 mb-6 border-l-4 border-[#b21100] pl-4'>
|
|
6
|
-
<h2 class='text-2xl font-bold tracking-tight font-
|
|
6
|
+
<h2 class='text-2xl font-bold tracking-tight font-encode'>Must Read</h2>
|
|
7
7
|
</div>
|
|
8
8
|
{{#with homepageSlots.mustRead.lead}}
|
|
9
9
|
<article class='grid grid-cols-1 md:grid-cols-2 gap-6 items-start'>
|
|
10
10
|
<a href='{{url}}' class='block aspect-video overflow-hidden bg-slate-100'>
|
|
11
|
-
<img src='{{featuredImage.url}}' alt='{{featuredImage.alt}}' class='w-full h-full object-cover transition-transform duration-
|
|
11
|
+
<img src='{{featuredImage.url}}' alt='{{featuredImage.alt}}' class='w-full h-full object-cover transition-transform duration-300 hover:scale-[1.012]' />
|
|
12
12
|
</a>
|
|
13
13
|
<div class='space-y-3'>
|
|
14
14
|
<div class='flex items-center text-xs font-bold uppercase tracking-wider text-[#8f0d00]'>
|
|
15
15
|
<span>{{#with (lookup categories 0)}}{{name}}{{/with}}</span>
|
|
16
16
|
</div>
|
|
17
|
-
<h3 class='headline text-3xl font-bold font-
|
|
17
|
+
<h3 class='headline text-3xl font-bold font-encode leading-tight'>
|
|
18
18
|
<a href='{{url}}' class='hover:underline decoration-[#b21100]'>{{title}}</a>
|
|
19
19
|
</h3>
|
|
20
|
-
<p class='text-slate-600 dark:text-slate-400
|
|
20
|
+
<p class='font-secondary text-slate-600 dark:text-slate-400 leading-relaxed line-clamp-3 text-xl'>{{excerpt}}</p>
|
|
21
21
|
<span class='text-s text-slate-500 dark:text-slate-400 block font-sans'>{{formatDate updatedAt}}</span>
|
|
22
22
|
</div>
|
|
23
23
|
</article>
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
<div class='col-span-1'>
|
|
29
29
|
<article class='group'>
|
|
30
30
|
<a href='{{url}}' class='block mb-4 overflow-hidden aspect-[3/2] bg-slate-100'>
|
|
31
|
-
<img src='{{featuredImage.url}}' alt='{{featuredImage.alt}}' class='w-full h-full object-cover transition-transform duration-
|
|
31
|
+
<img src='{{featuredImage.url}}' alt='{{featuredImage.alt}}' class='w-full h-full object-cover transition-transform duration-300 group-hover:scale-[1.012]' />
|
|
32
32
|
</a>
|
|
33
33
|
<div class='space-y-2'>
|
|
34
34
|
<span class='text-xs font-bold text-[#8f0d00] uppercase tracking-wider'>{{#with (lookup categories 0)}}{{name}}{{/with}}</span>
|
|
35
|
-
<h3 class='text-2xl font-bold font-
|
|
35
|
+
<h3 class='text-2xl font-bold font-encode leading-tight group-hover:underline'>
|
|
36
36
|
<a href='{{url}}'>{{title}}</a>
|
|
37
37
|
</h3>
|
|
38
38
|
</div>
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
<div class='col-span-1'>
|
|
45
45
|
<article class='group'>
|
|
46
46
|
<a href='{{url}}' class='block mb-4 overflow-hidden aspect-[3/2] bg-slate-100'>
|
|
47
|
-
<img src='{{featuredImage.url}}' alt='{{featuredImage.alt}}' class='w-full h-full object-cover transition-transform duration-
|
|
47
|
+
<img src='{{featuredImage.url}}' alt='{{featuredImage.alt}}' class='w-full h-full object-cover transition-transform duration-300 group-hover:scale-[1.012]' />
|
|
48
48
|
</a>
|
|
49
49
|
<div class='space-y-2'>
|
|
50
50
|
<span class='text-xs font-bold text-[#004d99] uppercase tracking-wider'>{{#with (lookup categories 0)}}{{name}}{{/with}}</span>
|
|
51
|
-
<h3 class='text-2xl font-bold font-
|
|
51
|
+
<h3 class='text-2xl font-bold font-encode leading-tight group-hover:underline'>
|
|
52
52
|
<a href='{{url}}'>{{title}}</a>
|
|
53
53
|
</h3>
|
|
54
54
|
</div>
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
>
|
|
20
20
|
{{#if media}}
|
|
21
21
|
<div data-carousel='live-story-hero' class='relative'>
|
|
22
|
-
<div class='carousel-slide active opacity-100 transition-opacity duration-
|
|
22
|
+
<div class='carousel-slide active opacity-100 transition-opacity duration-300'>
|
|
23
23
|
<img
|
|
24
24
|
src='{{featuredImage.url}}'
|
|
25
25
|
alt='{{featuredImage.alt}}'
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
/>
|
|
30
30
|
</div>
|
|
31
31
|
{{#each media}}
|
|
32
|
-
<div class='carousel-slide hidden opacity-0 transition-opacity duration-
|
|
32
|
+
<div class='carousel-slide hidden opacity-0 transition-opacity duration-300'>
|
|
33
33
|
<img
|
|
34
34
|
src='{{url}}'
|
|
35
35
|
alt='{{alt}}'
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
</h1>
|
|
98
98
|
|
|
99
99
|
{{#if excerpt}}
|
|
100
|
-
<p class='text-xl text-slate-600 dark:text-slate-400
|
|
100
|
+
<p class='font-secondary text-xl text-slate-600 dark:text-slate-400 leading-relaxed mb-6 max-w-3xl'>
|
|
101
101
|
{{excerpt}}
|
|
102
102
|
</p>
|
|
103
103
|
{{/if}}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<div class='mb-6 flex flex-col gap-3 border-b border-slate-200 pb-5 dark:border-slate-800 md:flex-row md:items-end md:justify-between'>
|
|
4
4
|
<div>
|
|
5
5
|
<p class='text-xs font-semibold uppercase tracking-widest text-red-700 dark:text-red-400'>Assignment Media</p>
|
|
6
|
-
<h1 id='media-title' class='mt-2 font-
|
|
6
|
+
<h1 id='media-title' class='mt-2 font-encode text-4xl font-bold leading-tight text-slate-950 dark:text-white md:text-5xl'>Photos</h1>
|
|
7
7
|
<p id='media-meta' class='mt-2 max-w-2xl text-sm text-slate-600 dark:text-slate-400'>Loading assignment photos.</p>
|
|
8
8
|
</div>
|
|
9
9
|
<a id='media-refresh' href='' class='inline-flex items-center justify-center border border-slate-300 px-4 py-2 text-sm font-semibold text-slate-800 transition hover:border-slate-950 hover:text-slate-950 dark:border-slate-700 dark:text-slate-200 dark:hover:border-white dark:hover:text-white'>Refresh</a>
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
<h2 class='text-4xl font-bold text-slate-900 dark:text-slate-100 mb-4'>Page Not Found</h2>
|
|
8
8
|
|
|
9
|
-
<p class='text-xl text-slate-600 dark:text-slate-400 mb-8
|
|
9
|
+
<p class='font-secondary text-xl text-slate-600 dark:text-slate-400 mb-8 leading-relaxed'>
|
|
10
10
|
We couldn't find the page you're looking for. The article or page you're trying to access may have been moved, deleted, or never existed.
|
|
11
11
|
</p>
|
|
12
12
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<h1 class='mt-3 text-4xl md:text-5xl font-bold text-slate-900 dark:text-slate-100 font-encode'>
|
|
6
6
|
Find Stories Fast
|
|
7
7
|
</h1>
|
|
8
|
-
<p class='mt-3 text-lg text-slate-600 dark:text-slate-400
|
|
8
|
+
<p class='font-secondary mt-3 text-lg text-slate-600 dark:text-slate-400'>
|
|
9
9
|
Search titles and excerpts across current-language coverage.
|
|
10
10
|
</p>
|
|
11
11
|
</header>
|
|
@@ -323,14 +323,14 @@
|
|
|
323
323
|
return `
|
|
324
324
|
<article class="group rounded-xl border border-slate-200 dark:border-slate-800 overflow-hidden bg-white dark:bg-slate-900">
|
|
325
325
|
<a href="${escapeHtml(href)}" class="block aspect-[16/10] bg-slate-100 dark:bg-slate-800">
|
|
326
|
-
<img src="${escapeHtml(article.photoUrl)}" alt="${escapeHtml(article.title)}" class="w-full h-full object-cover transition-transform duration-
|
|
326
|
+
<img src="${escapeHtml(article.photoUrl)}" alt="${escapeHtml(article.title)}" class="w-full h-full object-cover transition-transform duration-300 group-hover:scale-[1.012]" loading="lazy" />
|
|
327
327
|
</a>
|
|
328
328
|
<div class="p-4">
|
|
329
329
|
${publishedAt ? `<p class="text-xs uppercase tracking-wider text-slate-500 dark:text-slate-400 mb-2">${escapeHtml(publishedAt)}</p>` : ''}
|
|
330
330
|
<h2 class="text-xl font-bold leading-tight text-slate-900 dark:text-slate-100 font-encode">
|
|
331
331
|
<a href="${escapeHtml(href)}" class="hover:text-[#8f0d00] dark:hover:text-[#ff2e1a] transition-colors">${escapeHtml(article.title)}</a>
|
|
332
332
|
</h2>
|
|
333
|
-
<p class="mt-2 text-slate-600 dark:text-slate-400
|
|
333
|
+
<p class="font-secondary mt-2 text-slate-600 dark:text-slate-400 line-clamp-3">${escapeHtml(article.excerpt)}</p>
|
|
334
334
|
</div>
|
|
335
335
|
</article>
|
|
336
336
|
`;
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
</h3>
|
|
73
73
|
{{#unless (eq showExcerpt false)}}
|
|
74
74
|
{{#if excerpt}}
|
|
75
|
-
<p class='text-slate-500 dark:text-slate-400 {{#if excerptTextSize}}{{excerptTextSize}}{{else}}text-lg{{/if}} {{#if excerptClasses}}{{excerptClasses}}{{else}}font-
|
|
75
|
+
<p class='text-slate-500 dark:text-slate-400 {{#if excerptTextSize}}{{excerptTextSize}}{{else}}text-lg{{/if}} {{#if excerptClasses}}{{excerptClasses}}{{else}}font-secondary leading-relaxed line-clamp-3{{/if}}'>{{excerpt}}</p>
|
|
76
76
|
{{/if}}
|
|
77
77
|
{{/unless}}
|
|
78
78
|
</div>
|
|
@@ -2,12 +2,12 @@
|
|
|
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-
|
|
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-300' style='background-image: radial-gradient(71.75% 69.5% at 50% 47.39%, rgba(0, 0, 0, 0) 0%, #000000 100%), url({{image}});'></div>
|
|
6
6
|
{{/each}}
|
|
7
7
|
{{else if hero.url}}
|
|
8
|
-
<div class='carousel-slide active opacity-100 absolute inset-0 bg-cover bg-center transition-opacity duration-
|
|
8
|
+
<div class='carousel-slide active opacity-100 absolute inset-0 bg-cover bg-center transition-opacity duration-300' 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>
|
|
9
9
|
{{else}}
|
|
10
|
-
<div class='carousel-slide active opacity-100 absolute inset-0 bg-cover bg-center transition-opacity duration-
|
|
10
|
+
<div class='carousel-slide active opacity-100 absolute inset-0 bg-cover bg-center transition-opacity duration-300' 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>
|
|
11
11
|
{{/if}}
|
|
12
12
|
</div>
|
|
13
13
|
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
</div>
|
|
31
31
|
|
|
32
32
|
<div class='w-full max-w-[592px] border-l border-white pl-4 md:pl-10 flex flex-col gap-4 md:gap-6 mb-8 md:mb-12'>
|
|
33
|
-
<h1 class='text-3xl md:text-[44px] leading-tight md:leading-[56px] font-
|
|
33
|
+
<h1 class='text-3xl md:text-[44px] leading-tight md:leading-[56px] font-bold text-white font-encode'>
|
|
34
34
|
<a href='{{articleUrl slug=slug categories=categories language=@root.language}}' class='hover:text-slate-300 transition-colors'>{{title}}</a>
|
|
35
35
|
</h1>
|
|
36
|
-
<p class='text-xl md:text-2xl leading-7 md:leading-8 text-white self-stretch
|
|
36
|
+
<p class='font-secondary text-xl md:text-2xl leading-7 md:leading-8 text-white self-stretch'>{{excerpt}}</p>
|
|
37
37
|
<a href='{{articleUrl slug=slug categories=categories language=@root.language}}' class='border border-[#717273] rounded-md px-4 py-[11px] h-11 flex items-center justify-center whitespace-nowrap self-start hover:bg-white/10 transition-colors'>
|
|
38
38
|
<span class='text-white text-base font-medium leading-[22px] font-sans'>Read More</span>
|
|
39
39
|
</a>
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
timestamp=(coalesce updatedAt publishedAt)
|
|
50
50
|
image=image
|
|
51
51
|
featuredImage=featuredImage
|
|
52
|
-
titleClass='text-sm lg:text-base leading-tight lg:leading-[22px] font-
|
|
52
|
+
titleClass='text-sm lg:text-base leading-tight lg:leading-[22px] font-bold text-[#F9FAFB] font-encode'
|
|
53
53
|
imageFallbackBgClass='bg-slate-700'
|
|
54
54
|
}}
|
|
55
55
|
{{/each}}
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
<div class='container mx-auto px-4 flex justify-around'>
|
|
2
2
|
<section class='inline-flex mx-auto my-6 gap-15 overflow-x-auto whitespace-nowrap scrollbar-thin scrollbar-thumb-slate-300 scrollbar-track-transparent'>
|
|
3
|
-
|
|
4
|
-
<
|
|
5
|
-
<span class='h-2 w-2
|
|
6
|
-
<
|
|
7
|
-
</
|
|
8
|
-
|
|
9
|
-
</article>
|
|
10
|
-
<article class='gap-2 flex font-normal items-center flex-none'>Trending Up: Apagón en España</article>
|
|
11
|
-
<article class='gap-2 flex font-normal items-center flex-none'>Trending Up: Copa Libertadores</article>
|
|
12
|
-
<article class='gap-2 flex font-normal items-center flex-none'>Trending Up: Terremoto en Magallanes</article>
|
|
3
|
+
{{#each (slice articles 0 4)}}
|
|
4
|
+
<article class='flex flex-none items-center gap-2 font-normal'>
|
|
5
|
+
{{#if @first}}<span class='mr-1 h-2 w-2 bg-[#b21100]'></span>{{/if}}
|
|
6
|
+
<a href='{{url}}' class='editorial-link'>{{title}}</a>
|
|
7
|
+
</article>
|
|
8
|
+
{{/each}}
|
|
13
9
|
</section>
|
|
14
10
|
</div>
|
|
@@ -1,29 +1,28 @@
|
|
|
1
1
|
<header
|
|
2
|
-
class='
|
|
2
|
+
class='site-header sticky top-0 z-[60] border-b transition-colors'
|
|
3
3
|
style='view-transition-name: site-header;'
|
|
4
4
|
>
|
|
5
5
|
<div class='container mx-auto px-4'>
|
|
6
|
-
<nav class='flex items-center justify-between
|
|
7
|
-
<div class='flex items-center
|
|
6
|
+
<nav class='relative flex h-[72px] items-center justify-between'>
|
|
7
|
+
<div class='flex items-center'>
|
|
8
8
|
<div class='relative'>
|
|
9
9
|
<button
|
|
10
10
|
id='menu-button'
|
|
11
|
-
class='flex
|
|
11
|
+
class='site-header-action flex h-10 w-10 items-center justify-center hover:bg-black/[0.04] dark:hover:bg-white/[0.06] text-[var(--brokaw-ink)]'
|
|
12
12
|
aria-label='Menu'
|
|
13
13
|
aria-expanded='false'
|
|
14
14
|
type='button'
|
|
15
15
|
>
|
|
16
|
-
<svg class='
|
|
17
|
-
<line x1='
|
|
18
|
-
<line x1='
|
|
19
|
-
<line x1='3' y1='18' x2='21' y2='18'></line>
|
|
16
|
+
<svg class='h-5 w-5' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.75'>
|
|
17
|
+
<line x1='4' y1='8' x2='20' y2='8'></line>
|
|
18
|
+
<line x1='4' y1='16' x2='16' y2='16'></line>
|
|
20
19
|
</svg>
|
|
21
20
|
</button>
|
|
22
21
|
|
|
23
22
|
<div
|
|
24
23
|
id='dropdown-menu'
|
|
25
|
-
class='fixed top-
|
|
26
|
-
style='opacity: 0; transform: translateX(-100%); transition: transform
|
|
24
|
+
class='fixed top-[72px] left-0 right-0 bottom-0 bg-[var(--brokaw-paper)]/98 backdrop-blur-xl shadow-[var(--brokaw-shadow-raised)] z-50 pointer-events-none border-t border-[var(--brokaw-rule)] overflow-hidden transition-colors'
|
|
25
|
+
style='opacity: 0; transform: translateX(-100%); transition: transform 360ms var(--brokaw-ease), opacity 180ms var(--brokaw-ease);'
|
|
27
26
|
>
|
|
28
27
|
<div class='container mx-auto px-4 py-4 md:py-8 h-full overflow-y-auto overscroll-contain'>
|
|
29
28
|
<div class='grid grid-cols-1 lg:grid-cols-5 gap-6 lg:gap-8'>
|
|
@@ -217,21 +216,23 @@
|
|
|
217
216
|
</div>
|
|
218
217
|
</div>
|
|
219
218
|
|
|
220
|
-
<div class='absolute left-1/2
|
|
221
|
-
<a href='{{logoLink}}' aria-label='fifthbell - Home'>
|
|
222
|
-
<
|
|
219
|
+
<div class='absolute left-1/2 -translate-x-1/2'>
|
|
220
|
+
<a href='{{logoLink}}' class='site-header-action flex items-center gap-2.5 px-2 py-1 text-[var(--brokaw-ink)]' aria-label='fifthbell - Home'>
|
|
221
|
+
<span class='flex h-9 w-9 items-center justify-center {{#if mourningMode}}bg-black{{else}}bg-[var(--brokaw-signal)]{{/if}} text-white'>
|
|
222
|
+
<svg class='h-5 w-5' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'>
|
|
223
223
|
<path d='M10.268 21a2 2 0 0 0 3.464 0'></path>
|
|
224
224
|
<path d='M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326'></path>
|
|
225
225
|
<path d='M4 2C2.8 3.7 2 5.7 2 8'></path>
|
|
226
226
|
<path d='M22 8a10 10 0 0 0-2-6'></path>
|
|
227
|
-
</svg>
|
|
227
|
+
</svg></span>
|
|
228
|
+
<span class='hidden font-sans text-[17px] font-medium tracking-[-0.025em] sm:inline'>fifth<span class='font-bold'>bell</span></span>
|
|
228
229
|
</a>
|
|
229
230
|
</div>
|
|
230
231
|
|
|
231
|
-
<div class='flex items-center
|
|
232
|
+
<div class='flex items-center gap-2'>
|
|
232
233
|
<a
|
|
233
234
|
href='{{#if (eq language "en")}}/search{{else}}/{{language}}/search{{/if}}'
|
|
234
|
-
class='flex items-center justify-center
|
|
235
|
+
class='site-header-action flex h-10 w-10 items-center justify-center hover:bg-black/[0.04] dark:hover:bg-white/[0.06] text-[var(--brokaw-ink)]'
|
|
235
236
|
aria-label='Search'
|
|
236
237
|
>
|
|
237
238
|
<svg class='w-4 h-4' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'>
|
|
@@ -240,7 +241,7 @@
|
|
|
240
241
|
</svg>
|
|
241
242
|
</a>
|
|
242
243
|
<form
|
|
243
|
-
class='hidden
|
|
244
|
+
class='hidden items-center'
|
|
244
245
|
role='search'
|
|
245
246
|
action='{{#if (eq language "en")}}/search{{else}}/{{language}}/search{{/if}}'
|
|
246
247
|
method='get'
|
|
@@ -260,7 +261,7 @@
|
|
|
260
261
|
href='https://www.youtube.com/watch?v=-eYi7dd8VRY'
|
|
261
262
|
target='_blank'
|
|
262
263
|
rel='noopener noreferrer'
|
|
263
|
-
class='hidden
|
|
264
|
+
class='site-header-action hidden items-center gap-2 border border-[var(--brokaw-rule)] px-4 py-2 font-sans text-[11px] font-bold uppercase tracking-[0.12em] text-[var(--brokaw-ink)] hover:border-[var(--brokaw-signal)] hover:text-[var(--brokaw-signal)] md:flex'
|
|
264
265
|
>
|
|
265
266
|
<svg class='w-5 h-5' viewBox='0 0 24 24' fill='currentColor'>
|
|
266
267
|
<path d='M8 5v14l11-7z'></path>
|
|
@@ -321,7 +322,7 @@
|
|
|
321
322
|
transition-colors'>${article?.title || ''}</a> </h2> </div> ` ) .join(''); const rows = []; for (let i = 0; i < grid.length; i += 3) { const row =
|
|
322
323
|
grid.slice(i, i + 3); if (!row.length) continue; rows.push(` <div class='grid grid-cols-3 gap-6 ${i > 0 ? 'pt-6 border-t border-slate-200 dark:border-slate-800' : ''}'> ${row .map( (article, idx) => ` <div class='${idx === 0 ? 'pr-4 border-r border-slate-200 dark:border-slate-800' : idx === 1 ?
|
|
323
324
|
'px-4 border-r border-slate-200 dark:border-slate-800' : 'pl-4'}'> <div class='flex items-center text-slate-500 dark:text-slate-400 text-sm mb-3'> <span
|
|
324
|
-
class='uppercase font-bold'>${article?.categories?.[0]?.name || categoryName || 'GENERAL'}</span> </div> <h3 class='font-
|
|
325
|
+
class='uppercase font-bold'>${article?.categories?.[0]?.name || categoryName || 'GENERAL'}</span> </div> <h3 class='font-bold font-encode text-base leading-tight
|
|
325
326
|
text-slate-900 dark:text-slate-100'> <a href='${getArticleLeafPath(article)}' class='hover:text-[#8f0d00] dark:hover:text-[#ff2e1a]
|
|
326
327
|
transition-colors'>${article?.title || ''}</a> </h3> </div> ` ) .join('')} </div> `); } miniFeatured.innerHTML = ` <h3 class='text-xs font-bold text-slate-400
|
|
327
328
|
dark:text-slate-600 uppercase tracking-wider mb-6 border-b border-slate-200 dark:border-slate-800 pb-2'> ${(categoryName || 'Featured Stories').toUpperCase()}
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
.category-label {
|
|
110
|
-
font-family: 'Encode Sans
|
|
110
|
+
font-family: 'Encode Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
|
|
111
111
|
font-size: 80px;
|
|
112
112
|
line-height: 119px;
|
|
113
113
|
font-weight: 600;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
<footer class='sticky top-[100vh] bg-slate-50 dark:bg-slate-900 border-t border-slate-200 dark:border-slate-800 mt-8 transition-colors' style='view-transition-name: site-footer;'>
|
|
2
|
-
<div class='container mx-auto px-4 py-6 text-center text-sm text-slate-600 dark:text-slate-400'>
|
|
3
|
-
<span>© 2026 fifth<b>bell</b>. All rights reserved.</span>
|
|
4
|
-
</div>
|
|
5
|
-
</footer>
|