Titles style change in CU texts all titles are red
This commit is contained in:
1 parent
7e4c1cc241
commit
eea87ba08f
6 files changed
+20
-21
No files matched your search
@@ -85,7 +85,6 @@ export class App {
|
|||||||
this.container.innerHTML = `
|
this.container.innerHTML = `
|
||||||
<div class="app-container min-h-screen flex flex-col">
|
<div class="app-container min-h-screen flex flex-col">
|
||||||
<header class="bg-navy text-parchment p-3 flex items-center justify-between shadow-md">
|
<header class="bg-navy text-parchment p-3 flex items-center justify-between shadow-md">
|
||||||
<h1 class="text-sm font-bold tracking-wide">${t.appName}</h1>
|
|
||||||
<nav class="flex flex-wrap gap-4 text-sm">
|
<nav class="flex flex-wrap gap-4 text-sm">
|
||||||
<a href="#calendar" class="nav-link hover:text-gold transition-colors" data-view="calendar">${t.nav.calendar}</a>
|
<a href="#calendar" class="nav-link hover:text-gold transition-colors" data-view="calendar">${t.nav.calendar}</a>
|
||||||
<details class="nav-group relative" data-nav="library">
|
<details class="nav-group relative" data-nav="library">
|
||||||
|
|||||||
+11
-11
@@ -497,7 +497,7 @@ export class CalendarView {
|
|||||||
let col = 0;
|
let col = 0;
|
||||||
|
|
||||||
gridHtml += this.t.calendar.dayNames.map(d =>
|
gridHtml += this.t.calendar.dayNames.map(d =>
|
||||||
`<div class="text-center text-xs font-bold text-navy-light py-1">${d}</div>`
|
`<div class="text-center text-xs font-bold text-red py-1">${d}</div>`
|
||||||
).join('');
|
).join('');
|
||||||
|
|
||||||
for (let i = 0; i < firstDow; i++) {
|
for (let i = 0; i < firstDow; i++) {
|
||||||
@@ -572,7 +572,7 @@ export class CalendarView {
|
|||||||
|
|
||||||
<div class="flex-1 p-6 overflow-auto">
|
<div class="flex-1 p-6 overflow-auto">
|
||||||
<div class="max-w-2xl lg:max-w-3xl xl:max-w-4xl">
|
<div class="max-w-2xl lg:max-w-3xl xl:max-w-4xl">
|
||||||
<h2 class="text-base font-bold text-navy mb-1">
|
<h2 class="text-base font-bold text-red mb-1">
|
||||||
${julianStr}
|
${julianStr}
|
||||||
</h2>
|
</h2>
|
||||||
<div class="text-sm text-navy-light mb-2">
|
<div class="text-sm text-navy-light mb-2">
|
||||||
@@ -582,17 +582,17 @@ export class CalendarView {
|
|||||||
<div id="day-title" class="mb-4"></div>
|
<div id="day-title" class="mb-4"></div>
|
||||||
|
|
||||||
<div id="commemorations-panel" class="mb-4 p-4 bg-white/50 border border-gold/20 rounded-lg ${fnClass}">
|
<div id="commemorations-panel" class="mb-4 p-4 bg-white/50 border border-gold/20 rounded-lg ${fnClass}">
|
||||||
<h3 class="font-bold text-navy mb-2">${this.t.calendar.commemorations}</h3>
|
<h3 class="font-bold text-red mb-2">${this.t.calendar.commemorations}</h3>
|
||||||
<p class="text-sm text-navy-light italic">${this.t.loading}</p>
|
<p class="text-sm text-navy-light italic">${this.t.loading}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="fasting-panel" class="mb-4 p-4 bg-white/50 border border-gold/20 rounded-lg ${fnClass}">
|
<div id="fasting-panel" class="mb-4 p-4 bg-white/50 border border-gold/20 rounded-lg ${fnClass}">
|
||||||
<h3 class="font-bold text-navy mb-2">${this.t.calendar.fastingRule}</h3>
|
<h3 class="font-bold text-red mb-2">${this.t.calendar.fastingRule}</h3>
|
||||||
<p class="text-sm italic text-navy-light">${this.t.loading}</p>
|
<p class="text-sm italic text-navy-light">${this.t.loading}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="readings-panel" class="mb-4 p-4 bg-white/50 border border-gold/20 rounded-lg ${fnClass}">
|
<div id="readings-panel" class="mb-4 p-4 bg-white/50 border border-gold/20 rounded-lg ${fnClass}">
|
||||||
<h3 class="font-bold text-navy mb-2">${this.t.calendar.readings}</h3>
|
<h3 class="font-bold text-red mb-2">${this.t.calendar.readings}</h3>
|
||||||
<p class="text-sm text-navy-light italic">${this.t.loading}</p>
|
<p class="text-sm text-navy-light italic">${this.t.loading}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -658,7 +658,7 @@ export class CalendarView {
|
|||||||
const fastingPanel = document.getElementById('fasting-panel');
|
const fastingPanel = document.getElementById('fasting-panel');
|
||||||
if (fastingPanel) {
|
if (fastingPanel) {
|
||||||
fastingPanel.innerHTML = `
|
fastingPanel.innerHTML = `
|
||||||
<h3 class="font-bold text-navy mb-2">${this.t.calendar.fastingRule}</h3>
|
<h3 class="font-bold text-red mb-2">${this.t.calendar.fastingRule}</h3>
|
||||||
<p class="text-sm">${fastingResult.description || this.t.notAvailable}</p>
|
<p class="text-sm">${fastingResult.description || this.t.notAvailable}</p>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
@@ -759,7 +759,7 @@ export class CalendarView {
|
|||||||
if (commPanel) {
|
if (commPanel) {
|
||||||
if (cids.length === 0) {
|
if (cids.length === 0) {
|
||||||
commPanel.innerHTML = `
|
commPanel.innerHTML = `
|
||||||
<h3 class="font-bold text-navy mb-2">${this.t.calendar.commemorations}</h3>
|
<h3 class="font-bold text-red mb-2">${this.t.calendar.commemorations}</h3>
|
||||||
<p class="text-sm text-navy-light italic">${this.t.calendar.noCommemorations}</p>
|
<p class="text-sm text-navy-light italic">${this.t.calendar.noCommemorations}</p>
|
||||||
`;
|
`;
|
||||||
} else {
|
} else {
|
||||||
@@ -801,7 +801,7 @@ export class CalendarView {
|
|||||||
}
|
}
|
||||||
if (commHtmlParts.length > 0) {
|
if (commHtmlParts.length > 0) {
|
||||||
commPanel.innerHTML = `
|
commPanel.innerHTML = `
|
||||||
<h3 class="font-bold text-navy mb-2">${this.t.calendar.commemorations}</h3>
|
<h3 class="font-bold text-red mb-2">${this.t.calendar.commemorations}</h3>
|
||||||
<div class="space-y-1">${commHtmlParts.join('')}</div>
|
<div class="space-y-1">${commHtmlParts.join('')}</div>
|
||||||
`;
|
`;
|
||||||
commPanel.addEventListener('click', (e) => {
|
commPanel.addEventListener('click', (e) => {
|
||||||
@@ -814,7 +814,7 @@ export class CalendarView {
|
|||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
commPanel.innerHTML = `
|
commPanel.innerHTML = `
|
||||||
<h3 class="font-bold text-navy mb-2">${this.t.calendar.commemorations}</h3>
|
<h3 class="font-bold text-red mb-2">${this.t.calendar.commemorations}</h3>
|
||||||
<p class="text-sm text-navy-light italic">${this.t.calendar.noCommemorations}</p>
|
<p class="text-sm text-navy-light italic">${this.t.calendar.noCommemorations}</p>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
@@ -898,7 +898,7 @@ export class CalendarView {
|
|||||||
if (readingsPanel) {
|
if (readingsPanel) {
|
||||||
if (readingsGroups.length === 0) {
|
if (readingsGroups.length === 0) {
|
||||||
readingsPanel.innerHTML = `
|
readingsPanel.innerHTML = `
|
||||||
<h3 class="font-bold text-navy mb-2">${this.t.calendar.readings}</h3>
|
<h3 class="font-bold text-red mb-2">${this.t.calendar.readings}</h3>
|
||||||
<p class="text-sm text-navy-light italic">${this.t.calendar.noReadings}</p>
|
<p class="text-sm text-navy-light italic">${this.t.calendar.noReadings}</p>
|
||||||
`;
|
`;
|
||||||
} else {
|
} else {
|
||||||
@@ -922,7 +922,7 @@ export class CalendarView {
|
|||||||
return `<div class="text-sm text-navy"><strong>${g.service}</strong>${this.t.calendar.colon}${refs}</div>`;
|
return `<div class="text-sm text-navy"><strong>${g.service}</strong>${this.t.calendar.colon}${refs}</div>`;
|
||||||
}).join('');
|
}).join('');
|
||||||
readingsPanel.innerHTML = `
|
readingsPanel.innerHTML = `
|
||||||
<h3 class="font-bold text-navy mb-2">${this.t.calendar.readings}</h3>
|
<h3 class="font-bold text-red mb-2">${this.t.calendar.readings}</h3>
|
||||||
<div class="space-y-1">${groupsHtml}</div>
|
<div class="space-y-1">${groupsHtml}</div>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ export class MenaionView {
|
|||||||
|
|
||||||
this.container.innerHTML = `
|
this.container.innerHTML = `
|
||||||
<div class="p-6 max-w-4xl xl:max-w-6xl mx-auto">
|
<div class="p-6 max-w-4xl xl:max-w-6xl mx-auto">
|
||||||
<h2 class="text-2xl font-bold text-navy mb-2">${this.t.menaion.title}</h2>
|
<h2 class="text-2xl font-bold text-red mb-2">${this.t.menaion.title}</h2>
|
||||||
<p class="text-navy-light mb-4">${months[0]}</p>
|
<p class="text-navy-light mb-4">${months[0]}</p>
|
||||||
<div class="flex flex-wrap gap-1 mb-6">
|
<div class="flex flex-wrap gap-1 mb-6">
|
||||||
${monthHtml}
|
${monthHtml}
|
||||||
|
|||||||
@@ -216,7 +216,7 @@ export class PrayerView {
|
|||||||
|
|
||||||
this.container.innerHTML = `
|
this.container.innerHTML = `
|
||||||
<div class="p-6 max-w-4xl xl:max-w-6xl mx-auto">
|
<div class="p-6 max-w-4xl xl:max-w-6xl mx-auto">
|
||||||
<h2 class="text-2xl font-bold text-navy mb-2">${title}</h2>
|
<h2 class="text-2xl font-bold text-red mb-2">${title}</h2>
|
||||||
<p class="text-navy-light mb-6">${subtitle}</p>
|
<p class="text-navy-light mb-6">${subtitle}</p>
|
||||||
<div class="grid gap-2 sm:grid-cols-2 mb-6">
|
<div class="grid gap-2 sm:grid-cols-2 mb-6">
|
||||||
${sections.map(s => `
|
${sections.map(s => `
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ export class ServiceView {
|
|||||||
const contentClass = `bg-white/50 border border-gold/20 rounded-lg p-6 ${this.activeService ? 'min-h-[300px]' : ''} ${fontClass}`;
|
const contentClass = `bg-white/50 border border-gold/20 rounded-lg p-6 ${this.activeService ? 'min-h-[300px]' : ''} ${fontClass}`;
|
||||||
|
|
||||||
const tabHtml = `
|
const tabHtml = `
|
||||||
<h3 class="font-bold text-navy mb-3">${this.t.services.title}</h3>
|
<h3 class="font-bold text-red mb-3">${this.t.services.title}</h3>
|
||||||
<div class="flex flex-wrap gap-1 mb-6 border-b border-gold/20">
|
<div class="flex flex-wrap gap-1 mb-6 border-b border-gold/20">
|
||||||
${availableServices.map(s => `
|
${availableServices.map(s => `
|
||||||
${s.divider ? '<span class="self-center mx-1 text-gold/40 select-none" aria-hidden="true">·</span>' : ''}
|
${s.divider ? '<span class="self-center mx-1 text-gold/40 select-none" aria-hidden="true">·</span>' : ''}
|
||||||
@@ -110,7 +110,7 @@ export class ServiceView {
|
|||||||
|
|
||||||
this.container.innerHTML = standalone
|
this.container.innerHTML = standalone
|
||||||
? `<div class="p-6 max-w-4xl xl:max-w-6xl mx-auto">
|
? `<div class="p-6 max-w-4xl xl:max-w-6xl mx-auto">
|
||||||
<h2 class="text-2xl font-bold text-navy mb-2">${this.t.services.title}</h2>
|
<h2 class="text-2xl font-bold text-red mb-2">${this.t.services.title}</h2>
|
||||||
<p class="text-navy-light mb-4">
|
<p class="text-navy-light mb-4">
|
||||||
${this.currentDate.toString()}
|
${this.currentDate.toString()}
|
||||||
${dayInfo.isLent ? this.t.services.greatLent : ''}
|
${dayInfo.isLent ? this.t.services.greatLent : ''}
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ export class SettingsView {
|
|||||||
|
|
||||||
this.container.innerHTML = `
|
this.container.innerHTML = `
|
||||||
<div class="p-6 max-w-2xl lg:max-w-3xl xl:max-w-4xl mx-auto">
|
<div class="p-6 max-w-2xl lg:max-w-3xl xl:max-w-4xl mx-auto">
|
||||||
<h2 class="text-2xl font-bold text-navy mb-6">${t.settings.title}</h2>
|
<h2 class="text-2xl font-bold text-red mb-6">${t.settings.title}</h2>
|
||||||
|
|
||||||
<!-- Language -->
|
<!-- Language -->
|
||||||
<div class="mb-6">
|
<div class="mb-6">
|
||||||
@@ -128,7 +128,7 @@ export class SettingsView {
|
|||||||
|
|
||||||
<!-- Font Settings -->
|
<!-- Font Settings -->
|
||||||
<div class="mb-6">
|
<div class="mb-6">
|
||||||
<h3 class="text-lg font-bold text-navy mb-3">${t.settings.fontSettings}</h3>
|
<h3 class="text-lg font-bold text-red mb-3">${t.settings.fontSettings}</h3>
|
||||||
|
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<select id="cu-font" class="w-full border border-gold/30 rounded p-2 bg-white text-navy">
|
<select id="cu-font" class="w-full border border-gold/30 rounded p-2 bg-white text-navy">
|
||||||
@@ -159,7 +159,7 @@ export class SettingsView {
|
|||||||
|
|
||||||
<!-- Calendar Type -->
|
<!-- Calendar Type -->
|
||||||
<div class="mb-6">
|
<div class="mb-6">
|
||||||
<h3 class="text-lg font-bold text-navy mb-3">${t.settings.calendarType}</h3>
|
<h3 class="text-lg font-bold text-red mb-3">${t.settings.calendarType}</h3>
|
||||||
<div class="flex gap-4">
|
<div class="flex gap-4">
|
||||||
<label class="flex items-center gap-2 cursor-pointer">
|
<label class="flex items-center gap-2 cursor-pointer">
|
||||||
<input type="radio" name="calendar-type" value="julian" ${this.settings.calendarType === 'julian' ? 'checked' : ''}
|
<input type="radio" name="calendar-type" value="julian" ${this.settings.calendarType === 'julian' ? 'checked' : ''}
|
||||||
@@ -176,7 +176,7 @@ export class SettingsView {
|
|||||||
|
|
||||||
<!-- Bible Settings -->
|
<!-- Bible Settings -->
|
||||||
<div class="mb-6">
|
<div class="mb-6">
|
||||||
<h3 class="text-lg font-bold text-navy mb-3">${t.settings.bibleSettings}</h3>
|
<h3 class="text-lg font-bold text-red mb-3">${t.settings.bibleSettings}</h3>
|
||||||
|
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<label class="block text-sm font-bold text-navy mb-1">${t.settings.defaultTranslation}</label>
|
<label class="block text-sm font-bold text-navy mb-1">${t.settings.defaultTranslation}</label>
|
||||||
@@ -237,7 +237,7 @@ export class SettingsView {
|
|||||||
|
|
||||||
<!-- About -->
|
<!-- About -->
|
||||||
<div class="mt-8 pt-6 border-t border-gold/20">
|
<div class="mt-8 pt-6 border-t border-gold/20">
|
||||||
<h3 class="text-lg font-bold text-navy mb-2">${t.settings.about}</h3>
|
<h3 class="text-lg font-bold text-red mb-2">${t.settings.about}</h3>
|
||||||
<p class="text-sm text-navy-light">
|
<p class="text-sm text-navy-light">
|
||||||
${t.settings.aboutText}
|
${t.settings.aboutText}
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
Reference in new issue
Block a user