Skip to content

Instantly share code, notes, and snippets.

@michaelhayman
Created February 23, 2020 19:01
Show Gist options
  • Save michaelhayman/757336c18287d4c2e698343b957fec8d to your computer and use it in GitHub Desktop.
Save michaelhayman/757336c18287d4c2e698343b957fec8d to your computer and use it in GitHub Desktop.
Jobby JSON for sites
// make each key a different field on sites table
{
global_sections: [
{
type: 'header'
}
],
colors: {
text: {
headings_and_links:,
body_text:,
sale_price:,
},
buttons: {
primary_buttons: '',
primary_labels: '',
secondary_labels_and_borders: '',
},
form_fields: {
text: '',
border: '',
background: '',
},
image_overlays: {
text: '',
background: ''
opacity: ''
},
page: {
borders_and_lines: '',
background: '',
}
},
typography: {
headings_and_buttons: {
font_family: '',
size:
},
body_text: {
font_family: '',
size:
}
},
favicon: {
},
pages: {
home: {
preferences: { // or just skip over this
header: 'global',
footer: 'simple',
},
sections: [
{
type: 'slideshow',
content: [
{
type: 'image_slide',
image: 'x_id',
},
{
type: 'image_slide',
image: 'x_id', // but also in our database as 'image' so they can delete it / update it
}
],
sequence: 1
},
{
type: 'footer',
content: [
{
type: 'quick_links',
links: [
{
title: 'asdf',
link: '',
page_id: ''
}
]
}
]
}
],
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment