removed not used blocks

This commit is contained in:
Jakub Dorfman 2026-05-20 13:57:07 +02:00
parent fe5d77443d
commit 1b3ef17800
17 changed files with 3 additions and 615 deletions

View file

@ -3,21 +3,9 @@ import type { BlockType, ContentBlock } from '$lib/types';
export const blockLabels: Record<BlockType, string> = {
text: 'Text',
image: 'Image',
image_text: 'Image + Text',
timeline: 'Timeline',
testimonials: 'Testimonials',
services: 'Services',
cta: 'Call to Action',
spacer: 'Spacer',
horizontal_cards: 'Horizontal Cards',
hero: 'Hero',
columns: 'Columns',
pricing_table: 'Pricing Table',
newsletter: 'Newsletter',
articles_list: 'Articles List',
profile_card: 'Profile Card',
features_list: 'Features List'
hero: 'Hero'
};
export const blockTypes = Object.keys(blockLabels) as BlockType[];
@ -28,30 +16,12 @@ export function createBlock(type: BlockType): ContentBlock {
case 'text':
base.data = { content: '<h2>New text block</h2><p>Add your copy here.</p>' };
break;
case 'image':
base.data = { url: '', alt: '', caption: '' };
break;
case 'image_text':
base.data = { url: '', alt: '', content: '<h2>Image and text</h2><p>Add content here.</p>', imagePosition: 'left' };
break;
case 'timeline':
base.data = { items: [{ year: '2026', title: 'Milestone', description: 'Describe this moment.' }] };
break;
case 'testimonials':
base.data = { items: [{ name: 'Client name', text: 'A beautiful experience.', rating: 5 }] };
break;
case 'services':
base.data = { items: [{ title: 'Massage session', description: 'Describe the service.', duration: '60 min', price: '£70' }] };
break;
case 'cta':
base.data = { heading: 'Ready to book?', subtext: 'Start your next moment of calm.', buttonLabel: 'Book Now', buttonUrl: '/book' };
break;
case 'spacer':
base.data = { size: 'md' };
break;
case 'horizontal_cards':
base.data = { items: [{ title: 'Card title', description: 'Card description', url: '', link: '' }] };
break;
case 'hero':
base.data = {
heading: 'Holistic and Experiential Learning about Happiness',
@ -61,76 +31,6 @@ export function createBlock(type: BlockType): ContentBlock {
backgroundImage: ''
};
break;
case 'columns':
base.data = {
heading: 'Elements of Holistic Sexology',
items: [
{ title: 'Coaching and Mind Work', content: '<p>Explore beliefs, thoughts and emotions associated with your sexuality.</p>', icon: '🧠' },
{ title: 'Somatic Practices', content: '<p>Use sound, breathing, movement, touch to increase sensitivity.</p>', icon: '🧘' },
{ title: 'Harmonizing the Energy System', content: '<p>Techniques of Shiatsu based on Chinese medicine to resolve blockages.</p>', icon: '⚡' }
]
};
break;
case 'pricing_table':
base.data = {
heading: 'Prices',
items: [
{ duration: '60 min', price: '2000 NOK' },
{ duration: '90 min', price: '2500 NOK' },
{ duration: '120 min', price: '3000 NOK' },
{ duration: '150 min', price: '3500 NOK' },
{ duration: '180 min', price: '4000 NOK' }
]
};
break;
case 'newsletter':
base.data = {
heading: 'Want to stay connected?',
subtext: 'Sign up to receive my free videos and articles that allow you to know more about the secrets of sexual bliss.',
buttonLabel: 'Yes, please!',
placeholder: 'Your email address'
};
break;
case 'articles_list':
base.data = {
heading: 'My Favourite Articles',
items: [
{ title: 'As a "real" man you need to be hard! Sexual performance anxiety in men', url: '/article1' },
{ title: 'Listen to your body! What numbness is communicating to you?', url: '/article2' },
{ title: 'Reclaim your pleasure and joy! Consent and clear empowered communication are the basis', url: '/article3' }
]
};
break;
case 'profile_card':
base.data = {
name: 'Alegría',
tagline: 'Holistic Sensual Massage Therapist',
image: '',
description: '<p>Let yourself be pampered like Caesar by Cleopatra.</p>',
education: ['Professional training in holistic sensual massage Core Touch I and II'],
contact: '+47 40158395',
profileUrl: ''
};
break;
case 'features_list':
base.data = {
heading: 'In my sessions, I teach...',
categories: [
{
title: 'For men',
items: ['Overcome sexual anxiety', 'Last as long as you want', 'Treat erectile dysfunction without drugs']
},
{
title: 'For women',
items: ['Increase sensitivity in the whole body', 'Unlock every possible kind of orgasm', 'Release fear, shame and trauma']
},
{
title: 'For couples',
items: ['Feel more connected while lovemaking', 'Master the art of Tantric sex', 'Deepen your relationship']
}
]
};
break;
}
base.data._background = { type: 'none', color: '', imageUrl: '', attachment: 'scroll', overlay: false, overlayOpacity: 40 };
return base;