@damarkuncoro/landing-page 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +33 -0
- package/dist/index.d.mts +18 -1
- package/dist/index.d.ts +18 -1
- package/dist/index.js +586 -144
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +586 -144
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -177,7 +177,40 @@ interface HeroConfig {
|
|
|
177
177
|
video?: string
|
|
178
178
|
buttons: ButtonConfig[]
|
|
179
179
|
alignment?: 'left' | 'center' | 'right'
|
|
180
|
+
skin?: 'default' | 'skin2' | 'skin3' | 'skin4' | 'skin5' | 'skin6' | 'skin7' | 'skin8'
|
|
180
181
|
}
|
|
182
|
+
|
|
183
|
+
### Hero Skins
|
|
184
|
+
|
|
185
|
+
#### Default Skin
|
|
186
|
+
Simple centered layout with image below text.
|
|
187
|
+
|
|
188
|
+
#### Skin 2
|
|
189
|
+
Two-column layout with image on the left and text on the right.
|
|
190
|
+
|
|
191
|
+
#### Skin 3
|
|
192
|
+
Gradient background with white text.
|
|
193
|
+
|
|
194
|
+
#### Skin 4
|
|
195
|
+
Video background with dark overlay.
|
|
196
|
+
|
|
197
|
+
#### Skin 5
|
|
198
|
+
Gambar di atas dengan teks di bawah, latar belakang berwarna terang.
|
|
199
|
+
|
|
200
|
+
#### Skin 6
|
|
201
|
+
Gambar di sebelah kanan dengan teks di kiri, latar belakang hitam dengan gradien.
|
|
202
|
+
|
|
203
|
+
#### Skin 7
|
|
204
|
+
Desain minimalis dengan latar belakang putih dan elemen yang bersih. Gambar di atas teks.
|
|
205
|
+
|
|
206
|
+
#### Skin 8
|
|
207
|
+
Desain dengan latar belakang gradien biru muda dan teks berwarna putih. Gambar di sebelah kanan dengan teks di kiri.
|
|
208
|
+
|
|
209
|
+
#### Skin 9
|
|
210
|
+
Title, subtitle, dan buttons di atas gambar.
|
|
211
|
+
|
|
212
|
+
#### Skin 10
|
|
213
|
+
Full screen hero dengan latar belakang gradien dan konten di tengah.
|
|
181
214
|
```
|
|
182
215
|
|
|
183
216
|
#### Features Section
|
package/dist/index.d.mts
CHANGED
|
@@ -33,6 +33,18 @@ interface ThemeConfig {
|
|
|
33
33
|
body: string;
|
|
34
34
|
mono: string;
|
|
35
35
|
};
|
|
36
|
+
typography: {
|
|
37
|
+
h1: string;
|
|
38
|
+
h2: string;
|
|
39
|
+
h3: string;
|
|
40
|
+
body: string;
|
|
41
|
+
small: string;
|
|
42
|
+
};
|
|
43
|
+
fontWeights: {
|
|
44
|
+
normal: number;
|
|
45
|
+
medium: number;
|
|
46
|
+
bold: number;
|
|
47
|
+
};
|
|
36
48
|
breakpoints: {
|
|
37
49
|
sm: string;
|
|
38
50
|
md: string;
|
|
@@ -93,6 +105,7 @@ interface HeroConfig extends BaseConfig {
|
|
|
93
105
|
video?: string;
|
|
94
106
|
buttons: ButtonConfig[];
|
|
95
107
|
alignment?: "left" | "center" | "right";
|
|
108
|
+
skin?: "default" | "skin2" | "skin3" | "skin4" | "skin5" | "skin6" | "skin7" | "skin8" | "skin9" | "skin10";
|
|
96
109
|
}
|
|
97
110
|
interface FeatureConfig extends BaseConfig {
|
|
98
111
|
title: string;
|
|
@@ -466,6 +479,10 @@ declare const sectionConfigSchemas: {
|
|
|
466
479
|
type: string;
|
|
467
480
|
enum: string[];
|
|
468
481
|
};
|
|
482
|
+
skin: {
|
|
483
|
+
type: string;
|
|
484
|
+
enum: string[];
|
|
485
|
+
};
|
|
469
486
|
};
|
|
470
487
|
required: string[];
|
|
471
488
|
};
|
|
@@ -757,4 +774,4 @@ declare const sectionConfigSchemas: {
|
|
|
757
774
|
declare function validateConfig(config: Partial<LandingPageConfig>): string[];
|
|
758
775
|
declare function validateSection(section: Partial<SectionConfig>): string[];
|
|
759
776
|
|
|
760
|
-
export { ButtonConfig, ComponentType, CtaConfig, FaqConfig, FeatureConfig, FooterConfig, HeaderConfig, HeroConfig, LandingPageConfig, PricingConfig, SectionType, StatConfig, TestimonialConfig, createCtaSection, createFaqSection, createFeaturesSection, createFooterSection, createHeaderSection, createHeroSection, createPricingSection, createReactRenderer, createStatsSection, createTestimonialsSection, defaultTheme, defineLandingPage, landingPageSchema, sectionConfigSchemas, validateConfig, validateSection };
|
|
777
|
+
export { ButtonConfig, ComponentType, CtaConfig, FaqConfig, FeatureConfig, FooterConfig, HeaderConfig, HeroConfig, LandingPageConfig, PricingConfig, SectionType, StatConfig, TestimonialConfig, ThemeConfig, createCtaSection, createFaqSection, createFeaturesSection, createFooterSection, createHeaderSection, createHeroSection, createPricingSection, createReactRenderer, createStatsSection, createTestimonialsSection, defaultTheme, defineLandingPage, landingPageSchema, sectionConfigSchemas, validateConfig, validateSection };
|
package/dist/index.d.ts
CHANGED
|
@@ -33,6 +33,18 @@ interface ThemeConfig {
|
|
|
33
33
|
body: string;
|
|
34
34
|
mono: string;
|
|
35
35
|
};
|
|
36
|
+
typography: {
|
|
37
|
+
h1: string;
|
|
38
|
+
h2: string;
|
|
39
|
+
h3: string;
|
|
40
|
+
body: string;
|
|
41
|
+
small: string;
|
|
42
|
+
};
|
|
43
|
+
fontWeights: {
|
|
44
|
+
normal: string;
|
|
45
|
+
medium: string;
|
|
46
|
+
bold: string;
|
|
47
|
+
};
|
|
36
48
|
breakpoints: {
|
|
37
49
|
sm: string;
|
|
38
50
|
md: string;
|
|
@@ -93,6 +105,7 @@ interface HeroConfig extends BaseConfig {
|
|
|
93
105
|
video?: string;
|
|
94
106
|
buttons: ButtonConfig[];
|
|
95
107
|
alignment?: "left" | "center" | "right";
|
|
108
|
+
skin?: "default" | "skin2" | "skin3" | "skin4" | "skin5" | "skin6" | "skin7" | "skin8" | "skin9" | "skin10";
|
|
96
109
|
}
|
|
97
110
|
interface FeatureConfig extends BaseConfig {
|
|
98
111
|
title: string;
|
|
@@ -466,6 +479,10 @@ declare const sectionConfigSchemas: {
|
|
|
466
479
|
type: string;
|
|
467
480
|
enum: string[];
|
|
468
481
|
};
|
|
482
|
+
skin: {
|
|
483
|
+
type: string;
|
|
484
|
+
enum: string[];
|
|
485
|
+
};
|
|
469
486
|
};
|
|
470
487
|
required: string[];
|
|
471
488
|
};
|
|
@@ -757,4 +774,4 @@ declare const sectionConfigSchemas: {
|
|
|
757
774
|
declare function validateConfig(config: Partial<LandingPageConfig>): string[];
|
|
758
775
|
declare function validateSection(section: Partial<SectionConfig>): string[];
|
|
759
776
|
|
|
760
|
-
export { ButtonConfig, ComponentType, CtaConfig, FaqConfig, FeatureConfig, FooterConfig, HeaderConfig, HeroConfig, LandingPageConfig, PricingConfig, SectionType, StatConfig, TestimonialConfig, createCtaSection, createFaqSection, createFeaturesSection, createFooterSection, createHeaderSection, createHeroSection, createPricingSection, createReactRenderer, createStatsSection, createTestimonialsSection, defaultTheme, defineLandingPage, landingPageSchema, sectionConfigSchemas, validateConfig, validateSection };
|
|
777
|
+
export { ButtonConfig, ComponentType, CtaConfig, FaqConfig, FeatureConfig, FooterConfig, HeaderConfig, HeroConfig, LandingPageConfig, PricingConfig, SectionType, StatConfig, TestimonialConfig, ThemeConfig, createCtaSection, createFaqSection, createFeaturesSection, createFooterSection, createHeaderSection, createHeroSection, createPricingSection, createReactRenderer, createStatsSection, createTestimonialsSection, defaultTheme, defineLandingPage, landingPageSchema, sectionConfigSchemas, validateConfig, validateSection };
|