refresh theme-one starter blocks and layout
Redesign the master layout and content blocks with responsive styling, accessible navigation, and configurable CTA and quote sections. Add about-me, embedded-code, and FAQ blocks, and update the generated theme assets. Replace Alpine-based locale handling with vanilla JavaScript for locale flags and gallery lightboxes, and remove Alpine and DaisyUI dependencies.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
return [
|
||||
'title' => 'Text + Image',
|
||||
'category' => 'General',
|
||||
'category' => 'Content',
|
||||
'icon' => 'ph ph-square-half',
|
||||
'settings' => [
|
||||
"order" => [
|
||||
@@ -23,18 +23,18 @@ return [
|
||||
"width" => [
|
||||
"type" => "select",
|
||||
"label" => "Image Width",
|
||||
"value" => "md:w-6/12",
|
||||
"value" => "md:w-1/2",
|
||||
"options" => [
|
||||
[
|
||||
"id" => "md:w-4/12",
|
||||
"id" => "md:w-1/3",
|
||||
"name" => "1/3"
|
||||
],
|
||||
[
|
||||
"id" => "md:w-6/12",
|
||||
"id" => "md:w-1/2",
|
||||
"name" => "1/2"
|
||||
],
|
||||
[
|
||||
"id" => "md:w-full",
|
||||
"id" => "md:w-2/3",
|
||||
"name" => "2/3"
|
||||
],
|
||||
]
|
||||
@@ -43,7 +43,7 @@ return [
|
||||
'label'=> 'Headline',
|
||||
'type' => 'text',
|
||||
'placeholder' =>'Headline',
|
||||
'value' => 'Lorem Ipsum dolor'
|
||||
'value' => 'A flexible section for your story'
|
||||
],
|
||||
]
|
||||
];
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
<section class="">
|
||||
<div class="container container-md mx-auto p-4 flex flex-row gap-4 flex-col-reverse <?= phpb_e($block->setting('order')) ?>">
|
||||
<div class="md:w-6/12 grow">
|
||||
<section class="py-12 sm:py-16">
|
||||
<div class="mx-auto flex max-w-6xl flex-col gap-8 px-4 sm:px-6 lg:px-8 md:flex-row <?= $block->setting('order') ?>">
|
||||
<div class="min-w-0 flex-1">
|
||||
<?php if (strlen($block->setting('headline')) > 0) : ?>
|
||||
<div class=" text-2xl">
|
||||
<?= phpb_e($block->setting('headline')) ?>
|
||||
</div>
|
||||
<h2 class="mb-4 text-3xl font-semibold tracking-tight text-slate-900">
|
||||
<?= $block->setting('headline') ?>
|
||||
</h2>
|
||||
<?php endif; ?>
|
||||
[block slug="paragraph"]
|
||||
<br>
|
||||
<br>
|
||||
[block slug="button"]
|
||||
<div class="space-y-5">
|
||||
[block slug="paragraph"]
|
||||
[block slug="button"]
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?= phpb_e($block->setting('width')) ?>">
|
||||
<div class="w-full <?= $block->setting('width') ?>">
|
||||
[block slug="image"]
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user