-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreadme.liquid
139 lines (133 loc) · 4.09 KB
/
readme.liquid
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
{ { 'section-image-banner.css' | asset_url | stylesheet_tag } }
<div class = "video-banner" >
</div>
{ % schema % }
{
"name": "Video Background Bannerx",
"tag": "section",
"class": "video-hero",
"settings": [{
"type": "url",
"id": "video_url",
"label": "Enter the video url here"
},
{
"type": "image_picker",
"id": "poster",
"label": "Add fallback background image in case video doesn't load"
}
],
"blocks": [{
"type": "heading",
"name": "Heading",
"limit": 1,
"settings": [{
"type": "text",
"id": "heading",
"default": "Video banner",
"label": "Video Banner"
},
{
"type": "select",
"id": "heading_size",
"options": [{
"value": "h2",
"label": "small"
},
{
"value": "h1",
"label": "medium"
}
],
"default": "h1",
"label": "heading_size"
}
]
},
{
"type": "text",
"name": "Text",
"limit": 1,
"settings": [{
"type": "text",
"id": "text",
"default": "Give customers details about the banner image(s) or content on the template.",
"label": "text label"
},
{
"type": "select",
"id": "text_style",
"options": [{
"value": "body",
"label": "Body"
},
{
"value": "subtitle",
"label": "Subtitle"
},
{
"value": "caption-with-letter-spacing",
"label": "Upperclass"
}
],
"default": "body",
"label": "settings"
}
]
},
{
"type": "buttons",
"name": "Buttons",
"limit": 1,
"settings": [{
"type": "text",
"id": "button_label_1",
"default": "Button label",
"label": "label_1.label",
"info": "abel_1.info"
},
{
"type": "url",
"id": "button_link_1",
"label": "link_1.label"
},
{
"type": "checkbox",
"id": "button_style_secondary_1",
"default": false,
"label": "secondary_1.label"
},
{
"type": "text",
"id": "button_label_2",
"default": "Button label",
"label": "t:sections.image-banner.blocks.buttons.settings.button_label_2.label",
"info": "button_label_2.info"
},
{
"type": "url",
"id": "button_link_2",
"label": "button_link_2.label"
},
{
"type": "checkbox",
"id": "button_style_secondary_2",
"default": false,
"label": "button_style_secondary_2.label"
}
]
}
],
"presets": [{
"name": "Video Background Banner"
}]
} {
% endschema %
}
<style >
.media > video {
object - fit: cover;
object - position: center center;
transition: opacity .4 s cubic - bezier(.25, .46, .45, .94);
}
</style>