Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions models/Badge.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
type: object
name: Badge
label: Badge
fieldGroups:
- name: settings
label: Settings
fields:
- type: string
name: label
label: Label
description: The text in the badge
- type: string
name: elementId
group: settings
label: Element ID
description: The unique ID for an HTML element, must not contain whitespace
default: ''
- type: string
name: label
label: Label
description: The text in the badge
20 changes: 15 additions & 5 deletions models/Button.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
type: object
name: Button
label: Button
fieldGroups:
- name: styles
label: Styles
- name: settings
label: Settings
fields:
- type: string
name: elementId
label: Element ID
description: The unique ID for an HTML element, must not contain whitespace
default: ''
- type: string
name: label
label: Label
Expand All @@ -22,10 +22,12 @@ fields:
default: '/'
- type: boolean
name: showIcon
group: styles
label: Show icon
default: false
- type: enum
name: icon
group: styles
label: Icon
options:
- arrowLeft
Expand All @@ -39,13 +41,15 @@ fields:
default: arrowLeft
- type: enum
name: iconPosition
group: styles
label: Icon position
options:
- left
- right
default: right
- type: enum
name: style
group: styles
label: Style
options:
- label: Link
Expand All @@ -55,3 +59,9 @@ fields:
- label: Secondary
value: secondary
default: secondary
- type: string
name: elementId
group: settings
label: Element ID
description: The unique ID for an HTML element, must not contain whitespace
default: ''
4 changes: 4 additions & 0 deletions models/CheckboxFormControl.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
type: object
name: CheckboxFormControl
label: Checkbox
fieldGroups:
- name: styles
label: Styles
fields:
- type: string
name: name
Expand All @@ -16,6 +19,7 @@ fields:
default: false
- type: enum
name: width
group: styles
label: Width
options:
- label: Full
Expand Down
17 changes: 0 additions & 17 deletions models/Config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,6 @@ type: data
name: Config
label: Site configuration
fields:
- type: enum
name: backgroundColor
label: Background color
options:
- label: White
value: bg-white
- label: Base
value: bg-base
- label: Primary
value: bg-primary
- label: Secondary
value: bg-secondary
- label: Complementary 1
value: bg-complementary-1
- label: Complementary 2
value: bg-complementary-2
default: bg-white
- type: model
name: navBar
label: Navbar configuration
Expand Down
9 changes: 8 additions & 1 deletion models/ContactBlock.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
type: object
name: ContactBlock
label: Contact
fieldGroups:
- name: settings
label: Settings
fields:
- type: string
name: phoneNumber
Expand All @@ -21,4 +24,8 @@ fields:
name: addressAltText
label: Address alt text
- type: string
name: elementId
name: elementId
group: settings
label: Element ID
description: The unique ID for an HTML element, must not contain whitespace
default: ''
8 changes: 5 additions & 3 deletions models/ContactSection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ extends:
groups:
- sectionComponent
fieldGroups:
- name: settings
label: Settings
- name: styles
label: Styles
- name: settings
label: Settings
fields:
- name: colors
default: colors-h
Expand All @@ -32,6 +32,7 @@ fields:
- type: enum
name: variant
label: Arrangement
group: styles
options:
- label: Contact form with feature on the left
value: variant-a
Expand All @@ -40,6 +41,7 @@ fields:
default: variant-b
- type: model
name: badge
group: styles
label: Badge
models:
- Badge
Expand All @@ -56,7 +58,7 @@ fields:
- FormBlock
default:
type: FormBlock
idAttr: contact-form
elementId: contact-form
action: /.netlify/functions/submission_created
destination: ''
fields:
Expand Down
5 changes: 3 additions & 2 deletions models/CtaSection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ extends:
groups:
- sectionComponent
fieldGroups:
- name: settings
label: Settings
- name: styles
label: Styles
- name: settings
label: Settings
fields:
- type: enum
name: variant
Expand All @@ -22,6 +22,7 @@ fields:
default: variant-b
- type: model
name: badge
group: styles
label: Badge
models:
- Badge
Expand Down
4 changes: 4 additions & 0 deletions models/EmailFormControl.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
type: object
name: EmailFormControl
label: Email
fieldGroups:
- name: styles
label: Styles
fields:
- type: string
name: name
Expand All @@ -19,6 +22,7 @@ fields:
default: false
- type: enum
name: width
group: styles
label: Width
options:
- label: Full
Expand Down
6 changes: 4 additions & 2 deletions models/FeaturedPeopleSection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ extends:
groups:
- sectionComponent
fieldGroups:
- name: settings
label: Settings
- name: styles
label: Styles
- name: settings
label: Settings
fields:
- type: enum
name: variant
group: styles
label: Arrangement
options:
- label: Four columns, person info with image at the top
Expand All @@ -24,6 +25,7 @@ fields:
default: variant-a
- type: model
name: badge
group: styles
label: Badge
models:
- Badge
Expand Down
6 changes: 4 additions & 2 deletions models/FeaturedPostsSection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ extends:
groups:
- sectionComponent
fieldGroups:
- name: settings
label: Settings
- name: styles
label: Styles
- name: settings
label: Settings
fields:
- type: enum
name: variant
group: styles
label: Arrangement
options:
- label: Three columns, post thumbnail at the top
Expand All @@ -22,6 +23,7 @@ fields:
default: variant-b
- type: model
name: badge
group: styles
label: Badge
models:
- Badge
Expand Down
16 changes: 10 additions & 6 deletions models/Footer.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
type: object
name: Footer
label: Footer
fieldGroups:
- name: styles
label: Styles
- name: settings
label: Settings
fields:
- type: enum
name: colors
group: styles
label: Colors
options:
- label: Base foreground on white background
Expand All @@ -27,21 +33,19 @@ fields:
default: colors-a
- type: enum
name: width
group: styles
label: Width
options:
- wide
- full
default: wide
- type: string
name: title
label: Title
- type: boolean
name: isTitleVisible
label: Display title
- type: model
name: logo
label: Logo
models: [ImageBlock]
- type: string
name: title
label: Title
- type: markdown
name: text
label: Text
Expand Down
25 changes: 16 additions & 9 deletions models/FormBlock.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
type: object
name: FormBlock
label: Form
fieldGroups:
- name: settings
label: Settings
fields:
- type: string
name: idAttr
label: ID (used for id and name attributes)
- type: string
name: action
label: Action (form submission URL)
- type: string
name: destination
label: Destination (email to redirect responses)
- type: list
name: fields
label: Fields
Expand All @@ -25,3 +19,16 @@ fields:
- type: string
name: submitLabel
label: Submit button label
- type: string
name: elementId
group: settings
label: Element ID
description: The unique ID used for id and name attributes, must not contain whitespace
- type: string
name: action
group: settings
label: Action (form submission URL)
- type: string
name: destination
group: settings
label: Destination (email to redirect responses)
27 changes: 12 additions & 15 deletions models/HeroSection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ extends:
groups:
- sectionComponent
fieldGroups:
- name: settings
label: Settings
- name: styles
label: Styles
- name: settings
label: Settings
fields:
- name: colors
default: colors-f
Expand All @@ -29,21 +29,9 @@ fields:
default: none
- name: textAlign
default: left
- type: enum
name: variant
label: Arrangement
options:
- label: Hero with feature on the right
value: variant-a
- label: Hero with feature on the left
value: variant-b
- label: Hero with feature at the top
value: variant-c
- label: Hero with feature at the bottom
value: variant-d
default: variant-a
- type: model
name: badge
group: styles
label: Badge
models:
- Badge
Expand Down Expand Up @@ -92,6 +80,15 @@ fields:
type: ImageBlock
url: /images/hero.png
altText: Hero section image
- type: enum
name: featurePosition
label: Feature position
options:
- right
- left
- top
- bottom
default: right
- type: model
name: backgroundImage
group: styles
Expand Down
Loading