Skip to content

Commit eeb57ad

Browse files
committed
add teaser.
1 parent 940b011 commit eeb57ad

File tree

3 files changed

+73
-0
lines changed

3 files changed

+73
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"title": "Teaser",
3+
"group": "Typerefinery - Content",
4+
"sling:resourceType": "ws:Component",
5+
"isContainer": false,
6+
"isLayout": false,
7+
"description": "Used to create a teaser for a page.",
8+
"sling:resourceSuperType": "typerefinery/components/layout/container"
9+
}
10+
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!--/*
2+
Copyright (C) 2023 Typerefinery.io
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/-->
16+
<sly data-sly-use.model="${'ai.typerefinery.websight.models.components.layout.Container' @ decorationTagName='div'}"
17+
data-sly-use.template="./variant.html"
18+
data-sly-call="${template.variant @ model=model}">
19+
</sly>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"jcr:primaryType": "nt:unstructured",
3+
"sling:resourceType": "typerefinery/components/layout/container",
4+
"title": "Teaser - Oblique",
5+
"classes": "oblique",
6+
"image": {
7+
"jcr:primaryType": "nt:unstructured",
8+
"sling:resourceType": "typerefinery/components/content/image",
9+
"classes": "image d-none d-md-block",
10+
"title": "Image"
11+
},
12+
"container": {
13+
"jcr:primaryType": "nt:unstructured",
14+
"sling:resourceType": "typerefinery/components/layout/container",
15+
"title": "Container",
16+
"classes": "d-flex align-items-center justify-content-center",
17+
"text": {
18+
"jcr:primaryType": "nt:unstructured",
19+
"sling:resourceType": "typerefinery/components/content/text",
20+
"title": "Text"
21+
},
22+
"actions": {
23+
"jcr:primaryType": "nt:unstructured",
24+
"sling:resourceType": "typerefinery/components/layout/container",
25+
"title": "Container",
26+
"buton1": {
27+
"jcr:primaryType": "nt:unstructured",
28+
"sling:resourceType": "typerefinery/components/forms/fields/button",
29+
"label": "Primary",
30+
"navigateTo": "#",
31+
"buttonStyle": "primary",
32+
"buttonType": "navigate"
33+
},
34+
"buton2": {
35+
"jcr:primaryType": "nt:unstructured",
36+
"sling:resourceType": "typerefinery/components/forms/fields/button",
37+
"label": "Secondary",
38+
"navigateTo": "#",
39+
"buttonStyle": "secondary",
40+
"buttonType": "navigate"
41+
}
42+
}
43+
}
44+
}

0 commit comments

Comments
 (0)