From 391d33220166a3057e3ca912e4c4e81c512a842d Mon Sep 17 00:00:00 2001 From: kaaps Date: Thu, 21 Mar 2024 11:26:49 +0000 Subject: [PATCH 1/6] feat: contact blocks --- components.198185.json | 139 ++++++++++++++++++- src/components/blocks/contact-us-form.svelte | 27 ++++ src/components/blocks/dynamic-block.svelte | 2 + src/components/blocks/office-cards.svelte | 5 +- src/components/pages/contact.svelte | 27 +--- src/components/pages/get-a-quote/form.svelte | 14 +- src/components/pages/page.svelte | 2 +- src/types/bloks.d.ts | 45 ++++++ 8 files changed, 228 insertions(+), 33 deletions(-) create mode 100644 src/components/blocks/contact-us-form.svelte diff --git a/components.198185.json b/components.198185.json index d44af10d..c3b9efa4 100644 --- a/components.198185.json +++ b/components.198185.json @@ -583,6 +583,46 @@ "content_type_asset_preview": null, "component_group_name": "Configuration" }, + { + "name": "canvas", + "display_name": null, + "created_at": "2024-03-20T15:34:38.682Z", + "updated_at": "2024-03-20T15:37:55.972Z", + "id": 5531250, + "schema": { + "page_title": { + "type": "text" + }, + "canvas_width": { + "type": "number", + "default_value": "3000" + }, + "canvas_height": { + "type": "number", + "description": "", + "default_value": "3000" + }, + "canvas_items": { + "type": "bloks", + "restrict_type": "", + "restrict_components": true, + "component_whitelist": ["canvas-group"] + } + }, + "image": "//a.storyblok.com/f/198185/x/5b24d0a195/canvas.png", + "preview_field": null, + "is_root": false, + "preview_tmpl": null, + "is_nestable": true, + "all_presets": [], + "preset_id": null, + "real_name": "canvas", + "component_group_uuid": "c9011224-9690-43bd-b686-e8f60ef6c7f6", + "color": null, + "icon": null, + "content_type_asset_preview": null, + "component_group_name": "Blocks" + }, { "name": "canvas-checklist", "display_name": null, @@ -1614,6 +1654,37 @@ "content_type_asset_preview": null, "component_group_name": "Pages" }, + { + "name": "contact-us-form", + "display_name": null, + "created_at": "2024-03-21T10:44:36.930Z", + "updated_at": "2024-03-21T10:45:35.470Z", + "id": 5535790, + "schema": { + "title1": { + "type": "text" + }, + "title2": { + "type": "text" + }, + "form_support_text": { + "type": "textarea" + } + }, + "image": "//a.storyblok.com/f/198185/x/bea7eaf558/screenshot-2024-03-21-at-10-20-58.png", + "preview_field": null, + "is_root": false, + "preview_tmpl": null, + "is_nestable": true, + "all_presets": [], + "preset_id": null, + "real_name": "contact-us-form", + "component_group_uuid": "c9011224-9690-43bd-b686-e8f60ef6c7f6", + "color": null, + "icon": null, + "content_type_asset_preview": null, + "component_group_name": "Blocks" + }, { "name": "core-values", "display_name": null, @@ -1835,6 +1906,37 @@ "content_type_asset_preview": null, "component_group_name": "Single" }, + { + "name": "draw-segg", + "display_name": null, + "created_at": "2024-03-20T15:31:34.802Z", + "updated_at": "2024-03-20T15:41:30.812Z", + "id": 5531244, + "schema": { + "title": { + "type": "text" + }, + "subtitle": { + "type": "text" + }, + "description": { + "type": "textarea" + } + }, + "image": "//a.storyblok.com/f/198185/x/44d4b6c711/draw-segg.png", + "preview_field": null, + "is_root": false, + "preview_tmpl": null, + "is_nestable": true, + "all_presets": [], + "preset_id": null, + "real_name": "draw-segg", + "component_group_uuid": "c9011224-9690-43bd-b686-e8f60ef6c7f6", + "color": null, + "icon": null, + "content_type_asset_preview": null, + "component_group_name": "Blocks" + }, { "name": "estimation", "display_name": null, @@ -1948,7 +2050,7 @@ "name": "form-budget-range", "display_name": null, "created_at": "2024-03-19T14:26:52.308Z", - "updated_at": "2024-03-19T14:29:21.429Z", + "updated_at": "2024-03-21T11:16:42.725Z", "id": 5523274, "schema": { "title": { @@ -1956,6 +2058,9 @@ }, "subtitle": { "type": "text" + }, + "budget_range": { + "type": "textarea" } }, "image": "//a.storyblok.com/f/198185/x/74ab5628e2/form_budget_range_block.png", @@ -2984,6 +3089,38 @@ "content_type_asset_preview": null, "component_group_name": "Blocks" }, + { + "name": "open-positions", + "display_name": null, + "created_at": "2024-03-20T15:04:18.340Z", + "updated_at": "2024-03-20T15:30:04.055Z", + "id": 5531010, + "schema": { + "open_positions_title": { + "type": "text", + "key": "open_positions_title", + "pos": 3 + }, + "open_positions_description": { + "type": "text", + "key": "open_positions_description", + "pos": 4 + } + }, + "image": "//a.storyblok.com/f/198185/x/bc4cff5609/open_positions_block.png", + "preview_field": null, + "is_root": false, + "preview_tmpl": null, + "is_nestable": true, + "all_presets": [], + "preset_id": null, + "real_name": "open-positions", + "component_group_uuid": "c9011224-9690-43bd-b686-e8f60ef6c7f6", + "color": null, + "icon": null, + "content_type_asset_preview": null, + "component_group_name": "Blocks" + }, { "name": "other-entry-block", "display_name": "other-entry-block", diff --git a/src/components/blocks/contact-us-form.svelte b/src/components/blocks/contact-us-form.svelte new file mode 100644 index 00000000..c48ad1d9 --- /dev/null +++ b/src/components/blocks/contact-us-form.svelte @@ -0,0 +1,27 @@ + + +
+
+

+ {block.title1} +

+ {block.title2} +
+ +
+ +
+ +
diff --git a/src/components/blocks/dynamic-block.svelte b/src/components/blocks/dynamic-block.svelte index 7d2dce5d..86d5f494 100644 --- a/src/components/blocks/dynamic-block.svelte +++ b/src/components/blocks/dynamic-block.svelte @@ -9,6 +9,7 @@ 'blog-list': BlogList, image: Image, 'careers-list': CareersList, + 'contact-us-form': ContactUsForm, comparison: Comparison, 'core-values': CoreValues, deliverables: Deliverables, @@ -83,6 +84,7 @@ import Timezone from './timezone.svelte'; import FormBudgetRange from './form-budget-range.svelte'; import List from './list.svelte'; + import ContactUsForm from './contact-us-form.svelte'; export let block: { component: string }; diff --git a/src/components/blocks/office-cards.svelte b/src/components/blocks/office-cards.svelte index 098bf332..6f9a57d3 100644 --- a/src/components/blocks/office-cards.svelte +++ b/src/components/blocks/office-cards.svelte @@ -9,7 +9,10 @@ export let block: OfficeCardsStoryblok; -
+
{#if !block.variant}
diff --git a/src/components/pages/contact.svelte b/src/components/pages/contact.svelte index 3998e1eb..54ab7dde 100644 --- a/src/components/pages/contact.svelte +++ b/src/components/pages/contact.svelte @@ -1,35 +1,14 @@ -
-
-
-

- {data.page_title1} -

- {data.page_title2} -
- -
- -
- -
- +
{#if blocks} {#each blocks as block} diff --git a/src/components/pages/get-a-quote/form.svelte b/src/components/pages/get-a-quote/form.svelte index 1c3bd357..7885ee26 100644 --- a/src/components/pages/get-a-quote/form.svelte +++ b/src/components/pages/get-a-quote/form.svelte @@ -53,6 +53,8 @@ lastChangedInput = value.detail; }; + $: budgetRange = page.budget_range?.split('\n'); + $: if (error) { character = 'error'; } else if (success) { @@ -64,17 +66,17 @@ character = 'attach'; } } else if (lastChangedInput === 'budget') { - if (['15.000€ to 50.000€'].includes(budget)) { + if (budgetRange[0].includes(budget)) { character = 'budget10'; - } else if (['50.000€ to 100.000€'].includes(budget)) { + } else if (budgetRange[1].includes(budget)) { character = 'budget25'; - } else if (['100.000€ to 200.000€'].includes(budget)) { + } else if (budgetRange[2].includes(budget)) { character = 'budget25'; - } else if (['200.000€ to 300.000€'].includes(budget)) { + } else if (budgetRange[3].includes(budget)) { character = 'budget50'; - } else if (['300.000€ to 400.000€'].includes(budget)) { + } else if (budgetRange[4].includes(budget)) { character = 'budget50'; - } else if (['400.000€ and above'].includes(budget)) { + } else if (budgetRange[5].includes(budget)) { character = 'budget100'; } } else if ( diff --git a/src/components/pages/page.svelte b/src/components/pages/page.svelte index f7c659d5..5a8cf952 100644 --- a/src/components/pages/page.svelte +++ b/src/components/pages/page.svelte @@ -70,7 +70,7 @@ {:else if page.component === 'careers-page' && isCareersPage(page)} {:else if page.component === 'contacts-page' && isContactPage(page)} - + {:else if page.component === 'services-page' && isServicesPage(page)} {/if} diff --git a/src/types/bloks.d.ts b/src/types/bloks.d.ts index 9240bb7d..c45a7293 100644 --- a/src/types/bloks.d.ts +++ b/src/types/bloks.d.ts @@ -210,6 +210,16 @@ export interface BudgetRangesStoryblok { [k: string]: any; } +export interface CanvasStoryblok { + page_title?: string; + canvas_width?: string; + canvas_height?: string; + canvas_items?: CanvasGroupStoryblok[]; + _uid: string; + component: 'canvas'; + [k: string]: any; +} + export interface CanvasChecklistStoryblok { title?: string; items?: CanvasChecklistItemStoryblok[]; @@ -462,6 +472,15 @@ export interface ContactsPageStoryblok { [k: string]: any; } +export interface ContactUsFormStoryblok { + title1?: string; + title2?: string; + form_support_text?: string; + _uid: string; + component: 'contact-us-form'; + [k: string]: any; +} + export interface CoreValuesStoryblok { values_title1?: string; values_title2?: string; @@ -517,6 +536,15 @@ export interface DeliverablesEntryBlockStoryblok { [k: string]: any; } +export interface DrawSeggStoryblok { + title?: string; + subtitle?: string; + description?: string; + _uid: string; + component: 'draw-segg'; + [k: string]: any; +} + export interface EstimationStoryblok { section_title?: string; section_description?: string; @@ -548,6 +576,7 @@ export interface FooterColumnInternalStoryblok { export interface FormBudgetRangeStoryblok { title?: string; subtitle?: string; + budget_range?: string; _uid: string; component: 'form-budget-range'; [k: string]: any; @@ -695,17 +724,21 @@ export interface LandingPageStoryblok { | AboutGridStoryblok | AwardsListStoryblok | BlogListStoryblok + | CanvasStoryblok | CareersListStoryblok | ClientsStoryblok + | ContactUsFormStoryblok | CoreValuesStoryblok | CtaCardStoryblok | DeliverablesStoryblok + | DrawSeggStoryblok | EstimationStoryblok | FormBudgetRangeStoryblok | HeroStoryblok | ListStoryblok | NewtonStoryblok | OfficeCardsStoryblok + | OpenPositionsStoryblok | PackagesStoryblok | PhysicsStoryblok | PrefooterFormStoryblok @@ -784,6 +817,14 @@ export interface OfficeCardsStoryblok { [k: string]: any; } +export interface OpenPositionsStoryblok { + open_positions_title?: string; + open_positions_description?: string; + _uid: string; + component: 'open-positions'; + [k: string]: any; +} + export interface OtherEntryBlockStoryblok { icon?: AssetStoryblok; title?: string; @@ -826,17 +867,21 @@ export interface PageStoryblok { | AboutGridStoryblok | AwardsListStoryblok | BlogListStoryblok + | CanvasStoryblok | CareersListStoryblok | ClientsStoryblok + | ContactUsFormStoryblok | CoreValuesStoryblok | CtaCardStoryblok | DeliverablesStoryblok + | DrawSeggStoryblok | EstimationStoryblok | FormBudgetRangeStoryblok | HeroStoryblok | ListStoryblok | NewtonStoryblok | OfficeCardsStoryblok + | OpenPositionsStoryblok | PackagesStoryblok | PhysicsStoryblok | PrefooterFormStoryblok From 2d2090aec4ab2c14e22cde5b13cc03451dcc1308 Mon Sep 17 00:00:00 2001 From: kaaps Date: Thu, 21 Mar 2024 14:10:21 +0000 Subject: [PATCH 2/6] feat: budget range --- components.198185.json | 8 ++++++-- src/components/blocks/prefooter-form.svelte | 4 +++- src/components/contact-form.svelte | 12 +++--------- src/components/pages/get-a-quote/form.svelte | 1 + src/types/bloks.d.ts | 1 + 5 files changed, 14 insertions(+), 12 deletions(-) diff --git a/components.198185.json b/components.198185.json index c3b9efa4..802cd6ff 100644 --- a/components.198185.json +++ b/components.198185.json @@ -3573,9 +3573,13 @@ "name": "prefooter-form", "display_name": null, "created_at": "2024-03-07T11:40:30.984Z", - "updated_at": "2024-03-07T11:40:30.984Z", + "updated_at": "2024-03-21T11:49:51.223Z", "id": 5457509, - "schema": {}, + "schema": { + "budget_range": { + "type": "textarea" + } + }, "image": null, "preview_field": null, "is_root": false, diff --git a/src/components/blocks/prefooter-form.svelte b/src/components/blocks/prefooter-form.svelte index b54137cf..f31a2b58 100644 --- a/src/components/blocks/prefooter-form.svelte +++ b/src/components/blocks/prefooter-form.svelte @@ -10,6 +10,8 @@ let variant: ComponentProps['variant'] = undefined; export let block: PrefooterFormStoryblok; + + $: budgetRange = block.budget_range?.split('\n');
- +
diff --git a/src/components/contact-form.svelte b/src/components/contact-form.svelte index 490a630c..5c0af8e8 100644 --- a/src/components/contact-form.svelte +++ b/src/components/contact-form.svelte @@ -27,6 +27,7 @@ export let variant: undefined | FormType = undefined; export let disclaimer: string | undefined = undefined; + export let budgetRange: Array | undefined = undefined; let type: FormType = variant || 'quote'; const options = [ @@ -73,14 +74,7 @@ input: string; }>(); - const budgetOptions = [ - '15.000€ to 50.000€', - '50.000€ to 100.000€', - '100.000€ to 200.000€', - '200.000€ to 300.000€', - '300.000€ to 400.000€', - '400.000€ and above' - ]; + const budgetOptions = budgetRange; const careers = [ DEFAULT_POSITION, @@ -228,7 +222,7 @@ on:blur={() => dispatch('blur', 'message')} on:input={() => dispatch('input', 'message')} /> - {#if type === 'quote'} + {#if type === 'quote' && budgetOptions} Date: Thu, 21 Mar 2024 15:29:41 +0000 Subject: [PATCH 3/6] fix rever budget --- src/components/blocks/prefooter-form.svelte | 4 +--- src/components/contact-form.svelte | 10 ++++++++-- src/components/pages/get-a-quote/form.svelte | 15 ++++++--------- 3 files changed, 15 insertions(+), 14 deletions(-) diff --git a/src/components/blocks/prefooter-form.svelte b/src/components/blocks/prefooter-form.svelte index f31a2b58..b54137cf 100644 --- a/src/components/blocks/prefooter-form.svelte +++ b/src/components/blocks/prefooter-form.svelte @@ -10,8 +10,6 @@ let variant: ComponentProps['variant'] = undefined; export let block: PrefooterFormStoryblok; - - $: budgetRange = block.budget_range?.split('\n');
- +
diff --git a/src/components/contact-form.svelte b/src/components/contact-form.svelte index 5c0af8e8..e006e3a5 100644 --- a/src/components/contact-form.svelte +++ b/src/components/contact-form.svelte @@ -27,7 +27,6 @@ export let variant: undefined | FormType = undefined; export let disclaimer: string | undefined = undefined; - export let budgetRange: Array | undefined = undefined; let type: FormType = variant || 'quote'; const options = [ @@ -74,7 +73,14 @@ input: string; }>(); - const budgetOptions = budgetRange; + const budgetOptions = [ + '15.000€ to 50.000€', + '50.000€ to 100.000€', + '100.000€ to 200.000€', + '200.000€ to 300.000€', + '300.000€ to 400.000€', + '400.000€ and above' + ]; const careers = [ DEFAULT_POSITION, diff --git a/src/components/pages/get-a-quote/form.svelte b/src/components/pages/get-a-quote/form.svelte index 52af58f8..1c3bd357 100644 --- a/src/components/pages/get-a-quote/form.svelte +++ b/src/components/pages/get-a-quote/form.svelte @@ -53,8 +53,6 @@ lastChangedInput = value.detail; }; - $: budgetRange = page.budget_range?.split('\n'); - $: if (error) { character = 'error'; } else if (success) { @@ -66,17 +64,17 @@ character = 'attach'; } } else if (lastChangedInput === 'budget') { - if (budgetRange[0].includes(budget)) { + if (['15.000€ to 50.000€'].includes(budget)) { character = 'budget10'; - } else if (budgetRange[1].includes(budget)) { + } else if (['50.000€ to 100.000€'].includes(budget)) { character = 'budget25'; - } else if (budgetRange[2].includes(budget)) { + } else if (['100.000€ to 200.000€'].includes(budget)) { character = 'budget25'; - } else if (budgetRange[3].includes(budget)) { + } else if (['200.000€ to 300.000€'].includes(budget)) { character = 'budget50'; - } else if (budgetRange[4].includes(budget)) { + } else if (['300.000€ to 400.000€'].includes(budget)) { character = 'budget50'; - } else if (budgetRange[5].includes(budget)) { + } else if (['400.000€ and above'].includes(budget)) { character = 'budget100'; } } else if ( @@ -128,7 +126,6 @@
Date: Thu, 21 Mar 2024 15:39:24 +0000 Subject: [PATCH 4/6] fix: remove deliverables block --- components.198185.json | 227 +++++++----------- src/components/blocks/deliverables.svelte | 34 --- src/components/blocks/dynamic-block.svelte | 2 - src/components/contact-form.svelte | 10 +- .../pages/get-a-quote/budgetRange.ts | 8 + src/components/pages/get-a-quote/form.svelte | 13 +- src/types/bloks.d.ts | 14 -- 7 files changed, 99 insertions(+), 209 deletions(-) delete mode 100644 src/components/blocks/deliverables.svelte create mode 100644 src/components/pages/get-a-quote/budgetRange.ts diff --git a/components.198185.json b/components.198185.json index 802cd6ff..77c281e7 100644 --- a/components.198185.json +++ b/components.198185.json @@ -4,7 +4,7 @@ "name": "about-grid", "display_name": null, "created_at": "2024-03-15T11:25:42.067Z", - "updated_at": "2024-03-15T11:27:25.931Z", + "updated_at": "2024-03-21T15:32:26.874Z", "id": 5503063, "schema": { "about_links": { @@ -25,8 +25,8 @@ "preset_id": null, "real_name": "about-grid", "component_group_uuid": "c9011224-9690-43bd-b686-e8f60ef6c7f6", - "color": null, - "icon": null, + "color": "#fbce41", + "icon": "block-text-img-r-l", "content_type_asset_preview": null, "component_group_name": "Blocks" }, @@ -255,7 +255,7 @@ "name": "awards-list", "display_name": null, "created_at": "2024-03-13T16:49:20.817Z", - "updated_at": "2024-03-13T16:49:54.663Z", + "updated_at": "2024-03-21T15:32:39.098Z", "id": 5492544, "schema": { "title": { @@ -265,7 +265,7 @@ "type": "text" } }, - "image": null, + "image": "//a.storyblok.com/f/198185/x/7370f87149/awards-list.png", "preview_field": null, "is_root": false, "preview_tmpl": null, @@ -274,8 +274,8 @@ "preset_id": null, "real_name": "awards-list", "component_group_uuid": "c9011224-9690-43bd-b686-e8f60ef6c7f6", - "color": null, - "icon": null, + "color": "#ffac00", + "icon": "block-dollar-sign", "content_type_asset_preview": null, "component_group_name": "Blocks" }, @@ -386,7 +386,7 @@ "name": "blog-list", "display_name": null, "created_at": "2024-03-14T16:04:21.544Z", - "updated_at": "2024-03-14T16:05:41.188Z", + "updated_at": "2024-03-21T15:33:30.676Z", "id": 5498274, "schema": { "title1": { @@ -405,8 +405,8 @@ "preset_id": null, "real_name": "blog-list", "component_group_uuid": "c9011224-9690-43bd-b686-e8f60ef6c7f6", - "color": null, - "icon": null, + "color": "#00b3b0", + "icon": "block-text-c", "content_type_asset_preview": null, "component_group_name": "Blocks" }, @@ -587,7 +587,7 @@ "name": "canvas", "display_name": null, "created_at": "2024-03-20T15:34:38.682Z", - "updated_at": "2024-03-20T15:37:55.972Z", + "updated_at": "2024-03-21T15:33:14.451Z", "id": 5531250, "schema": { "page_title": { @@ -618,8 +618,8 @@ "preset_id": null, "real_name": "canvas", "component_group_uuid": "c9011224-9690-43bd-b686-e8f60ef6c7f6", - "color": null, - "icon": null, + "color": "#ff6159", + "icon": "block-arrow-pointer", "content_type_asset_preview": null, "component_group_name": "Blocks" }, @@ -1247,7 +1247,7 @@ "name": "careers-list", "display_name": null, "created_at": "2024-03-14T10:56:07.056Z", - "updated_at": "2024-03-14T16:01:38.820Z", + "updated_at": "2024-03-21T15:33:41.241Z", "id": 5495548, "schema": { "title": { @@ -1288,8 +1288,8 @@ "preset_id": null, "real_name": "careers-list", "component_group_uuid": "c9011224-9690-43bd-b686-e8f60ef6c7f6", - "color": null, - "icon": null, + "color": "#00b3b0", + "icon": "block-text-c", "content_type_asset_preview": null, "component_group_name": "Blocks" }, @@ -1442,7 +1442,7 @@ "name": "clients", "display_name": null, "created_at": "2024-01-23T17:00:57.552Z", - "updated_at": "2024-01-23T17:02:18.323Z", + "updated_at": "2024-03-21T15:33:53.774Z", "id": 5219148, "schema": { "clients_title": { @@ -1455,7 +1455,7 @@ "component_whitelist": ["client-logo"] } }, - "image": null, + "image": "//a.storyblok.com/f/198185/x/df9c3a35d2/clients.png", "preview_field": null, "is_root": false, "preview_tmpl": null, @@ -1464,8 +1464,8 @@ "preset_id": null, "real_name": "clients", "component_group_uuid": "c9011224-9690-43bd-b686-e8f60ef6c7f6", - "color": null, - "icon": null, + "color": "#1b243f", + "icon": "block-image", "content_type_asset_preview": null, "component_group_name": "Blocks" }, @@ -1658,7 +1658,7 @@ "name": "contact-us-form", "display_name": null, "created_at": "2024-03-21T10:44:36.930Z", - "updated_at": "2024-03-21T10:45:35.470Z", + "updated_at": "2024-03-21T15:24:21.906Z", "id": 5535790, "schema": { "title1": { @@ -1680,8 +1680,8 @@ "preset_id": null, "real_name": "contact-us-form", "component_group_uuid": "c9011224-9690-43bd-b686-e8f60ef6c7f6", - "color": null, - "icon": null, + "color": "#2db47d", + "icon": "block-email", "content_type_asset_preview": null, "component_group_name": "Blocks" }, @@ -1689,7 +1689,7 @@ "name": "core-values", "display_name": null, "created_at": "2024-03-08T15:26:01.922Z", - "updated_at": "2024-03-08T15:36:24.779Z", + "updated_at": "2024-03-21T15:34:06.358Z", "id": 5466421, "schema": { "values_title1": { @@ -1710,7 +1710,7 @@ "component_whitelist": ["value"] } }, - "image": null, + "image": "//a.storyblok.com/f/198185/x/04a97a24a8/core-values.png", "preview_field": null, "is_root": false, "preview_tmpl": null, @@ -1719,8 +1719,8 @@ "preset_id": null, "real_name": "core-values", "component_group_uuid": "c9011224-9690-43bd-b686-e8f60ef6c7f6", - "color": null, - "icon": null, + "color": "#00b3b0", + "icon": "block-text-c", "content_type_asset_preview": null, "component_group_name": "Blocks" }, @@ -1728,7 +1728,7 @@ "name": "cta-card", "display_name": null, "created_at": "2024-01-24T11:35:57.280Z", - "updated_at": "2024-01-25T09:30:01.374Z", + "updated_at": "2024-03-21T15:34:51.621Z", "id": 5222861, "schema": { "title": { @@ -1741,7 +1741,7 @@ "type": "text" } }, - "image": null, + "image": "//a.storyblok.com/f/198185/x/c2469bba8e/cta-card.png", "preview_field": null, "is_root": false, "preview_tmpl": null, @@ -1750,8 +1750,8 @@ "preset_id": null, "real_name": "cta-card", "component_group_uuid": "c9011224-9690-43bd-b686-e8f60ef6c7f6", - "color": null, - "icon": null, + "color": "", + "icon": "block-paycard", "content_type_asset_preview": null, "component_group_name": "Blocks" }, @@ -1776,62 +1776,6 @@ "content_type_asset_preview": null, "component_group_name": "Configuration" }, - { - "name": "deliverables", - "display_name": null, - "created_at": "2024-03-13T11:55:40.026Z", - "updated_at": "2024-03-20T11:15:04.646Z", - "id": 5490348, - "schema": { - "type": { - "type": "option", - "pos": 0, - "use_uuid": true, - "options": [ - { - "_uid": "a0084493-6bda-4ba8-91f8-efd36923c1d2", - "name": "large", - "value": "large" - }, - { - "_uid": "6cceee43-6a2f-42a4-bf5c-d789d82cf606", - "value": "regular", - "name": "regular" - } - ], - "exclude_empty_option": true, - "default_value": "large" - }, - "title": { - "type": "text", - "pos": 1 - }, - "subtitle": { - "type": "text", - "pos": 2 - }, - "deliverables": { - "type": "bloks", - "restrict_type": "", - "restrict_components": true, - "component_whitelist": ["deliverables-entry-block"], - "pos": 3 - } - }, - "image": null, - "preview_field": null, - "is_root": false, - "preview_tmpl": null, - "is_nestable": true, - "all_presets": [], - "preset_id": null, - "real_name": "deliverables", - "component_group_uuid": "c9011224-9690-43bd-b686-e8f60ef6c7f6", - "color": null, - "icon": null, - "content_type_asset_preview": null, - "component_group_name": "Blocks" - }, { "name": "deliverables_entry", "display_name": null, @@ -1910,7 +1854,7 @@ "name": "draw-segg", "display_name": null, "created_at": "2024-03-20T15:31:34.802Z", - "updated_at": "2024-03-20T15:41:30.812Z", + "updated_at": "2024-03-21T15:34:44.455Z", "id": 5531244, "schema": { "title": { @@ -1932,16 +1876,16 @@ "preset_id": null, "real_name": "draw-segg", "component_group_uuid": "c9011224-9690-43bd-b686-e8f60ef6c7f6", - "color": null, - "icon": null, + "color": "#ff6159", + "icon": "block-arrow-pointer", "content_type_asset_preview": null, "component_group_name": "Blocks" }, { "name": "estimation", - "display_name": null, + "display_name": "Estimation Form", "created_at": "2024-01-18T12:38:10.713Z", - "updated_at": "2024-01-22T11:29:58.228Z", + "updated_at": "2024-03-21T15:23:08.731Z", "id": 5192821, "schema": { "section_title": { @@ -1969,17 +1913,17 @@ "pos": 5 } }, - "image": null, + "image": "//a.storyblok.com/f/198185/x/653da931fc/estimation.png", "preview_field": null, "is_root": false, "preview_tmpl": null, "is_nestable": true, "all_presets": [], "preset_id": null, - "real_name": "estimation", + "real_name": "Estimation Form", "component_group_uuid": "c9011224-9690-43bd-b686-e8f60ef6c7f6", - "color": null, - "icon": null, + "color": "#2db47d", + "icon": "block-email", "content_type_asset_preview": null, "component_group_name": "Blocks" }, @@ -2048,9 +1992,9 @@ }, { "name": "form-budget-range", - "display_name": null, + "display_name": "Budget Range Form", "created_at": "2024-03-19T14:26:52.308Z", - "updated_at": "2024-03-21T11:16:42.725Z", + "updated_at": "2024-03-21T15:36:39.092Z", "id": 5523274, "schema": { "title": { @@ -2058,9 +2002,6 @@ }, "subtitle": { "type": "text" - }, - "budget_range": { - "type": "textarea" } }, "image": "//a.storyblok.com/f/198185/x/74ab5628e2/form_budget_range_block.png", @@ -2070,10 +2011,10 @@ "is_nestable": true, "all_presets": [], "preset_id": null, - "real_name": "form-budget-range", + "real_name": "Budget Range Form", "component_group_uuid": "c9011224-9690-43bd-b686-e8f60ef6c7f6", - "color": null, - "icon": null, + "color": "#2db47d", + "icon": "block-email", "content_type_asset_preview": null, "component_group_name": "Blocks" }, @@ -2289,7 +2230,7 @@ "name": "hero", "display_name": null, "created_at": "2024-01-10T16:19:08.681Z", - "updated_at": "2024-03-18T16:21:41.806Z", + "updated_at": "2024-03-21T15:35:47.297Z", "id": 5148572, "schema": { "heading": { @@ -2336,7 +2277,7 @@ "pos": 5 } }, - "image": null, + "image": "//a.storyblok.com/f/198185/x/a76a04ef6a/hero.png", "preview_field": null, "is_root": false, "preview_tmpl": null, @@ -2345,8 +2286,8 @@ "preset_id": null, "real_name": "hero", "component_group_uuid": "c9011224-9690-43bd-b686-e8f60ef6c7f6", - "color": null, - "icon": null, + "color": "#fbce41", + "icon": "block-text-img-c", "content_type_asset_preview": null, "component_group_name": "Blocks" }, @@ -2902,9 +2843,9 @@ }, { "name": "list", - "display_name": null, + "display_name": "List (Ex: Deliverables & Benefits)", "created_at": "2024-03-19T17:01:00.283Z", - "updated_at": "2024-03-20T12:04:15.933Z", + "updated_at": "2024-03-21T15:36:13.517Z", "id": 5524571, "schema": { "type": { @@ -2962,10 +2903,10 @@ "is_nestable": true, "all_presets": [], "preset_id": null, - "real_name": "list", + "real_name": "List (Ex: Deliverables & Benefits)", "component_group_uuid": "c9011224-9690-43bd-b686-e8f60ef6c7f6", - "color": null, - "icon": null, + "color": "#00b3b0", + "icon": "block-text-c", "content_type_asset_preview": null, "component_group_name": "Blocks" }, @@ -2973,7 +2914,7 @@ "name": "newton", "display_name": null, "created_at": "2024-03-15T16:54:56.519Z", - "updated_at": "2024-03-15T16:56:59.359Z", + "updated_at": "2024-03-21T15:36:22.059Z", "id": 5504812, "schema": { "title1": { @@ -3001,8 +2942,8 @@ "preset_id": null, "real_name": "newton", "component_group_uuid": "c9011224-9690-43bd-b686-e8f60ef6c7f6", - "color": null, - "icon": null, + "color": "#ff6159", + "icon": "block-arrow-pointer", "content_type_asset_preview": null, "component_group_name": "Blocks" }, @@ -3035,7 +2976,7 @@ "name": "office-cards", "display_name": null, "created_at": "2024-03-06T15:26:14.141Z", - "updated_at": "2024-03-14T15:01:23.251Z", + "updated_at": "2024-03-21T15:36:36.941Z", "id": 5451419, "schema": { "variant": { @@ -3075,7 +3016,7 @@ "pos": 6 } }, - "image": null, + "image": "//a.storyblok.com/f/198185/x/c06e3b8848/office-cards.png", "preview_field": null, "is_root": false, "preview_tmpl": null, @@ -3084,8 +3025,8 @@ "preset_id": null, "real_name": "office-cards", "component_group_uuid": "c9011224-9690-43bd-b686-e8f60ef6c7f6", - "color": null, - "icon": null, + "color": "#1b243f", + "icon": "block-image", "content_type_asset_preview": null, "component_group_name": "Blocks" }, @@ -3329,7 +3270,7 @@ "name": "physics", "display_name": null, "created_at": "2024-03-12T15:09:24.990Z", - "updated_at": "2024-03-13T10:00:44.991Z", + "updated_at": "2024-03-21T15:16:01.858Z", "id": 5485214, "schema": { "variant": { @@ -3387,7 +3328,7 @@ "pos": 7 } }, - "image": null, + "image": "//a.storyblok.com/f/198185/x/0e5e28ae46/physics.png", "preview_field": null, "is_root": false, "preview_tmpl": null, @@ -3573,14 +3514,10 @@ "name": "prefooter-form", "display_name": null, "created_at": "2024-03-07T11:40:30.984Z", - "updated_at": "2024-03-21T11:49:51.223Z", + "updated_at": "2024-03-21T15:35:58.092Z", "id": 5457509, - "schema": { - "budget_range": { - "type": "textarea" - } - }, - "image": null, + "schema": {}, + "image": "//a.storyblok.com/f/198185/x/60cb75039f/pre-footer-form.png", "preview_field": null, "is_root": false, "preview_tmpl": null, @@ -3589,8 +3526,8 @@ "preset_id": null, "real_name": "prefooter-form", "component_group_uuid": "c9011224-9690-43bd-b686-e8f60ef6c7f6", - "color": null, - "icon": null, + "color": "#2db47d", + "icon": "block-email", "content_type_asset_preview": null, "component_group_name": "Blocks" }, @@ -3783,7 +3720,7 @@ "name": "projects", "display_name": null, "created_at": "2024-01-24T10:08:07.237Z", - "updated_at": "2024-01-24T10:10:41.798Z", + "updated_at": "2024-03-21T15:35:57.203Z", "id": 5222132, "schema": { "work_title": { @@ -3795,7 +3732,7 @@ "filter_content_type": ["project"] } }, - "image": null, + "image": "//a.storyblok.com/f/198185/x/92e57719d6/projects.png", "preview_field": null, "is_root": false, "preview_tmpl": null, @@ -3804,8 +3741,8 @@ "preset_id": null, "real_name": "projects", "component_group_uuid": "c9011224-9690-43bd-b686-e8f60ef6c7f6", - "color": null, - "icon": null, + "color": "#395ece", + "icon": "block-suitcase", "content_type_asset_preview": null, "component_group_name": "Blocks" }, @@ -5115,7 +5052,7 @@ "name": "services", "display_name": null, "created_at": "2024-01-23T11:26:31.001Z", - "updated_at": "2024-01-23T11:31:23.863Z", + "updated_at": "2024-03-21T15:26:47.283Z", "id": 5216425, "schema": { "services_title": { @@ -5138,7 +5075,7 @@ "pos": 3 } }, - "image": null, + "image": "//a.storyblok.com/f/198185/x/64be25a1af/services.png", "preview_field": null, "is_root": false, "preview_tmpl": null, @@ -5581,9 +5518,9 @@ }, { "name": "slogan", - "display_name": null, + "display_name": "Editable Hero", "created_at": "2024-03-18T14:45:11.905Z", - "updated_at": "2024-03-18T16:24:10.122Z", + "updated_at": "2024-03-21T15:35:31.917Z", "id": 5515857, "schema": { "heading": { @@ -5598,17 +5535,17 @@ "description": "The grey text." } }, - "image": null, + "image": "//a.storyblok.com/f/198185/x/456ea2ce81/slogan.png", "preview_field": null, "is_root": false, "preview_tmpl": null, "is_nestable": true, "all_presets": [], "preset_id": null, - "real_name": "slogan", + "real_name": "Editable Hero", "component_group_uuid": "c9011224-9690-43bd-b686-e8f60ef6c7f6", - "color": null, - "icon": null, + "color": "#fbce41", + "icon": "block-text-img-c", "content_type_asset_preview": null, "component_group_name": "Blocks" }, @@ -5665,7 +5602,7 @@ "name": "steps", "display_name": null, "created_at": "2024-01-23T10:01:47.736Z", - "updated_at": "2024-01-26T12:13:36.778Z", + "updated_at": "2024-03-21T15:22:33.979Z", "id": 5215462, "schema": { "steps_title": { @@ -5703,7 +5640,7 @@ "pos": 3 } }, - "image": null, + "image": "//a.storyblok.com/f/198185/x/4ff89fbd5a/steps.png", "preview_field": null, "is_root": false, "preview_tmpl": null, diff --git a/src/components/blocks/deliverables.svelte b/src/components/blocks/deliverables.svelte deleted file mode 100644 index 92a0660d..00000000 --- a/src/components/blocks/deliverables.svelte +++ /dev/null @@ -1,34 +0,0 @@ - - -
-
-
-

{block.title}

-

{block.subtitle}

-
- {#if block.deliverables} -
- {#each block.deliverables as deliverables} -
- {#if deliverables.icon?.filename} - {@const { src, alt } = getImageAttributes(deliverables.icon)} - - {/if} -
{deliverables.deliverable}
-
- {deliverables.description} -
-
- {/each} -
- {/if} -
-
diff --git a/src/components/blocks/dynamic-block.svelte b/src/components/blocks/dynamic-block.svelte index 86d5f494..feb8af26 100644 --- a/src/components/blocks/dynamic-block.svelte +++ b/src/components/blocks/dynamic-block.svelte @@ -12,7 +12,6 @@ 'contact-us-form': ContactUsForm, comparison: Comparison, 'core-values': CoreValues, - deliverables: Deliverables, 'form-budget-range': FormBudgetRange, 'image-grid': ImageGrid, 'richtext-code-block': RichTextCodeBlock, @@ -70,7 +69,6 @@ import OfficeCards from './office-cards.svelte'; import PrefooterForm from './prefooter-form.svelte'; import CoreValues from './core-values.svelte'; - import Deliverables from './deliverables.svelte'; import AwardsList from './awards-list.svelte'; import TimelineServices from './timeline-services.svelte'; import Timeline from './timeline.svelte'; diff --git a/src/components/contact-form.svelte b/src/components/contact-form.svelte index e006e3a5..9b0102cd 100644 --- a/src/components/contact-form.svelte +++ b/src/components/contact-form.svelte @@ -24,6 +24,7 @@ import type { ISbStoryData } from '@storyblok/js'; import clsx from 'clsx'; import { createEventDispatcher } from 'svelte'; + import { budgetRange } from './pages/get-a-quote/budgetRange'; export let variant: undefined | FormType = undefined; export let disclaimer: string | undefined = undefined; @@ -73,14 +74,7 @@ input: string; }>(); - const budgetOptions = [ - '15.000€ to 50.000€', - '50.000€ to 100.000€', - '100.000€ to 200.000€', - '200.000€ to 300.000€', - '300.000€ to 400.000€', - '400.000€ and above' - ]; + const budgetOptions = budgetRange; const careers = [ DEFAULT_POSITION, diff --git a/src/components/pages/get-a-quote/budgetRange.ts b/src/components/pages/get-a-quote/budgetRange.ts new file mode 100644 index 00000000..cca83b66 --- /dev/null +++ b/src/components/pages/get-a-quote/budgetRange.ts @@ -0,0 +1,8 @@ +export const budgetRange = [ + '15.000€ to 50.000€', + '50.000€ to 100.000€', + '100.000€ to 200.000€', + '200.000€ to 300.000€', + '300.000€ to 400.000€', + '400.000€ and above' +]; diff --git a/src/components/pages/get-a-quote/form.svelte b/src/components/pages/get-a-quote/form.svelte index 1c3bd357..90c89870 100644 --- a/src/components/pages/get-a-quote/form.svelte +++ b/src/components/pages/get-a-quote/form.svelte @@ -7,6 +7,7 @@ import { Confetti } from 'svelte-confetti'; import { CONFETTI_COLOR_ARRAY } from '$lib/constants'; import { truncateText } from '$lib/utils/strings'; + import { budgetRange } from './budgetRange'; type Eggs = | 'attach-multiple' @@ -64,17 +65,17 @@ character = 'attach'; } } else if (lastChangedInput === 'budget') { - if (['15.000€ to 50.000€'].includes(budget)) { + if (budgetRange[0].includes(budget)) { character = 'budget10'; - } else if (['50.000€ to 100.000€'].includes(budget)) { + } else if (budgetRange[1].includes(budget)) { character = 'budget25'; - } else if (['100.000€ to 200.000€'].includes(budget)) { + } else if (budgetRange[2].includes(budget)) { character = 'budget25'; - } else if (['200.000€ to 300.000€'].includes(budget)) { + } else if (budgetRange[3].includes(budget)) { character = 'budget50'; - } else if (['300.000€ to 400.000€'].includes(budget)) { + } else if (budgetRange[4].includes(budget)) { character = 'budget50'; - } else if (['400.000€ and above'].includes(budget)) { + } else if (budgetRange[5].includes(budget)) { character = 'budget100'; } } else if ( diff --git a/src/types/bloks.d.ts b/src/types/bloks.d.ts index 2ab9551c..31afc79b 100644 --- a/src/types/bloks.d.ts +++ b/src/types/bloks.d.ts @@ -506,16 +506,6 @@ export interface DeliverableStoryblok { [k: string]: any; } -export interface DeliverablesStoryblok { - type?: 'large' | 'regular'; - title?: string; - subtitle?: string; - deliverables?: DeliverablesEntryBlockStoryblok[]; - _uid: string; - component: 'deliverables'; - [k: string]: any; -} - export interface DeliverablesEntryStoryblok { icon?: AssetStoryblok; title?: string; @@ -576,7 +566,6 @@ export interface FooterColumnInternalStoryblok { export interface FormBudgetRangeStoryblok { title?: string; subtitle?: string; - budget_range?: string; _uid: string; component: 'form-budget-range'; [k: string]: any; @@ -730,7 +719,6 @@ export interface LandingPageStoryblok { | ContactUsFormStoryblok | CoreValuesStoryblok | CtaCardStoryblok - | DeliverablesStoryblok | DrawSeggStoryblok | EstimationStoryblok | FormBudgetRangeStoryblok @@ -873,7 +861,6 @@ export interface PageStoryblok { | ContactUsFormStoryblok | CoreValuesStoryblok | CtaCardStoryblok - | DeliverablesStoryblok | DrawSeggStoryblok | EstimationStoryblok | FormBudgetRangeStoryblok @@ -963,7 +950,6 @@ export interface PhysicsStickerStoryblok { } export interface PrefooterFormStoryblok { - budget_range?: string; _uid: string; component: 'prefooter-form'; [k: string]: any; From 4797b8d4b21be324b98a4d86e38bbc46276e5917 Mon Sep 17 00:00:00 2001 From: kaaps Date: Thu, 21 Mar 2024 17:01:17 +0000 Subject: [PATCH 5/6] fix: card --- src/components/blocks/contact-us-form.svelte | 28 +++++++++++--------- src/components/blocks/office-cards.svelte | 2 +- src/components/hoverable-gallery.svelte | 6 ++--- 3 files changed, 19 insertions(+), 17 deletions(-) diff --git a/src/components/blocks/contact-us-form.svelte b/src/components/blocks/contact-us-form.svelte index c48ad1d9..02412621 100644 --- a/src/components/blocks/contact-us-form.svelte +++ b/src/components/blocks/contact-us-form.svelte @@ -9,19 +9,21 @@ export let block: ContactUsFormStoryblok; -
-
-

- {block.title1} -

- {block.title2} -
+
+
+
+

+ {block.title1} +

+ {block.title2} +
-
- -
+
+ +
-
diff --git a/src/components/blocks/office-cards.svelte b/src/components/blocks/office-cards.svelte index 6f9a57d3..02a1762b 100644 --- a/src/components/blocks/office-cards.svelte +++ b/src/components/blocks/office-cards.svelte @@ -48,7 +48,7 @@ {:else if !!block.office_cards?.length}
- +
{/if} diff --git a/src/components/hoverable-gallery.svelte b/src/components/hoverable-gallery.svelte index 0550d780..e7c3e449 100644 --- a/src/components/hoverable-gallery.svelte +++ b/src/components/hoverable-gallery.svelte @@ -16,12 +16,12 @@ { x: '0%', y: '55%', deg: 10, z: 1 } ], hover: [ - { x: '-5%', y: '-5%', deg: -4, z: 1 }, + { x: '-5%', y: '5%', deg: -4, z: 1 }, { x: '0%', y: '0%', deg: -5, z: 1 }, { x: '-15%', y: '5%', deg: 2, z: 1 }, { x: '0%', y: '0%', deg: 5, z: 3 }, - { x: '0%', y: '-5%', deg: 5, z: 2 }, - { x: '10%', y: '5%', deg: 15, z: 1 } + { x: '0%', y: '5%', deg: 5, z: 2 }, + { x: '10%', y: '3%', deg: 15, z: 1 } ] }; From 27d3fb78cc4bcccf438fabbe42e85cabadf0c168 Mon Sep 17 00:00:00 2001 From: kaaps Date: Fri, 22 Mar 2024 12:45:20 +0000 Subject: [PATCH 6/6] fix: conflicts --- components.198185.json | 116 ++++++++++++++++++++++++++++++++++++++++- src/types/bloks.d.ts | 30 +++++++++++ 2 files changed, 145 insertions(+), 1 deletion(-) diff --git a/components.198185.json b/components.198185.json index 34c1dab3..b0810a32 100644 --- a/components.198185.json +++ b/components.198185.json @@ -1728,7 +1728,7 @@ "name": "cta-card", "display_name": null, "created_at": "2024-01-24T11:35:57.280Z", - "updated_at": "2024-03-21T15:34:51.621Z", + "updated_at": "2024-03-21T17:14:46.247Z", "id": 5222861, "schema": { "title": { @@ -1739,6 +1739,16 @@ }, "link_text": { "type": "text" + }, + "link": { + "type": "multilink", + "email_link_type": false + }, + "secondary_link_text": { + "type": "text" + }, + "secondary_link": { + "type": "multilink" } }, "image": "//a.storyblok.com/f/198185/x/c2469bba8e/cta-card.png", @@ -2910,6 +2920,34 @@ "content_type_asset_preview": null, "component_group_name": "Blocks" }, + { + "name": "measurement_entry", + "display_name": null, + "created_at": "2024-03-22T11:29:02.519Z", + "updated_at": "2024-03-22T11:29:15.865Z", + "id": 5541574, + "schema": { + "title": { + "type": "text" + }, + "value": { + "type": "number" + } + }, + "image": null, + "preview_field": null, + "is_root": false, + "preview_tmpl": null, + "is_nestable": true, + "all_presets": [], + "preset_id": null, + "real_name": "measurement_entry", + "component_group_uuid": "a0e45743-888c-44ef-a39f-0d8b7b6defa3", + "color": null, + "icon": null, + "content_type_asset_preview": null, + "component_group_name": "Single" + }, { "name": "newton", "display_name": null, @@ -3716,6 +3754,49 @@ "content_type_asset_preview": null, "component_group_name": "Content Types" }, + { + "name": "project-detailed-entry", + "display_name": null, + "created_at": "2024-03-22T11:33:38.201Z", + "updated_at": "2024-03-22T11:37:48.120Z", + "id": 5541582, + "schema": { + "project": { + "type": "option", + "use_uuid": true, + "options": [], + "source": "internal_stories", + "filter_content_type": ["project"] + }, + "measurements": { + "type": "bloks", + "restrict_type": "", + "restrict_components": true, + "component_whitelist": ["measurement_entry"] + }, + "testimonial": { + "type": "bloks", + "restrict_type": "", + "restrict_components": true, + "component_whitelist": ["richtext-testimonial"], + "maximum": 1, + "minimum": 1 + } + }, + "image": null, + "preview_field": null, + "is_root": false, + "preview_tmpl": null, + "is_nestable": true, + "all_presets": [], + "preset_id": null, + "real_name": "project-detailed-entry", + "component_group_uuid": "a0e45743-888c-44ef-a39f-0d8b7b6defa3", + "color": null, + "icon": null, + "content_type_asset_preview": null, + "component_group_name": "Single" + }, { "name": "projects", "display_name": null, @@ -3767,6 +3848,39 @@ "content_type_asset_preview": null, "component_group_name": "Pages" }, + { + "name": "projects-two-columns", + "display_name": null, + "created_at": "2024-03-22T10:16:30.309Z", + "updated_at": "2024-03-22T11:56:07.136Z", + "id": 5541415, + "schema": { + "project": { + "type": "bloks", + "minimum": 2, + "maximum": 2, + "restrict_type": "", + "restrict_components": true, + "component_whitelist": ["project-detailed-entry"] + }, + "note": { + "type": "textarea" + } + }, + "image": null, + "preview_field": null, + "is_root": false, + "preview_tmpl": null, + "is_nestable": true, + "all_presets": [], + "preset_id": null, + "real_name": "projects-two-columns", + "component_group_uuid": "c9011224-9690-43bd-b686-e8f60ef6c7f6", + "color": null, + "icon": null, + "content_type_asset_preview": null, + "component_group_name": "Blocks" + }, { "name": "proposal", "display_name": null, diff --git a/src/types/bloks.d.ts b/src/types/bloks.d.ts index 4d7acefb..5c91767b 100644 --- a/src/types/bloks.d.ts +++ b/src/types/bloks.d.ts @@ -495,6 +495,9 @@ export interface CtaCardStoryblok { title?: string; description?: string; link_text?: string; + link?: Exclude; + secondary_link_text?: string; + secondary_link?: Exclude; _uid: string; component: 'cta-card'; [k: string]: any; @@ -731,6 +734,7 @@ export interface LandingPageStoryblok { | PhysicsStoryblok | PrefooterFormStoryblok | ProjectsStoryblok + | ProjectsTwoColumnsStoryblok | ServicesStoryblok | SlideshowStoryblok | SloganStoryblok @@ -774,6 +778,14 @@ export interface ListStoryblok { [k: string]: any; } +export interface MeasurementEntryStoryblok { + title?: string; + value?: string; + _uid: string; + component: 'measurement_entry'; + [k: string]: any; +} + export interface NewtonStoryblok { title1?: string; title2?: string; @@ -873,6 +885,7 @@ export interface PageStoryblok { | PhysicsStoryblok | PrefooterFormStoryblok | ProjectsStoryblok + | ProjectsTwoColumnsStoryblok | ServicesStoryblok | SlideshowStoryblok | SloganStoryblok @@ -978,6 +991,15 @@ export interface ProjectStoryblok { [k: string]: any; } +export interface ProjectDetailedEntryStoryblok { + project?: StoryblokStory | string; + measurements?: MeasurementEntryStoryblok[]; + testimonial?: RichtextTestimonialStoryblok[]; + _uid: string; + component: 'project-detailed-entry'; + [k: string]: any; +} + export interface ProjectsStoryblok { work_title?: string; projects?: (StoryblokStory | string)[]; @@ -992,6 +1014,14 @@ export interface ProjectsIndexStoryblok { [k: string]: any; } +export interface ProjectsTwoColumnsStoryblok { + project?: ProjectDetailedEntryStoryblok[]; + note?: string; + _uid: string; + component: 'projects-two-columns'; + [k: string]: any; +} + export interface ProposalStoryblok { password: string; client: string;