From eeb57ad3a85bff220a762ede04ab7a8ab3a06b34 Mon Sep 17 00:00:00 2001 From: wildone Date: Wed, 13 Mar 2024 16:56:56 +1100 Subject: [PATCH] add teaser. --- .../components/content/teaser/.content.json | 10 +++++ .../components/content/teaser/teaser.html | 19 ++++++++ .../content/teaser/template/.content.json | 44 +++++++++++++++++++ 3 files changed, 73 insertions(+) create mode 100644 application/backend/src/main/resources/apps/typerefinery/components/content/teaser/.content.json create mode 100644 application/backend/src/main/resources/apps/typerefinery/components/content/teaser/teaser.html create mode 100644 application/backend/src/main/resources/apps/typerefinery/components/content/teaser/template/.content.json diff --git a/application/backend/src/main/resources/apps/typerefinery/components/content/teaser/.content.json b/application/backend/src/main/resources/apps/typerefinery/components/content/teaser/.content.json new file mode 100644 index 000000000..2f16b2136 --- /dev/null +++ b/application/backend/src/main/resources/apps/typerefinery/components/content/teaser/.content.json @@ -0,0 +1,10 @@ +{ + "title": "Teaser", + "group": "Typerefinery - Content", + "sling:resourceType": "ws:Component", + "isContainer": false, + "isLayout": false, + "description": "Used to create a teaser for a page.", + "sling:resourceSuperType": "typerefinery/components/layout/container" +} + diff --git a/application/backend/src/main/resources/apps/typerefinery/components/content/teaser/teaser.html b/application/backend/src/main/resources/apps/typerefinery/components/content/teaser/teaser.html new file mode 100644 index 000000000..f05dd9f7f --- /dev/null +++ b/application/backend/src/main/resources/apps/typerefinery/components/content/teaser/teaser.html @@ -0,0 +1,19 @@ + + + \ No newline at end of file diff --git a/application/backend/src/main/resources/apps/typerefinery/components/content/teaser/template/.content.json b/application/backend/src/main/resources/apps/typerefinery/components/content/teaser/template/.content.json new file mode 100644 index 000000000..a140c5e37 --- /dev/null +++ b/application/backend/src/main/resources/apps/typerefinery/components/content/teaser/template/.content.json @@ -0,0 +1,44 @@ +{ + "jcr:primaryType": "nt:unstructured", + "sling:resourceType": "typerefinery/components/layout/container", + "title": "Teaser - Oblique", + "classes": "oblique", + "image": { + "jcr:primaryType": "nt:unstructured", + "sling:resourceType": "typerefinery/components/content/image", + "classes": "image d-none d-md-block", + "title": "Image" + }, + "container": { + "jcr:primaryType": "nt:unstructured", + "sling:resourceType": "typerefinery/components/layout/container", + "title": "Container", + "classes": "d-flex align-items-center justify-content-center", + "text": { + "jcr:primaryType": "nt:unstructured", + "sling:resourceType": "typerefinery/components/content/text", + "title": "Text" + }, + "actions": { + "jcr:primaryType": "nt:unstructured", + "sling:resourceType": "typerefinery/components/layout/container", + "title": "Container", + "buton1": { + "jcr:primaryType": "nt:unstructured", + "sling:resourceType": "typerefinery/components/forms/fields/button", + "label": "Primary", + "navigateTo": "#", + "buttonStyle": "primary", + "buttonType": "navigate" + }, + "buton2": { + "jcr:primaryType": "nt:unstructured", + "sling:resourceType": "typerefinery/components/forms/fields/button", + "label": "Secondary", + "navigateTo": "#", + "buttonStyle": "secondary", + "buttonType": "navigate" + } + } + } +} \ No newline at end of file