{% assign course = page.course %} {% style %} .banner-course { {% include 'section_style_background' %} {% include 'section_style_content_alignment' %} .section__heading { @include screen-md-min { font-size: {{ section.settings.heading_size | append: 'rem' }}; } font-size: ( {{ section.settings.heading_size | append: 'rem' }} / 1.25 ); } } {% endstyle %} {% schema %} { "label":"Banner (course)", "description":"", "settings":[ { "type":"checkbox", "id":"hide_default_buttons", "label":"Hide default buttons (product pages only)", "default":false }, { "label":"Headings", "settings":[ { "type":"checkbox", "id":"show_default_banner_text", "label":"Automatically add course name and description", "default":true }, { "type":"text", "id":"heading", "label":"Heading", "default":"Banner" }, { "type":"text", "id":"subheading", "label":"Subheading", "default":"Your banner contains a hero image with text overlay. You can also add call to action buttons." }, { "type":"color", "id":"text_color", "label":"Text color override", "default":"#ffffff" }, { "type":"number", "min":1, "max":9, "id":"heading_size", "default":3, "label":"Size", "description":"" } ] }, { "label":"Hero image", "settings":[ { "type":"image", "id":"background_image", "default":"https://cdn.thinkific.com/13/20180205/b9f6367337c12ad2b139a95537cc561f.png", "label":"Image", "description":"Recommended: 1440px x 720px (1MB)" }, { "type":"image_origin", "id":"background_image_origin", "default": "center center", "label":"Image focal point" }, { "type":"color", "id":"overlay_color", "label":"Overlay color", "default":"#000000" }, { "type":"number", "id":"overlay_opacity", "label":"Overlay opacity", "default":30, "min":0, "max":100 } ] }, { "label":"Size & alignment", "settings":[ { "type":"select", "id":"section_height_preset", "label":"Height", "description":"", "default":"large", "options":[ { "value":"small", "label":"Small" }, { "value":"medium", "label":"Medium" }, { "value":"large", "label":"Large" }, { "value":"xlarge", "label":"Extra large" } ] }, { "type":"radio", "id":"content_alignment", "label":"Alignment", "default":"left", "options":[ { "value":"left", "label":"Left" }, { "value":"center", "label":"Center" }, { "value":"right", "label":"Right" } ] } ] } ], "blocks":{ "label":"Add button", "limit":2, "types":[ { "type":"banner_button", "label":"Button", "settings":[ { "type":"text", "id":"button_text", "label":"Text", "default":"Call to action" }, { "type":"page_picker", "id":"button_link", "label":"Link" }, { "type":"radio", "id":"button_type", "label":"Type", "description":"", "default":"primary", "options":[ { "value":"primary", "label":"Primary" }, { "value":"secondary", "label":"Secondary" } ] } ] } ], "defaults":[] } } {% endschema %}