Make homepage study card admin-editable with NEW tag controls
This commit is contained in:
@@ -1,3 +1,26 @@
|
||||
import { DEFAULT_COLOSSIANS_STUDY_SECTIONS } from './colossiansStudyData'
|
||||
import type { ColossiansStudySection as ColossiansStudySectionData } from './colossiansStudyData'
|
||||
|
||||
export type ColossiansStudySection = ColossiansStudySectionData
|
||||
export type StudySection = ColossiansStudySectionData
|
||||
|
||||
export interface StudyProgram {
|
||||
id: string
|
||||
slug: string
|
||||
title: string
|
||||
description: string
|
||||
homepageEyebrow?: string
|
||||
showOnHomepage?: boolean
|
||||
showNewTag?: boolean
|
||||
newTagLabel?: string
|
||||
status: 'active' | 'planned'
|
||||
difficulty: 'beginner' | 'intermediate' | 'advanced'
|
||||
estimatedHours: number
|
||||
completionBadge: string
|
||||
numberOfChapters: number
|
||||
sections: StudySection[]
|
||||
}
|
||||
|
||||
export interface CustomLink {
|
||||
id: string
|
||||
label: string
|
||||
@@ -145,6 +168,9 @@ export interface SiteContent {
|
||||
studyGuideDownloadUrl: string
|
||||
studyGuideUrl: string
|
||||
studyGuideAmazonButtonLabel: string
|
||||
// ── Colossians Study ──
|
||||
studies: StudyProgram[]
|
||||
colossiansStudySections: ColossiansStudySection[]
|
||||
// ── Share ──
|
||||
shareHeading: string
|
||||
shareP: string
|
||||
@@ -256,6 +282,41 @@ export const DEFAULTS: SiteContent = {
|
||||
studyGuideDownloadUrl: '',
|
||||
studyGuideUrl: 'https://a.co/d/01sG2tOJ',
|
||||
studyGuideAmazonButtonLabel: 'Get it on Amazon',
|
||||
studies: [
|
||||
{
|
||||
id: 'study-colossians',
|
||||
slug: 'colossians',
|
||||
title: 'Colossians: Rooted in Christ',
|
||||
description: 'Walk through Colossians in guided lessons with commentary, Greek notes, and discussion prompts.',
|
||||
homepageEyebrow: 'New Study',
|
||||
showOnHomepage: true,
|
||||
showNewTag: true,
|
||||
newTagLabel: 'NEW',
|
||||
status: 'active',
|
||||
difficulty: 'intermediate',
|
||||
estimatedHours: 12,
|
||||
completionBadge: 'Colossians Completion',
|
||||
numberOfChapters: 4,
|
||||
sections: DEFAULT_COLOSSIANS_STUDY_SECTIONS,
|
||||
},
|
||||
{
|
||||
id: 'study-titus',
|
||||
slug: 'titus',
|
||||
title: 'Titus: Sound Doctrine',
|
||||
description: 'A full online class version of Titus with lesson-by-lesson notes and discussion.',
|
||||
homepageEyebrow: 'Planned Study',
|
||||
showOnHomepage: false,
|
||||
showNewTag: false,
|
||||
newTagLabel: 'NEW',
|
||||
status: 'planned',
|
||||
difficulty: 'beginner',
|
||||
estimatedHours: 8,
|
||||
completionBadge: 'Titus Completion',
|
||||
numberOfChapters: 3,
|
||||
sections: [],
|
||||
},
|
||||
],
|
||||
colossiansStudySections: DEFAULT_COLOSSIANS_STUDY_SECTIONS,
|
||||
shareHeading: 'Help one more person hear the Word this week.',
|
||||
shareP: 'Scan the QR code or text the show link to a friend who needs encouragement today.',
|
||||
whereToNextEyebrow: 'Where to Next',
|
||||
|
||||
Reference in New Issue
Block a user