tecitheme 0.5.1 → 0.6.0
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 +315 -2
- package/dist/components/Accordion.svelte +74 -0
- package/dist/components/Accordion.svelte.d.ts +27 -0
- package/dist/components/Button.svelte +14 -6
- package/dist/components/Button.svelte.d.ts +10 -0
- package/dist/components/CTA.svelte +22 -12
- package/dist/components/CTASplitImage.svelte +13 -11
- package/dist/components/Card.svelte +18 -19
- package/dist/components/ContentTwoColumns.svelte +12 -10
- package/dist/components/FeatureGrid.svelte +5 -8
- package/dist/components/Figure.svelte +1 -3
- package/dist/components/Footer.svelte +11 -30
- package/dist/components/Header.svelte +21 -21
- package/dist/components/Hero.svelte +16 -13
- package/dist/components/LogoCloud.svelte +1 -1
- package/dist/components/MediaFeature.svelte +4 -1
- package/dist/components/Modal.svelte +2 -1
- package/dist/components/NewsGrid.svelte +14 -19
- package/dist/components/PricingTable.svelte +5 -6
- package/dist/components/Stats.svelte +2 -1
- package/dist/components/Testimonial.svelte +3 -2
- package/dist/get-content.js +3 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/layouts/blocks.svelte +5 -5
- package/dist/utils.d.ts +1 -0
- package/dist/utils.js +69 -0
- package/package.json +28 -28
- package/dist/components/CTABranded.svelte +0 -20
- package/dist/components/CTABranded.svelte.d.ts +0 -23
- package/dist/components/Subscribe.svelte +0 -24
- package/dist/components/Subscribe.svelte.d.ts +0 -23
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from "./utils.js";
|
|
2
2
|
export { default as getContent } from "./get-content.js";
|
|
3
|
+
export { default as Accordion } from "./components/Accordion.svelte";
|
|
3
4
|
export { default as Banner } from "./components/Banner.svelte";
|
|
4
5
|
export { default as Button } from "./components/Button.svelte";
|
|
5
6
|
export { default as Card } from "./components/Card.svelte";
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './utils.js';
|
|
2
2
|
export { default as getContent } from './get-content.js';
|
|
3
|
+
export { default as Accordion } from './components/Accordion.svelte';
|
|
3
4
|
export { default as Banner } from './components/Banner.svelte';
|
|
4
5
|
export { default as Button } from './components/Button.svelte';
|
|
5
6
|
export { default as Card } from './components/Card.svelte';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
<script>
|
|
2
|
+
import Accordion from "../components/Accordion.svelte";
|
|
2
3
|
import CTA from "../components/CTA.svelte";
|
|
3
4
|
import HeadingCentered from "../components/HeadingCentered.svelte";
|
|
4
5
|
import MediaFeature from "../components/MediaFeature.svelte";
|
|
@@ -9,17 +10,17 @@
|
|
|
9
10
|
import TrialForm from "../components/TrialForm.svelte";
|
|
10
11
|
import Video from "../components/Video.svelte";
|
|
11
12
|
import Hero from "../components/Hero.svelte";
|
|
12
|
-
import CTABranded from "../components/CTABranded.svelte";
|
|
13
13
|
import FeatureGrid from "../components/FeatureGrid.svelte";
|
|
14
14
|
import LogoCloud from "../components/LogoCloud.svelte";
|
|
15
|
-
import
|
|
15
|
+
import CTASplitImage from "../components/CTASplitImage.svelte";
|
|
16
16
|
import ContentTwoColumns from "../components/ContentTwoColumns.svelte";
|
|
17
17
|
import PricingTable from "../components/PricingTable.svelte";
|
|
18
18
|
import Stats from "../components/Stats.svelte";
|
|
19
19
|
import Testimonial from "../components/Testimonial.svelte";
|
|
20
20
|
|
|
21
21
|
let blocks = [
|
|
22
|
-
{ ref: "
|
|
22
|
+
{ ref: "accordion", component: Accordion},
|
|
23
|
+
{ ref: "cta", component: CTA },
|
|
23
24
|
{ ref: "heading-centered", component: HeadingCentered },
|
|
24
25
|
{ ref: "media-feature", component: MediaFeature },
|
|
25
26
|
{ ref: "modal", component: Modal },
|
|
@@ -29,10 +30,9 @@
|
|
|
29
30
|
{ ref: "trial-form", component: TrialForm },
|
|
30
31
|
{ ref: "video", component: Video },
|
|
31
32
|
{ ref: "hero", component: Hero },
|
|
32
|
-
{ ref: "cta-branded", component: CTABranded },
|
|
33
33
|
{ ref: "feature-grid", component: FeatureGrid },
|
|
34
34
|
{ ref: "logo-cloud", component: LogoCloud },
|
|
35
|
-
{ ref: "cta-split-image", component:
|
|
35
|
+
{ ref: "cta-split-image", component: CTASplitImage },
|
|
36
36
|
{ ref: "content-two-columns", component: ContentTwoColumns },
|
|
37
37
|
{ ref: "pricing-table", component: PricingTable },
|
|
38
38
|
{ ref: "stats", component: Stats },
|
package/dist/utils.d.ts
CHANGED
package/dist/utils.js
CHANGED
|
@@ -4,6 +4,75 @@ export function scrollTo(anchor) {
|
|
|
4
4
|
});
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
+
export function getColorStyles(type, color){
|
|
8
|
+
let classes = ""
|
|
9
|
+
switch (type) {
|
|
10
|
+
case 'text':
|
|
11
|
+
switch (color) {
|
|
12
|
+
case 'pyrosim':
|
|
13
|
+
classes = "text-pyrosim"
|
|
14
|
+
break;
|
|
15
|
+
case 'pathfinder':
|
|
16
|
+
classes = "text-pathfinder"
|
|
17
|
+
break;
|
|
18
|
+
case 'ventus':
|
|
19
|
+
classes = "text-ventus"
|
|
20
|
+
break;
|
|
21
|
+
case 'gray':
|
|
22
|
+
classes = "text-gray-300"
|
|
23
|
+
break;
|
|
24
|
+
case 'white':
|
|
25
|
+
classes = "text-white"
|
|
26
|
+
break;
|
|
27
|
+
default:
|
|
28
|
+
classes = "text-teci-blue-dark"
|
|
29
|
+
break;
|
|
30
|
+
}
|
|
31
|
+
break;
|
|
32
|
+
case 'button':
|
|
33
|
+
switch (color) {
|
|
34
|
+
case 'pyrosim':
|
|
35
|
+
classes = "bg-pyrosim hover:bg-pyrosim-dark text-white focus:ring-teci-blue-light border-pyrosim-dark"
|
|
36
|
+
break;
|
|
37
|
+
case 'pathfinder':
|
|
38
|
+
classes = "bg-pathfinder hover:bg-pathfinder-dark text-white focus:ring-teci-blue-light border-pathfinder-dark"
|
|
39
|
+
break;
|
|
40
|
+
case 'ventus':
|
|
41
|
+
classes = "bg-ventus hover:bg-ventus-dark text-white focus:ring-teci-blue-light border-ventus-dark"
|
|
42
|
+
break;
|
|
43
|
+
case 'white':
|
|
44
|
+
classes = "bg-white text-gray-600 hover:bg-gray-200 focus:ring-teci-blue-light border-gray-200"
|
|
45
|
+
break;
|
|
46
|
+
default:
|
|
47
|
+
classes = "bg-teci-blue-light hover:bg-teci-blue-dark text-white focus:ring-teci-blue-light border-teci-blue-dark"
|
|
48
|
+
break;
|
|
49
|
+
}
|
|
50
|
+
break;
|
|
51
|
+
case 'background':
|
|
52
|
+
switch (color) {
|
|
53
|
+
case 'pyrosim':
|
|
54
|
+
classes = "bg-pyrosim text-white"
|
|
55
|
+
break;
|
|
56
|
+
case 'pathfinder':
|
|
57
|
+
classes = "bg-pathfinder text-white"
|
|
58
|
+
break;
|
|
59
|
+
case 'ventus':
|
|
60
|
+
classes = "bg-ventus text-white"
|
|
61
|
+
break;
|
|
62
|
+
case 'teci':
|
|
63
|
+
classes = "bg-teci-blue-light text-white"
|
|
64
|
+
break;
|
|
65
|
+
default:
|
|
66
|
+
classes = "bg-white"
|
|
67
|
+
break;
|
|
68
|
+
}
|
|
69
|
+
break;
|
|
70
|
+
default:
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
return classes;
|
|
74
|
+
}
|
|
75
|
+
|
|
7
76
|
export function validateEmail(email) {
|
|
8
77
|
const re =
|
|
9
78
|
/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tecitheme",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "vite dev",
|
|
@@ -27,45 +27,45 @@
|
|
|
27
27
|
"dist"
|
|
28
28
|
],
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"@sveltejs/kit": "^1.
|
|
31
|
-
"svelte": "^3.
|
|
30
|
+
"@sveltejs/kit": "^1.20.2",
|
|
31
|
+
"svelte": "^3.59.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@fontsource/inter": "^
|
|
35
|
-
"@fontsource/material-icons-outlined": "^
|
|
36
|
-
"@sveltejs/adapter-static": "2.0.
|
|
37
|
-
"@sveltejs/kit": "^1.
|
|
34
|
+
"@fontsource-variable/inter": "^5.0.3",
|
|
35
|
+
"@fontsource/material-icons-outlined": "^5.0.3",
|
|
36
|
+
"@sveltejs/adapter-static": "2.0.2",
|
|
37
|
+
"@sveltejs/kit": "^1.20.2",
|
|
38
38
|
"@sveltejs/package": "^2.0.2",
|
|
39
39
|
"@tailwindcss/forms": "^0.5.3",
|
|
40
40
|
"@tailwindcss/typography": "^0.5.9",
|
|
41
|
-
"@tsconfig/svelte": "^
|
|
42
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
43
|
-
"@typescript-eslint/parser": "^5.
|
|
44
|
-
"autoprefixer": "^10.4.
|
|
45
|
-
"eslint": "^8.
|
|
46
|
-
"eslint-config-prettier": "^8.
|
|
41
|
+
"@tsconfig/svelte": "^4.0.1",
|
|
42
|
+
"@typescript-eslint/eslint-plugin": "^5.59.11",
|
|
43
|
+
"@typescript-eslint/parser": "^5.59.11",
|
|
44
|
+
"autoprefixer": "^10.4.14",
|
|
45
|
+
"eslint": "^8.42.0",
|
|
46
|
+
"eslint-config-prettier": "^8.8.0",
|
|
47
47
|
"eslint-plugin-svelte3": "^4.0.0",
|
|
48
|
-
"html-to-text": "^9.0.
|
|
48
|
+
"html-to-text": "^9.0.5",
|
|
49
49
|
"markdown-yaml-metadata-parser": "^3.0.0",
|
|
50
50
|
"mdsvex": "^0.10.6",
|
|
51
|
-
"postcss": "^8.4.
|
|
52
|
-
"prettier": "^2.8.
|
|
53
|
-
"prettier-plugin-tailwindcss": "^0.
|
|
51
|
+
"postcss": "^8.4.24",
|
|
52
|
+
"prettier": "^2.8.8",
|
|
53
|
+
"prettier-plugin-tailwindcss": "^0.3.0",
|
|
54
54
|
"rehype-slug": "^5.1.0",
|
|
55
|
-
"svelte": "^3.
|
|
56
|
-
"svelte-check": "^3.
|
|
55
|
+
"svelte": "^3.59.1",
|
|
56
|
+
"svelte-check": "^3.4.3",
|
|
57
57
|
"svelte-paginate": "^0.1.0",
|
|
58
|
-
"svelte-preprocess": "^5.0.
|
|
59
|
-
"svelte2tsx": "^0.6.
|
|
58
|
+
"svelte-preprocess": "^5.0.4",
|
|
59
|
+
"svelte2tsx": "^0.6.15",
|
|
60
60
|
"sveltekit-autoimport": "^1.7.0",
|
|
61
|
-
"tailwindcss": "^3.2
|
|
62
|
-
"tslib": "^2.5.
|
|
63
|
-
"typescript": "^
|
|
61
|
+
"tailwindcss": "^3.3.2",
|
|
62
|
+
"tslib": "^2.5.3",
|
|
63
|
+
"typescript": "^5.1.3",
|
|
64
64
|
"uuid-by-string": "^4.0.0",
|
|
65
|
-
"vite": "^4.
|
|
65
|
+
"vite": "^4.3.9"
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"katex": "^0.16.
|
|
69
|
-
"svelte": "^3.
|
|
68
|
+
"katex": "^0.16.7",
|
|
69
|
+
"svelte": "^3.59.1"
|
|
70
70
|
}
|
|
71
|
-
}
|
|
71
|
+
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
export let data
|
|
3
|
-
let id
|
|
4
|
-
|
|
5
|
-
if (data.name) {
|
|
6
|
-
id = encodeURIComponent(data.name).toLowerCase()
|
|
7
|
-
}
|
|
8
|
-
</script>
|
|
9
|
-
|
|
10
|
-
<section {id} class="{(data.color == "pyrosim" ? "bg-pyrosim" : (data.color == "pathfinder" ? "bg-pathfinder" : (data.color == "ventus" ? "bg-ventus" : "bg-teci-blue-dark")))}">
|
|
11
|
-
<div class="mx-auto max-w-4xl py-10 px-6 text-center sm:py-10 lg:px-8">
|
|
12
|
-
<h2 class="text-3xl font-bold tracking-tight text-white sm:text-4xl">
|
|
13
|
-
<span class="block">{@html data.heading}</span>
|
|
14
|
-
</h2>
|
|
15
|
-
<p class="mt-4 text-lg leading-6 text-gray-200">{@html data.body}</p>
|
|
16
|
-
<a href={data.cta_url} class="mt-8 inline-flex w-full items-center justify-center border border-transparent bg-white px-5 py-3 text-base font-medium text-gray-900 hover:bg-indigo-50 sm:w-auto">
|
|
17
|
-
{data.cta}
|
|
18
|
-
</a>
|
|
19
|
-
</div>
|
|
20
|
-
</section>
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/** @typedef {typeof __propDef.props} CtaBrandedProps */
|
|
2
|
-
/** @typedef {typeof __propDef.events} CtaBrandedEvents */
|
|
3
|
-
/** @typedef {typeof __propDef.slots} CtaBrandedSlots */
|
|
4
|
-
export default class CtaBranded extends SvelteComponentTyped<{
|
|
5
|
-
data: any;
|
|
6
|
-
}, {
|
|
7
|
-
[evt: string]: CustomEvent<any>;
|
|
8
|
-
}, {}> {
|
|
9
|
-
}
|
|
10
|
-
export type CtaBrandedProps = typeof __propDef.props;
|
|
11
|
-
export type CtaBrandedEvents = typeof __propDef.events;
|
|
12
|
-
export type CtaBrandedSlots = typeof __propDef.slots;
|
|
13
|
-
import { SvelteComponentTyped } from "svelte";
|
|
14
|
-
declare const __propDef: {
|
|
15
|
-
props: {
|
|
16
|
-
data: any;
|
|
17
|
-
};
|
|
18
|
-
events: {
|
|
19
|
-
[evt: string]: CustomEvent<any>;
|
|
20
|
-
};
|
|
21
|
-
slots: {};
|
|
22
|
-
};
|
|
23
|
-
export {};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
export let classes;
|
|
3
|
-
</script>
|
|
4
|
-
|
|
5
|
-
<div class="not-prose w-32 {classes ? classes : ''}">
|
|
6
|
-
<data
|
|
7
|
-
id="mj-w-res-data"
|
|
8
|
-
data-token="2a0fbbba6aa7f1398b091a6a5f5f2167"
|
|
9
|
-
class="mj-w-data"
|
|
10
|
-
data-apikey="3aOX"
|
|
11
|
-
data-w-id="Fbu"
|
|
12
|
-
data-lang="en_US"
|
|
13
|
-
data-base="https://app.mailjet.com"
|
|
14
|
-
data-width="640"
|
|
15
|
-
data-height="480"
|
|
16
|
-
data-statics="statics"
|
|
17
|
-
/>
|
|
18
|
-
<button
|
|
19
|
-
class="flex w-full items-center justify-center border border-transparent bg-teci-blue-light px-4 py-2 text-base font-medium leading-6 text-white transition duration-150 ease-in-out hover:bg-teci-blue-dark focus:border-teci-blue-dark focus:outline-none"
|
|
20
|
-
data-token="2a0fbbba6aa7f1398b091a6a5f5f2167"
|
|
21
|
-
onclick="mjOpenPopin(event, this)">Subscribe</button
|
|
22
|
-
>
|
|
23
|
-
</div>
|
|
24
|
-
<div class="clear-both" />
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/** @typedef {typeof __propDef.props} SubscribeProps */
|
|
2
|
-
/** @typedef {typeof __propDef.events} SubscribeEvents */
|
|
3
|
-
/** @typedef {typeof __propDef.slots} SubscribeSlots */
|
|
4
|
-
export default class Subscribe extends SvelteComponentTyped<{
|
|
5
|
-
classes: any;
|
|
6
|
-
}, {
|
|
7
|
-
[evt: string]: CustomEvent<any>;
|
|
8
|
-
}, {}> {
|
|
9
|
-
}
|
|
10
|
-
export type SubscribeProps = typeof __propDef.props;
|
|
11
|
-
export type SubscribeEvents = typeof __propDef.events;
|
|
12
|
-
export type SubscribeSlots = typeof __propDef.slots;
|
|
13
|
-
import { SvelteComponentTyped } from "svelte";
|
|
14
|
-
declare const __propDef: {
|
|
15
|
-
props: {
|
|
16
|
-
classes: any;
|
|
17
|
-
};
|
|
18
|
-
events: {
|
|
19
|
-
[evt: string]: CustomEvent<any>;
|
|
20
|
-
};
|
|
21
|
-
slots: {};
|
|
22
|
-
};
|
|
23
|
-
export {};
|