Skip to content

Commit

Permalink
[#45] Adds Card Grid Block
Browse files Browse the repository at this point in the history
- Uses both image & icon cards
  • Loading branch information
joshuapease committed Sep 30, 2024
1 parent eba1676 commit 8fcd314
Show file tree
Hide file tree
Showing 12 changed files with 488 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
color: null
fieldLayouts:
20f64bfb-c1fa-4afa-9631-7660c7cdeb37:
tabs:
-
elementCondition: null
elements:
-
autocapitalize: true
autocomplete: false
autocorrect: true
class: null
dateAdded: '2024-09-30T23:24:00+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: 7a16feb6-d7c0-4a94-8bd4-07a2e30e67a7
userCondition: null
warning: null
width: 100
-
dateAdded: '2024-09-30T23:33:26+00:00'
elementCondition: null
fieldUid: 5e84b0b7-6851-47ed-962e-76498ac9476f # Card Grid
handle: null
includeInCards: false
instructions: null
label: null
providesThumbs: false
required: false
tip: null
type: craft\fieldlayoutelements\CustomField
uid: 34ece3df-7fa2-439f-985c-2cd74abfd1e3
userCondition: null
warning: null
width: 100
name: Content
uid: be2ae502-0ddb-4540-a73b-eecc45b4753a
userCondition: null
handle: cardGrid
hasTitleField: false
icon: grid
name: 'Card Grid'
showSlugField: false
showStatusField: true
slugTranslationKeyFormat: null
slugTranslationMethod: site
titleFormat: ''
titleTranslationKeyFormat: null
titleTranslationMethod: site
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
color: null
fieldLayouts:
57d6dbf5-4050-46e9-b1d8-2990c925c04c:
tabs:
-
elementCondition: null
elements:
-
dateAdded: '2024-09-30T23:33:06+00:00'
elementCondition: null
fieldUid: 0011a64a-91b6-4aa3-98e6-be048394a2cf # Icon
handle: null
includeInCards: false
instructions: null
label: null
providesThumbs: false
required: false
tip: null
type: craft\fieldlayoutelements\CustomField
uid: 93e23b5a-05ee-4ba1-9ae8-b4a7471b69e1
userCondition: null
warning: null
width: 100
-
dateAdded: '2024-09-30T23:33:06+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: 7a0ed038-606f-41eb-a3a3-c5783a9e4df4
userCondition: null
warning: null
width: 100
-
autocapitalize: true
autocomplete: false
autocorrect: true
class: null
dateAdded: '2024-09-30T23:29:31+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: 2a49c922-8c52-4df2-8069-e87e89e2f03e
userCondition: null
warning: null
width: 100
-
dateAdded: '2024-09-30T23:33:06+00:00'
elementCondition: null
fieldUid: a99edea2-f8ae-44e5-a12f-89cb9aa66738 # Description
handle: null
includeInCards: false
instructions: null
label: null
providesThumbs: false
required: false
tip: null
type: craft\fieldlayoutelements\CustomField
uid: e44a04d0-1ede-4985-9d10-8e2c13dfc7d9
userCondition: null
warning: null
width: 100
name: Content
uid: 3eca7200-b91a-4369-98b2-54b2d5970c79
userCondition: null
handle: iconCard
hasTitleField: true
icon: icons
name: 'Icon Card'
showSlugField: true
showStatusField: true
slugTranslationKeyFormat: null
slugTranslationMethod: site
titleFormat: ''
titleTranslationKeyFormat: null
titleTranslationMethod: site
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
color: null
fieldLayouts:
35c4a5cf-04f0-400e-a3bd-107187ab73ee:
tabs:
-
elementCondition: null
elements:
-
dateAdded: '2024-09-30T23:29:23+00:00'
elementCondition: null
fieldUid: 570fb481-ad97-46db-8bad-f7b0fd90e831 # Image
handle: null
includeInCards: true
instructions: null
label: null
providesThumbs: false
required: false
tip: null
type: craft\fieldlayoutelements\CustomField
uid: 137a7e8f-bd2a-46c9-972b-365f2ea8a1b7
userCondition: null
warning: null
width: 100
-
dateAdded: '2024-09-30T23:29:23+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: c76db590-6bba-4a59-9353-adbf9eeb9cf6
userCondition: null
warning: null
width: 100
-
autocapitalize: true
autocomplete: false
autocorrect: true
class: null
dateAdded: '2024-09-30T23:24:56+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: 860a8146-8741-437e-95e0-b4e2bf886d5f
userCondition: null
warning: null
width: 100
-
dateAdded: '2024-09-30T23:29:23+00:00'
elementCondition: null
fieldUid: a99edea2-f8ae-44e5-a12f-89cb9aa66738 # Description
handle: null
includeInCards: false
instructions: null
label: null
providesThumbs: false
required: false
tip: null
type: craft\fieldlayoutelements\CustomField
uid: 14a7db31-c0d3-47d5-a03a-24b0bba82130
userCondition: null
warning: null
width: 100
name: Content
uid: 2d299e0f-b490-4172-874c-983cf1b2cd4f
userCondition: null
handle: imageCard
hasTitleField: true
icon: image-polaroid
name: 'Image Card'
showSlugField: true
showStatusField: true
slugTranslationKeyFormat: null
slugTranslationMethod: site
titleFormat: ''
titleTranslationKeyFormat: null
titleTranslationMethod: site
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
columnSuffix: null
handle: cardGrid
instructions: null
name: 'Card Grid'
searchable: false
settings:
createButtonLabel: 'New card'
entryTypes:
- 7d418368-91eb-4c64-8f5b-94c62cd62359 # Image Card
- 3f1dc0c5-f091-469a-858a-4cbd3596bab7 # Icon Card
includeTableView: false
maxEntries: null
minEntries: null
pageSize: 50
propagationKeyFormat: null
propagationMethod: all
showCardsInGrid: true
viewMode: cards
translationKeyFormat: null
translationMethod: site
type: craft\fields\Matrix
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
columnSuffix: null
handle: description
instructions: null
name: Description
searchable: false
settings:
byteLimit: null
charLimit: null
code: false
initialRows: 2
multiline: true
placeholder: null
uiMode: normal
translationKeyFormat: null
translationMethod: none
type: craft\fields\PlainText
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
columnSuffix: null
handle: icon
instructions: null
name: Icon
searchable: false
settings:
options:
-
__assoc__:
-
- label
- None
-
- value
- ''
-
- default
- '1'
-
__assoc__:
-
- label
- 'Arrow Left'
-
- value
- arrow-left
-
- default
- ''
-
__assoc__:
-
- label
- 'Arrow Right'
-
- value
- arrowRight
-
- default
- ''
-
__assoc__:
-
- label
- Clock
-
- value
- clock
-
- default
- ''
-
__assoc__:
-
- label
- Close
-
- value
- close
-
- default
- ''
translationKeyFormat: null
translationMethod: none
type: craft\fields\Dropdown
Loading

0 comments on commit 8fcd314

Please sign in to comment.