-
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.
- Adds TW class for default site max width
- Loading branch information
1 parent
21d87a6
commit 6e53cc4
Showing
9 changed files
with
150 additions
and
3 deletions.
There are no files selected for viewing
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
67 changes: 67 additions & 0 deletions
67
config/project/entryTypes/richText--896b8f2a-ed0c-42c9-b5fd-ba8668fc6784.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,67 @@ | ||
color: null | ||
fieldLayouts: | ||
e33f8044-cf16-4605-bc3d-09679348a498: | ||
tabs: | ||
- | ||
elementCondition: null | ||
elements: | ||
- | ||
autocapitalize: true | ||
autocomplete: false | ||
autocorrect: true | ||
class: null | ||
dateAdded: '2024-09-30T22:58:38+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: 205c8050-85f3-478e-b411-c7e6073f9b3e | ||
userCondition: null | ||
warning: null | ||
width: 100 | ||
- | ||
dateAdded: '2024-09-30T23:04:32+00:00' | ||
elementCondition: null | ||
fieldUid: cd489d3c-f914-475c-a270-ab926e4e7485 # Rich Text | ||
handle: null | ||
includeInCards: false | ||
instructions: null | ||
label: null | ||
providesThumbs: false | ||
required: false | ||
tip: null | ||
type: craft\fieldlayoutelements\CustomField | ||
uid: 0fc08c7a-1dfa-40d0-b234-5540eae14b50 | ||
userCondition: null | ||
warning: null | ||
width: 100 | ||
name: Content | ||
uid: b1d8412f-75ff-4e81-896b-ef3b9e203f18 | ||
userCondition: null | ||
handle: richText | ||
hasTitleField: false | ||
icon: font-case | ||
name: 'Rich Text' | ||
showSlugField: false | ||
showStatusField: true | ||
slugTranslationKeyFormat: null | ||
slugTranslationMethod: site | ||
titleFormat: '' | ||
titleTranslationKeyFormat: null | ||
titleTranslationMethod: site |
20 changes: 20 additions & 0 deletions
20
config/project/fields/pageBlocks--7bd21dd3-6b12-4163-8432-030ea6a3f8d3.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,20 @@ | ||
columnSuffix: null | ||
handle: pageBlocks | ||
instructions: null | ||
name: 'Page Blocks' | ||
searchable: false | ||
settings: | ||
createButtonLabel: 'New Block' | ||
entryTypes: | ||
- 896b8f2a-ed0c-42c9-b5fd-ba8668fc6784 # Rich Text | ||
includeTableView: false | ||
maxEntries: null | ||
minEntries: null | ||
pageSize: null | ||
propagationKeyFormat: null | ||
propagationMethod: all | ||
showCardsInGrid: false | ||
viewMode: blocks | ||
translationKeyFormat: null | ||
translationMethod: site | ||
type: craft\fields\Matrix |
21 changes: 21 additions & 0 deletions
21
config/project/fields/richText--cd489d3c-f914-475c-a270-ab926e4e7485.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: richText | ||
instructions: null | ||
name: 'Rich Text' | ||
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
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,5 @@ | ||
{% set block = block ?? null %} | ||
|
||
<div class="max-w-content mx-auto"> | ||
{{ block.richText }} | ||
</div> |
Empty file.
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 |
---|---|---|
@@ -1,5 +1,16 @@ | ||
{% extends '_layouts/base' %} | ||
{% extends '_layouts/base.twig' %} | ||
|
||
{% block content %} | ||
<h1 class="text-xl">Home</h1> | ||
|
||
{{ include("_blocks/index.twig", { | ||
blocks: entry.pageBlocks, | ||
}) }} | ||
|
||
{% for block in entry.pageBlocks %} | ||
{{ include("_blocks/_#{block.type.handle}.twig", { | ||
block, | ||
}) }} | ||
{% endfor %} | ||
|
||
{% endblock %} |