-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7993662
commit 9e9eff5
Showing
7 changed files
with
202 additions
and
1 deletion.
There are no files selected for viewing
121 changes: 121 additions & 0 deletions
121
config/project/entryTypes/callToAction--534ccdd8-7abd-4300-a102-71885b21c126.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
color: null | ||
fieldLayouts: | ||
1c969fb9-3597-4082-8e64-34c1c9d9a30e: | ||
tabs: | ||
- | ||
elementCondition: null | ||
elements: | ||
- | ||
autocapitalize: true | ||
autocomplete: false | ||
autocorrect: true | ||
class: null | ||
dateAdded: '2024-10-01T00:05:01+00:00' | ||
disabled: false | ||
elementCondition: null | ||
id: null | ||
includeInCards: false | ||
inputType: null | ||
instructions: null | ||
label: null | ||
max: null | ||
min: null | ||
name: null | ||
orientation: null | ||
placeholder: null | ||
providesThumbs: false | ||
readonly: false | ||
requirable: false | ||
size: null | ||
step: null | ||
tip: null | ||
title: null | ||
type: craft\fieldlayoutelements\entries\EntryTitleField | ||
uid: eee9050d-ab79-46d2-87ee-878855f72e52 | ||
userCondition: null | ||
warning: null | ||
width: 100 | ||
- | ||
dateAdded: '2024-10-01T13:11:53+00:00' | ||
elementCondition: null | ||
fieldUid: c52a9170-652b-4d92-a226-69894b1822ed # Rich Text: Simple | ||
handle: null | ||
includeInCards: false | ||
instructions: null | ||
label: Description | ||
providesThumbs: false | ||
required: false | ||
tip: null | ||
type: craft\fieldlayoutelements\CustomField | ||
uid: ba1291b5-b2a2-4ca5-b843-6373de152e83 | ||
userCondition: null | ||
warning: null | ||
width: 100 | ||
- | ||
dateAdded: '2024-10-01T00:12:31+00:00' | ||
elementCondition: null | ||
type: craft\fieldlayoutelements\HorizontalRule | ||
uid: 484dde25-62c7-4238-aea8-6b652747f0e5 | ||
userCondition: null | ||
- | ||
dateAdded: '2024-10-01T00:08:26+00:00' | ||
elementCondition: null | ||
fieldUid: 69fe4c18-21c9-4a3d-8fce-9988d3f741e4 # Link | ||
handle: null | ||
includeInCards: false | ||
instructions: null | ||
label: null | ||
providesThumbs: false | ||
required: false | ||
tip: null | ||
type: craft\fieldlayoutelements\CustomField | ||
uid: 773dfd43-62a1-4bb4-91fa-9856f06fc1a2 | ||
userCondition: null | ||
warning: null | ||
width: 25 | ||
- | ||
dateAdded: '2024-10-01T00:12:31+00:00' | ||
elementCondition: null | ||
fieldUid: 167784f4-27c4-45bc-bcf4-eee051e54bd6 # Open Link In New Window | ||
handle: null | ||
includeInCards: false | ||
instructions: null | ||
label: null | ||
providesThumbs: false | ||
required: false | ||
tip: null | ||
type: craft\fieldlayoutelements\CustomField | ||
uid: f7e9ad77-240d-4431-8815-e37e8c5edd16 | ||
userCondition: null | ||
warning: null | ||
width: 25 | ||
- | ||
dateAdded: '2024-10-01T00:12:31+00:00' | ||
elementCondition: null | ||
fieldUid: b80d8ac7-5039-4535-afa5-82ec086e2f61 # Link Text | ||
handle: null | ||
includeInCards: false | ||
instructions: null | ||
label: null | ||
providesThumbs: false | ||
required: false | ||
tip: null | ||
type: craft\fieldlayoutelements\CustomField | ||
uid: 72e64fac-8f30-4d15-970d-6ae71bfafa56 | ||
userCondition: null | ||
warning: null | ||
width: 50 | ||
name: Content | ||
uid: 8f12bd58-cd2c-4be0-9371-9e66d9828ff5 | ||
userCondition: null | ||
handle: callToAction | ||
hasTitleField: true | ||
icon: diagram-next | ||
name: 'Call To Action' | ||
showSlugField: true | ||
showStatusField: true | ||
slugTranslationKeyFormat: null | ||
slugTranslationMethod: site | ||
titleFormat: '' | ||
titleTranslationKeyFormat: null | ||
titleTranslationMethod: site |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
config/project/fields/richTextSimple--c52a9170-652b-4d92-a226-69894b1822ed.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
columnSuffix: null | ||
handle: richTextSimple | ||
instructions: null | ||
name: 'Rich Text: Simple' | ||
searchable: false | ||
settings: | ||
availableTransforms: '' | ||
availableVolumes: '*' | ||
ckeConfig: b7e66782-af96-4012-9e17-914134073ced # Simple | ||
createButtonLabel: null | ||
defaultTransform: null | ||
enableSourceEditingForNonAdmins: false | ||
purifierConfig: null | ||
purifyHtml: true | ||
showUnpermittedFiles: false | ||
showUnpermittedVolumes: false | ||
showWordCount: false | ||
wordLimit: null | ||
translationKeyFormat: null | ||
translationMethod: none | ||
type: craft\ckeditor\Field |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{# @var \craft\elements\Entry|null block #} | ||
{% set block = block ?? null %} | ||
|
||
{{ include('_components/call-to-action.twig', { | ||
title: block.title, | ||
text: block.richTextSimple, | ||
href: block.href, | ||
linkText: block.linkText, | ||
newWindow: block.newWindow, | ||
}) }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{# @var string|null title #} | ||
{% set title = title ?? null %} | ||
|
||
{# @var string|null text #} | ||
{% set text = text ?? null %} | ||
|
||
{# @var string|null href #} | ||
{% set href = href ?? null %} | ||
|
||
{# @var string|null linkText #} | ||
{% set linkText = linkText ?? null %} | ||
|
||
{# @var boolean|null newWindow #} | ||
{% set newWindow = newWindow ?? null %} | ||
|
||
<div class="bg-neutral-100 py-48"> | ||
<div class="flex flex-col items-center gap-24 max-w-content px-16 mx-auto "> | ||
{% if title %} | ||
<h2 class="text-xl">{{ title }}</h2> | ||
{% endif %} | ||
|
||
{% if text %} | ||
<div class="max-w-[640px]">{{ text }}</div> | ||
{% endif %} | ||
|
||
{% if href and linkText %} | ||
{{ include('_components/button.twig', { | ||
href, | ||
newWindow, | ||
text: linkText, | ||
newWindow, | ||
}) }} | ||
{% endif %} | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{% extends 'viget-parts-kit/layout.twig' %} | ||
|
||
{% block main %} | ||
{{ include('_components/call-to-action.twig', { | ||
title: 'Lorem ipsum dolor sit amet', | ||
text: 'Lorem ipsum dolor sit amet, consectetur adipiscing e lit. Nulla facilisi. Nulla facilisi. Nulla facilisi.', | ||
href: '#TEST', | ||
linkText: 'Button', | ||
newWindow: true, | ||
}) }} | ||
{% endblock %} |