-
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
6dd0030
commit 13ffaad
Showing
9 changed files
with
138 additions
and
7 deletions.
There are no files selected for viewing
83 changes: 83 additions & 0 deletions
83
config/project/entryTypes/pageHero--27f19bae-64f8-47b8-9fc9-7552e11e2656.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,83 @@ | ||
color: null | ||
fieldLayouts: | ||
4fea0032-240b-4dbe-b1b6-a467326f5323: | ||
tabs: | ||
- | ||
elementCondition: null | ||
elements: | ||
- | ||
autocapitalize: true | ||
autocomplete: false | ||
autocorrect: true | ||
class: null | ||
dateAdded: '2024-10-01T13:27:07+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: 77b77d44-0b65-428f-ba8f-f078760a3ff8 | ||
userCondition: null | ||
warning: null | ||
width: 100 | ||
- | ||
dateAdded: '2024-10-01T13:31:02+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: dcf0db81-9675-40bc-ae62-5f69274da598 | ||
userCondition: null | ||
warning: null | ||
width: 100 | ||
- | ||
dateAdded: '2024-10-01T13:31:02+00:00' | ||
elementCondition: null | ||
fieldUid: 570fb481-ad97-46db-8bad-f7b0fd90e831 # Image | ||
handle: null | ||
includeInCards: false | ||
instructions: null | ||
label: null | ||
providesThumbs: false | ||
required: false | ||
tip: null | ||
type: craft\fieldlayoutelements\CustomField | ||
uid: 252b484d-2307-4e74-b167-a3c63074ae10 | ||
userCondition: null | ||
warning: null | ||
width: 100 | ||
name: Content | ||
uid: 232fbbf7-98ae-45f0-992d-e4597db12aad | ||
userCondition: null | ||
handle: pageHero | ||
hasTitleField: true | ||
icon: subtitles | ||
name: 'Page Hero' | ||
showSlugField: false | ||
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
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,8 @@ | ||
{# @var \craft\elements\Entry|null block #} | ||
{% set block = block ?? null %} | ||
|
||
{{ include('_components/page-hero.twig', { | ||
image: block.image.eagerly().one(), | ||
title: block.title, | ||
description: block.richTextSimple, | ||
}) }} |
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,6 +1,6 @@ | ||
{# @var \craft\elements\Entry block #} | ||
{% set block = block ?? null %} | ||
|
||
<div class="max-w-content px-16 mx-auto"> | ||
<div class="max-w-content px-16 mx-auto sm:px-32"> | ||
{{ block.richText }} | ||
</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
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,32 @@ | ||
{# @var string|null title #} | ||
{% set title = title ?? null %} | ||
|
||
{# @var string|null description #} | ||
{% set description = description ?? null %} | ||
|
||
{# @var \craft\elements\Asset|null image #} | ||
{% set image = image ?? null %} | ||
|
||
<div class="bg-neutral-100 py-48"> | ||
<div class="max-w-content px-16 mx-auto grid items-center gap-24 sm:grid-cols-2 sm:px-32 lg:gap-48 lg:grid-cols-5"> | ||
<div class="flex flex-col gap-24 max-w-[640px] lg:col-span-3"> | ||
{% if title %} | ||
<h1 class="text-xl font-semibold">{{ title }}</h1> | ||
{% endif %} | ||
|
||
{% if description %} | ||
<div>{{ description }}</div> | ||
{% endif %} | ||
</div> | ||
|
||
{{ image ? include('_components/image.twig', { | ||
class: 'lg:col-span-2', | ||
image, | ||
ratio: 4/3, | ||
sizes: { | ||
default: '100vw', | ||
sm: '50vw', | ||
} | ||
}) }} | ||
</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
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,9 @@ | ||
{% extends 'viget-parts-kit/layout.twig' %} | ||
|
||
{% block main %} | ||
{{ include('_components/page-hero.twig', { | ||
image: craft.assets.one(), | ||
title: 'Lorem ipsum dolor sit amet', | ||
description: 'Cillum dolor nisi et sunt in in et ullamco eiusmod duis aute et fugiat excepteur. Sit irure consectetur anim do aliqua excepteur amet nulla magna enim proident incididunt ipsum.', | ||
}) }} | ||
{% endblock %} |