Skip to content

Instantly share code, notes, and snippets.

@rudyrigot
Last active September 25, 2016 13:25
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rudyrigot/9517967 to your computer and use it in GitHub Desktop.
Save rudyrigot/9517967 to your computer and use it in GitHub Desktop.
All the JSON masks for the prismic.io Bootstrap3 example
{
"For all the website" : {
"website_title" : {
"fieldset" : "Website's title",
"type" : "StructuredText",
"config" : {
"placeholder" : "You shouldn't make it longer that 2 characters.",
"single" : "heading1"
}
},
"twitter" : {
"fieldset" : "Social profiles",
"type" : "Link",
"config" : {
"placeholder" : "Twitter",
"select" : "web"
}
},
"facebook" : {
"type" : "Link",
"config" : {
"placeholder" : "Facebook",
"select" : "web"
}
},
"google_plus" : {
"type" : "Link",
"config" : {
"placeholder" : "Google+",
"select" : "web"
}
},
"dribbble" : {
"type" : "Link",
"config" : {
"placeholder" : "Dribble",
"select" : "web"
}
},
"linkedin" : {
"type" : "Link",
"config" : {
"placeholder" : "LinkedIn",
"select" : "web"
}
}
},
"Intro" : {
"page_title" : {
"type" : "StructuredText",
"fieldset" : "Page title",
"config" : {
"single" : "heading2"
}
},
"page_lede" : {
"type" : "StructuredText",
"fieldset" : "Page lede"
},
"introduction_carrousel" : {
"type" : "Group",
"fieldset" : "Slider of screenshots",
"config" : {
"fields" : {
"image" : {
"type" : "Image",
"config" : {
"thumbnails" : [ {
"name" : "regular",
"width" : 450.0,
"height" : 270.0
} ]
}
}
}
}
}
},
"What I do" : {
"whatido_title" : {
"type" : "StructuredText",
"fieldset" : "Title",
"config" : {
"single" : "heading2"
}
},
"whatido_lede" : {
"type" : "StructuredText",
"fieldset" : "Lede"
}
},
"Featured project" : {
"featured_title" : {
"type" : "StructuredText",
"fieldset" : "Title",
"config" : {
"single" : "heading2"
}
},
"featured_lede" : {
"type" : "StructuredText",
"fieldset" : "Lede"
},
"featured_image" : {
"type" : "Image",
"fieldset" : "Image",
"config" : {
"thumbnails" : [ {
"name" : "regular",
"width" : 800.0,
"height" : 500.0
} ]
}
},
"featured_link" : {
"type" : "Link",
"fieldset" : "URL linked upon click on the image",
"config" : {
"select" : "web"
}
}
},
"About me" : {
"about_title" : {
"type" : "StructuredText",
"fieldset" : "Title",
"config" : {
"single" : "heading2"
}
},
"about_photo" : {
"type" : "Image",
"fieldset" : "Image",
"config" : {
"thumbnails" : [ {
"name" : "regular",
"width" : 310.0,
"height" : 310.0
} ]
}
},
"about_lede" : {
"type" : "StructuredText",
"fieldset" : "Lede"
},
"about_cta_label" : {
"type" : "Text",
"fieldset" : "Call-to-action's label"
}
},
"Skills & Works" : {
"skills_title" : {
"type" : "StructuredText",
"fieldset" : "Title of the Skills section",
"config" : {
"single" : "heading2"
}
},
"works_title" : {
"type" : "StructuredText",
"fieldset" : "Title of the Works section",
"config" : {
"single" : "heading2"
}
},
"works_lede" : {
"type" : "StructuredText",
"fieldset" : "Lede of the Works section"
}
},
"Contact form" : {
"contact_title" : {
"type" : "StructuredText",
"fieldset" : "Title",
"config" : {
"single" : "heading2"
}
},
"contact_lede" : {
"type" : "StructuredText",
"fieldset" : "Lede"
}
}
}
{
"Main" : {
"name" : {
"type" : "StructuredText",
"fieldset" : "Name",
"config" : {
"single" : "heading1"
}
}
}
}
{
"Main" : {
"title" : {
"type" : "StructuredText",
"fieldset" : "Title",
"config" : {
"single" : "heading1"
}
},
"amount" : {
"type" : "Number",
"config" : {
"label" : "Amount in %"
}
}
}
}
{
"Main" : {
"title" : {
"type" : "StructuredText",
"fieldset" : "Title",
"config" : {
"single" : "heading1"
}
},
"lede" : {
"type" : "StructuredText",
"fieldset" : "Lede",
"config" : {
"single" : "em,strong,hyperlink,paragraph"
}
},
"image" : {
"type" : "Image",
"fieldset" : "Image",
"config" : {
"thumbnails" : [ {
"name" : "regular",
"width" : 120.0,
"height" : 120.0
} ]
}
}
}
}
{
"As seen on homepage" : {
"title" : {
"type" : "StructuredText",
"fieldset" : "Title",
"config" : {
"single" : "heading1"
}
},
"subtitle" : {
"type" : "StructuredText",
"fieldset" : "Subtitle",
"config" : {
"single" : "heading2"
}
},
"image" : {
"type" : "Image",
"fieldset" : "Image",
"config" : {
"thumbnails" : [ {
"name" : "regular",
"width" : 320.0,
"height" : 210.0
} ]
}
},
"kind" : {
"type" : "Link",
"fieldset" : "Kind of work",
"config" : {
"select" : "document",
"masks" : [ "kind-of-work" ],
"placeholder" : "Select the kind of work"
}
}
},
"Details" : {
"carrousel" : {
"type" : "Group",
"fieldset" : "Carrousel",
"config" : {
"fields" : {
"image" : {
"type" : "Image",
"config" : {
"thumbnails" : [{
"name" : "regular",
"width" : 750,
"height" : 430
}]
}
}
}
}
},
"date" : {
"type" : "Date",
"config" : {
"label" : "Date"
}
},
"client" : {
"type" : "Text",
"config" : {
"label" : "Client"
}
},
"link" : {
"type" : "Link",
"fieldset" : "URL of the document this points to",
"config" : {
"select" : "web",
"placeholder" : "Input a URL"
}
},
"small_description" : {
"type" : "StructuredText",
"fieldset" : "Small description",
"config" : {
"single" : "paragraph,em,strong"
}
},
"description" : {
"type" : "StructuredText",
"fieldset" : "Description",
"config" : {
"minHeight" : 200
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment