From 3df3ba4ebcdf2567e461d1639dd6a802c367b625 Mon Sep 17 00:00:00 2001 From: Julian Krauser Date: Sun, 3 Nov 2024 13:13:36 +0100 Subject: [PATCH] content text and dynamic zone components --- assets/app.css | 4 ++ components/CollectionDetail.vue | 47 +++++++++++++++++-- components/ContentBuilder.vue | 3 +- components/dynamicZone/ColumnImageText.vue | 13 ++++- components/dynamicZone/DualColumnText.vue | 5 +- components/dynamicZone/FullImage.vue | 9 +++- components/dynamicZone/FullText.vue | 2 +- components/dynamicZone/Gallery.vue | 12 ++++- components/field/Content.vue | 35 ++++++++++++++ components/field/Text.vue | 21 +++++++++ components/field/Type.vue | 15 ++++++ components/shared/Hero.vue | 1 - layouts/landing.vue | 1 - types/collection/article.ts | 5 +- types/collection/baseCollection.ts | 7 +++ types/collection/event.ts | 3 +- types/collection/lookup.ts | 6 +-- types/collection/operation.ts | 2 +- types/component/dynamicZoneColumnImageText.ts | 3 +- types/component/dynamicZoneDualColumnText.ts | 5 +- types/component/dynamicZoneFullText.ts | 3 +- types/field/content.ts | 24 ++++++++++ 22 files changed, 202 insertions(+), 24 deletions(-) create mode 100644 components/field/Content.vue create mode 100644 components/field/Text.vue create mode 100644 components/field/Type.vue create mode 100644 types/field/content.ts diff --git a/assets/app.css b/assets/app.css index 73ade63..ee5c876 100644 --- a/assets/app.css +++ b/assets/app.css @@ -42,3 +42,7 @@ a[primary-sublink].active { [darkgray] { @apply bg-darkgray text-white; } + +h1 { + @apply text-xl; +} diff --git a/components/CollectionDetail.vue b/components/CollectionDetail.vue index a609ccf..84e8760 100644 --- a/components/CollectionDetail.vue +++ b/components/CollectionDetail.vue @@ -1,17 +1,56 @@ diff --git a/components/field/Text.vue b/components/field/Text.vue new file mode 100644 index 0000000..de5bb3c --- /dev/null +++ b/components/field/Text.vue @@ -0,0 +1,21 @@ + + + diff --git a/components/field/Type.vue b/components/field/Type.vue new file mode 100644 index 0000000..d4f011b --- /dev/null +++ b/components/field/Type.vue @@ -0,0 +1,15 @@ + + + diff --git a/components/shared/Hero.vue b/components/shared/Hero.vue index 1920ede..68fd67b 100644 --- a/components/shared/Hero.vue +++ b/components/shared/Hero.vue @@ -1,7 +1,6 @@