tecitheme 0.0.17 → 0.0.20
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 +21 -0
- package/components/CTA.svelte +18 -20
- package/components/Card.svelte +46 -27
- package/components/Footer.svelte +1 -1
- package/components/Header.svelte +1044 -534
- package/components/HeadingCentered.svelte +24 -19
- package/components/HeadingCentered.svelte.d.ts +2 -10
- package/components/Icon.svelte +56 -0
- package/components/MediaFeature.svelte +6 -4
- package/components/MetaSocial.svelte +28 -0
- package/components/MetaSocial.svelte.d.ts +29 -0
- package/components/NewsGrid.svelte +108 -19
- package/components/SidebarContent.svelte +4 -2
- package/components/ThreeColumn.svelte +4 -4
- package/components/TrialForm.svelte +2 -2
- package/components/Wrap.svelte +12 -0
- package/components/Wrap.svelte.d.ts +31 -0
- package/layouts/blocks.svelte +15 -2
- package/layouts/blocks.svelte.d.ts +4 -2
- package/package.json +24 -24
package/README.md
CHANGED
|
@@ -5,3 +5,24 @@ SvelteKit Design System for Thunderhead web properties.
|
|
|
5
5
|
NPM package available at: https://www.npmjs.com/package/tecitheme
|
|
6
6
|
|
|
7
7
|
See https://tecitheme.netlify.app/ for demo, documentation and component details.
|
|
8
|
+
|
|
9
|
+
## How to update the NPM package
|
|
10
|
+
|
|
11
|
+
This theme system is released on NPM to make it easier to include in all Thunderhead web properties.
|
|
12
|
+
### Authenticate to NPM
|
|
13
|
+
|
|
14
|
+
1. `npm adduser`
|
|
15
|
+
1. Enter username and password for the npm account.
|
|
16
|
+
1. Enter email address
|
|
17
|
+
1. Enter 2FA Code
|
|
18
|
+
|
|
19
|
+
### Update the package version
|
|
20
|
+
|
|
21
|
+
1. Edit package.json with the next version.
|
|
22
|
+
1. Commit and push to origin.
|
|
23
|
+
|
|
24
|
+
### Package the project and publish
|
|
25
|
+
|
|
26
|
+
1. `npm run package`
|
|
27
|
+
1. `cd package`
|
|
28
|
+
1. `npm publish`
|
package/components/CTA.svelte
CHANGED
|
@@ -3,26 +3,24 @@
|
|
|
3
3
|
</script>
|
|
4
4
|
|
|
5
5
|
<!-- This example requires Tailwind CSS v2.0+ -->
|
|
6
|
-
<section class="mb-12">
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
<a href={link.linkURL} class="whitespace-nowrap w-full inline-flex items-center justify-center px-5 py-3 border border-transparent text-base font-medium text-white bg-teci-blue-light hover:bg-teci-blue-dark">{link.linkText}</a>
|
|
23
|
-
</div>
|
|
24
|
-
{/each}
|
|
6
|
+
<section class="mb-12 mx-auto text-center px-4 sm:px-6 lg:px-8">
|
|
7
|
+
{#if data.title}
|
|
8
|
+
<h2 class="{ data.subtitle ? 'mb-4' : 'mb-8'} text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl">
|
|
9
|
+
<span class="block">{data.title}</span>
|
|
10
|
+
</h2>
|
|
11
|
+
{/if}
|
|
12
|
+
{#if data.subtitle}
|
|
13
|
+
<h3 class="mb-8 text-xl font-bold tracking-tight text-teci-blue-dark">
|
|
14
|
+
<span class="block">{data.subtitle}</span>
|
|
15
|
+
</h3>
|
|
16
|
+
{/if}
|
|
17
|
+
{#if data.links}
|
|
18
|
+
<div class="flex flex-col space-x-0 space-y-8 justify-center items-center md:space-x-8 md:space-y-0 md:flex-row md:justify-around">
|
|
19
|
+
{#each data.links as link}
|
|
20
|
+
<div class="inline-flex shadow-sm w-full max-w-xs">
|
|
21
|
+
<a href={link.linkURL} class="btn w-full inline-flex items-center px-5 py-3 text-base">{link.linkText}</a>
|
|
25
22
|
</div>
|
|
26
|
-
{/
|
|
23
|
+
{/each}
|
|
27
24
|
</div>
|
|
25
|
+
{/if}
|
|
28
26
|
</section>
|
package/components/Card.svelte
CHANGED
|
@@ -1,46 +1,65 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
//Allows icons from https://fonts.google.com/icons?selected=Material+Icons by name in the format 'icon-XXXX'.
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
import Icon from './Icon.svelte';
|
|
4
|
+
import Wrap from './Wrap.svelte';
|
|
5
5
|
export let data;
|
|
6
6
|
export let halfHeight;
|
|
7
7
|
</script>
|
|
8
8
|
|
|
9
|
-
<div class="group space-y-
|
|
9
|
+
<div class="group flex flex-col items-stretch space-y-2 border border-gray-100 p-2 hover:border-gray-200 hover:shadow-md" >
|
|
10
10
|
{#if data.image}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
<div style="background-image: url({data.image});"
|
|
12
|
+
class="w-full shrink-0 {halfHeight ? 'aspect-video' : 'aspect-square'} flex items-center justify-center border border-gray-200 bg-cover bg-no-repeat"
|
|
13
|
+
>
|
|
14
|
+
<div class="{halfHeight ? 'space-y-4' : 'space-y-8'} flex h-full w-full flex-col items-center justify-center" >
|
|
15
|
+
{#if data.links}
|
|
16
|
+
{#each data.links as link}
|
|
17
|
+
<a href={link.linkURL} class="btn w-3/4 whitespace-nowrap text-center text-sm" >
|
|
18
|
+
{link.linkText}
|
|
19
|
+
</a>
|
|
20
|
+
{/each}
|
|
21
|
+
{:else}
|
|
22
|
+
<a href={data.cardURL} class="h-full w-full">
|
|
23
|
+
<span>​</span>
|
|
24
|
+
</a>
|
|
25
|
+
{/if}
|
|
26
|
+
</div>
|
|
18
27
|
</div>
|
|
19
|
-
</div>
|
|
20
28
|
{/if}
|
|
21
|
-
<
|
|
22
|
-
<
|
|
23
|
-
|
|
24
|
-
{#if data.icon}
|
|
29
|
+
<a href={data.cardURL}>
|
|
30
|
+
<div class="flex flex-row items-start space-x-2">
|
|
31
|
+
{#if data.icon}
|
|
25
32
|
<div class="grid place-items-center">
|
|
26
33
|
<Icon classes={data.classes} icon={data.icon} />
|
|
27
34
|
</div>
|
|
28
|
-
|
|
29
|
-
|
|
35
|
+
{/if}
|
|
36
|
+
{#if data.heading || data.subheading}
|
|
37
|
+
<div class="flex flex-col font-medium leading-none">
|
|
30
38
|
{#if data.heading}
|
|
31
|
-
|
|
39
|
+
<h3 class="text-2xl leading-none">{data.heading}</h3>
|
|
32
40
|
{/if}
|
|
33
41
|
{#if data.subheading}
|
|
34
|
-
|
|
42
|
+
<p class="leading-6 text-teci-blue-dark">{data.subheading}</p>
|
|
35
43
|
{/if}
|
|
36
44
|
</div>
|
|
37
|
-
</div>
|
|
38
|
-
{#if data.text}
|
|
39
|
-
<div class="text-lg">
|
|
40
|
-
<p class="text-gray-500">{data.text}</p>
|
|
41
|
-
<span class="text-sm font-medium text-teci-blue-light lg:mt-4">{data.cardLinkText}<span aria-hidden="true"> →</span></span>
|
|
42
|
-
</div>
|
|
43
45
|
{/if}
|
|
46
|
+
</div>
|
|
47
|
+
</a>
|
|
48
|
+
{#if data.text}
|
|
49
|
+
<div class="flex w-full flex-1 flex-col">
|
|
50
|
+
{data.text}
|
|
51
|
+
{#if data.cardActionStyle == 'link'}
|
|
52
|
+
<a class="inline-block mt-2 text-sm font-medium text-teci-blue-light" href={data.cardURL}>
|
|
53
|
+
{data.cardLinkText}<span aria-hidden="true"> →</span>
|
|
54
|
+
</a>
|
|
55
|
+
{/if}
|
|
56
|
+
</div>
|
|
57
|
+
{/if}
|
|
58
|
+
{#if data.cardActionStyle == 'button'}
|
|
59
|
+
<a class="block shrink-0" href={data.cardURL}>
|
|
60
|
+
<div class="flex w-full flex-col items-end">
|
|
61
|
+
<span class="btn text-sm">{data.cardLinkText}</span>
|
|
62
|
+
</div>
|
|
44
63
|
</a>
|
|
45
|
-
|
|
46
|
-
</div>
|
|
64
|
+
{/if}
|
|
65
|
+
</div>
|
package/components/Footer.svelte
CHANGED