tecitheme 0.0.14 → 0.0.17

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.
@@ -1,30 +1,28 @@
1
1
  <script>
2
- export let data = {
3
- title: 'Ready to dive in?',
4
- subtitle: 'Start your free trial today.',
5
- links: [
6
- {
7
- linkText: 'Get Started',
8
- linkURL: '/product'
9
- }
10
- ]
11
- }
2
+ export let data;
12
3
  </script>
13
4
 
14
5
  <!-- This example requires Tailwind CSS v2.0+ -->
15
- <section class="bg-white mb-12">
6
+ <section class="mb-12">
16
7
  <div class="mx-auto text-center px-4 sm:px-6 lg:px-8">
17
- <h2 class="text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl">
18
- <span class="block">{data.title}</span>
19
- </h2>
20
- <div class="mt-8 flex justify-center">
21
- {#each data.links as link}
22
- <div class="inline-flex shadow">
23
- <a href={link.linkURL} class="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>
24
- </div>
25
- {:else}
26
- <br>
27
- {/each}
28
- </div>
8
+ {#if data.title}
9
+ <h2 class="{ data.subtitle ? 'mb-4' : 'mb-8'} text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl">
10
+ <span class="block">{data.title}</span>
11
+ </h2>
12
+ {/if}
13
+ {#if data.subtitle}
14
+ <h2 class="mb-8 text-xl font-bold tracking-tight text-teci-blue-dark">
15
+ <span class="block">{data.subtitle}</span>
16
+ </h2>
17
+ {/if}
18
+ {#if data.links}
19
+ <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">
20
+ {#each data.links as link}
21
+ <div class="inline-flex shadow w-full max-w-xs">
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}
25
+ </div>
26
+ {/if}
29
27
  </div>
30
28
  </section>
@@ -2,14 +2,7 @@
2
2
  /** @typedef {typeof __propDef.events} CtaEvents */
3
3
  /** @typedef {typeof __propDef.slots} CtaSlots */
4
4
  export default class Cta extends SvelteComponentTyped<{
5
- data?: {
6
- title: string;
7
- subtitle: string;
8
- links: {
9
- linkText: string;
10
- linkURL: string;
11
- }[];
12
- };
5
+ data: any;
13
6
  }, {
14
7
  [evt: string]: CustomEvent<any>;
15
8
  }, {}> {
@@ -20,14 +13,7 @@ export type CtaSlots = typeof __propDef.slots;
20
13
  import { SvelteComponentTyped } from "svelte";
21
14
  declare const __propDef: {
22
15
  props: {
23
- data?: {
24
- title: string;
25
- subtitle: string;
26
- links: {
27
- linkText: string;
28
- linkURL: string;
29
- }[];
30
- };
16
+ data: any;
31
17
  };
32
18
  events: {
33
19
  [evt: string]: CustomEvent<any>;
@@ -0,0 +1,46 @@
1
+ <script>
2
+ //Allows icons from https://fonts.google.com/icons?selected=Material+Icons by name in the format 'icon-XXXX'.
3
+
4
+ import Icon from './Icon.svelte';
5
+ export let data;
6
+ export let halfHeight;
7
+ </script>
8
+
9
+ <div class="group space-y-4">
10
+ {#if data.image}
11
+ <div class="w-full {halfHeight ? 'aspect-video' : 'aspect-square'} bg-cover bg-no-repeat shadow-md border border-gray-200 flex items-center justify-center"
12
+ style="background-image: url({data.image});"
13
+ >
14
+ <div class="md:group-hover:backdrop-grayscale py-8 flex flex-col w-full h-full justify-center items-center {halfHeight ? 'space-y-4' : 'space-y-8'} transition">
15
+ {#each data.links as link}
16
+ <a href={link.linkURL} class="whitespace-nowrap hidden md:group-hover:block btn w-3/4 text-center">{link.linkText}</a>
17
+ {/each}
18
+ </div>
19
+ </div>
20
+ {/if}
21
+ <div>
22
+ <a href={data.cardURL}>
23
+ <div class="flex flex-row items-start space-x-4 mb-2">
24
+ {#if data.icon}
25
+ <div class="grid place-items-center">
26
+ <Icon classes={data.classes} icon={data.icon} />
27
+ </div>
28
+ {/if}
29
+ <div class="leading-none font-medium flex flex-col">
30
+ {#if data.heading}
31
+ <h3 class="text-2xl leading-none">{data.heading}</h3>
32
+ {/if}
33
+ {#if data.subheading}
34
+ <p class="text-teci-blue-dark leading-6">{data.subheading}</p>
35
+ {/if}
36
+ </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">&nbsp;→</span></span>
42
+ </div>
43
+ {/if}
44
+ </a>
45
+ </div>
46
+ </div>
@@ -0,0 +1,25 @@
1
+ /** @typedef {typeof __propDef.props} CardProps */
2
+ /** @typedef {typeof __propDef.events} CardEvents */
3
+ /** @typedef {typeof __propDef.slots} CardSlots */
4
+ export default class Card extends SvelteComponentTyped<{
5
+ data: any;
6
+ halfHeight: any;
7
+ }, {
8
+ [evt: string]: CustomEvent<any>;
9
+ }, {}> {
10
+ }
11
+ export type CardProps = typeof __propDef.props;
12
+ export type CardEvents = typeof __propDef.events;
13
+ export type CardSlots = typeof __propDef.slots;
14
+ import { SvelteComponentTyped } from "svelte";
15
+ declare const __propDef: {
16
+ props: {
17
+ data: any;
18
+ halfHeight: any;
19
+ };
20
+ events: {
21
+ [evt: string]: CustomEvent<any>;
22
+ };
23
+ slots: {};
24
+ };
25
+ export {};
@@ -6,7 +6,11 @@
6
6
  export let selection = 'sel';
7
7
  export let allowContinue = false;
8
8
 
9
- let modal;
9
+ let modalData = {
10
+ title: '',
11
+ text: '',
12
+ modalContent: "<h2 class='text-lg leading-6 font-medium text-gray-900'>Reseller Required</h2><div class='mt-2 px-7 py-3'><p class='text-sm text-gray-500'>Thunderhead cannot sell to you directly, you must use the authorized reseller for your region.</p></div><div class='items-center px-4 py-3'><a href='https://www.thunderheadeng.com/pyrosim/pyrosim-licensing/#r{resellerIndex+1}' id='ok-btn' class='px-4 py-2 bg-teci-blue-light text-white text-base font-medium w-full shadow-sm hover:bg-teci-blue-dark focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500'>Reseller Contact Information</a></div>"
13
+ };
10
14
  let resellerIndex = -1;
11
15
  let resellerArray = [
12
16
  ["BE", "NL", "LU"],
@@ -136,21 +140,4 @@
136
140
  <option value="VN">Viet Nam</option>
137
141
  </select>
138
142
 
139
- <Modal bind:this={modal}>
140
- <div class="mt-3 text-center">
141
- <h2 class="text-lg leading-6 font-medium text-gray-900">Reseller Required</h2>
142
- <div class="mt-2 px-7 py-3">
143
- <p class="text-sm text-gray-500">
144
- Thunderhead cannot sell to you directly, you must use the authorized reseller for your region.
145
- </p>
146
- </div>
147
- <div class="items-center px-4 py-3">
148
- <a href="https://www.thunderheadeng.com/pyrosim/pyrosim-licensing/#r{resellerIndex+1}"
149
- id="ok-btn"
150
- class="px-4 py-2 bg-teci-blue-light text-white text-base font-medium w-full shadow-sm hover:bg-teci-blue-dark focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"
151
- >
152
- Reseller Contact Information
153
- </a>
154
- </div>
155
- </div>
156
- </Modal>
143
+ <Modal bind:data={modalData} />
@@ -4,9 +4,11 @@
4
4
  export let caption;
5
5
  </script>
6
6
 
7
- <section class="flex justify-center not-prose">
7
+ <section class="flex justify-center not-prose mb-8">
8
8
  <figure class="bg-white w-auto mx-auto shadow-lg border border-slate-100 p-2">
9
- <img class="w-full" src={image} alt={title} title={title}>
9
+ <a href={image}>
10
+ <img class="w-full" src={image} alt={title} title={title}>
11
+ </a>
10
12
  {#if caption}
11
13
  <figcaption class="text-center p-2">{@html caption}</figcaption>
12
14
  {/if}
@@ -0,0 +1,31 @@
1
+ /** @typedef {typeof __propDef.props} HeadingCenteredProps */
2
+ /** @typedef {typeof __propDef.events} HeadingCenteredEvents */
3
+ /** @typedef {typeof __propDef.slots} HeadingCenteredSlots */
4
+ export default class HeadingCentered extends SvelteComponentTyped<{
5
+ data?: {
6
+ toptext: string;
7
+ title: string;
8
+ subtitle: string;
9
+ };
10
+ }, {
11
+ [evt: string]: CustomEvent<any>;
12
+ }, {}> {
13
+ }
14
+ export type HeadingCenteredProps = typeof __propDef.props;
15
+ export type HeadingCenteredEvents = typeof __propDef.events;
16
+ export type HeadingCenteredSlots = typeof __propDef.slots;
17
+ import { SvelteComponentTyped } from "svelte";
18
+ declare const __propDef: {
19
+ props: {
20
+ data?: {
21
+ toptext: string;
22
+ title: string;
23
+ subtitle: string;
24
+ };
25
+ };
26
+ events: {
27
+ [evt: string]: CustomEvent<any>;
28
+ };
29
+ slots: {};
30
+ };
31
+ export {};
@@ -1,12 +1,13 @@
1
1
  <script>
2
- import YT from "./YT.svelte"
2
+ import Video from './Video.svelte'
3
+
3
4
  export let data;
4
5
  </script>
5
6
 
6
7
  <section class="w-full mx-auto flex flex-col md:flex-row items-center justify-center">
7
- {#if data.video}
8
+ {#if data.v}
8
9
  <div class="w-full max-w-xl {data.position === 'right' ? 'mb-4 md:mb-0' : 'mb-0'}">
9
- <YT v={data.video} />
10
+ <Video bind:data />
10
11
  </div>
11
12
  {:else if data.image}
12
13
  <div class="block w-full max-w-xl mb-4 md:mb-0">
@@ -1,31 +1,45 @@
1
1
  <script>
2
- let shown = false;
3
- export function show() {
4
- shown = true;
5
- }
6
- export function hide() {
7
- shown = false;
8
- }
9
- </script>
2
+ export let data;
3
+ let shown = false;
4
+
5
+ function show() {
6
+ shown = true;
7
+ }
8
+ function hide() {
9
+ shown = false;
10
+ }
11
+ </script>
10
12
 
11
- <svelte:window
12
- on:keydown={e => {
13
- if (e.keyCode == 27) {
14
- hide();
15
- }
16
- }} />
17
-
18
- {#if shown}
19
- <div class="fixed inset-0 bg-gray-900 bg-opacity-50 overflow-y-auto h-full w-full">
20
- <div class="relative top-20 mx-auto p-5 border w-96 shadow-lg bg-white">
21
- <button type="button" on:click={hide} class="absolute top-0 right-0 bg-white p-1 mr-2 mt-2 inline-flex items-center justify-center text-teci-blue-light hover:text-white hover:bg-teci-blue-dark focus:outline-none focus:ring-2 focus:ring-inset focus:ring-teci-blue-dark">
22
- <span class="sr-only">Close menu</span>
23
- <!-- Heroicon name: outline/x -->
24
- <svg class="h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true">
25
- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
26
- </svg>
27
- </button>
28
- <slot />
13
+ <svelte:window
14
+ on:keydown={e => {
15
+ if (e.keyCode == 27) {
16
+ hide();
17
+ }
18
+ }} />
19
+
20
+ <div class="prose max-w-none">
21
+ {#if data.title}
22
+ <h2>{data.title}</h2>
23
+ {/if}
24
+ {#if data.text}
25
+ <p>{data.text}</p>
26
+ {/if}
27
+ <button on:click={show} class="btn">{data.buttonText}</button>
28
+ </div>
29
+
30
+ {#if shown}
31
+ <div class="z-50 fixed inset-0 bg-gray-900 bg-opacity-50 overflow-y-auto h-full w-full !mt-0">
32
+ <div class="relative top-20 mx-auto p-5 border w-96 shadow-lg bg-white">
33
+ <button type="button" on:click={hide} class="absolute top-0 right-0 bg-white p-1 mr-2 mt-2 inline-flex items-center justify-center text-teci-blue-light hover:text-white hover:bg-teci-blue-dark focus:outline-none focus:ring-2 focus:ring-inset focus:ring-teci-blue-dark">
34
+ <span class="sr-only">Close menu</span>
35
+ <!-- Heroicon name: outline/x -->
36
+ <svg class="h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true">
37
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
38
+ </svg>
39
+ </button>
40
+ <div class="mt-3 text-center">
41
+ {@html data.modalContent}
29
42
  </div>
30
43
  </div>
31
- {/if}
44
+ </div>
45
+ {/if}
@@ -2,15 +2,10 @@
2
2
  /** @typedef {typeof __propDef.events} ModalEvents */
3
3
  /** @typedef {typeof __propDef.slots} ModalSlots */
4
4
  export default class Modal extends SvelteComponentTyped<{
5
- show?: () => void;
6
- hide?: () => void;
5
+ data: any;
7
6
  }, {
8
7
  [evt: string]: CustomEvent<any>;
9
- }, {
10
- default: {};
11
- }> {
12
- get show(): () => void;
13
- get hide(): () => void;
8
+ }, {}> {
14
9
  }
15
10
  export type ModalProps = typeof __propDef.props;
16
11
  export type ModalEvents = typeof __propDef.events;
@@ -18,14 +13,11 @@ export type ModalSlots = typeof __propDef.slots;
18
13
  import { SvelteComponentTyped } from "svelte";
19
14
  declare const __propDef: {
20
15
  props: {
21
- show?: () => void;
22
- hide?: () => void;
16
+ data: any;
23
17
  };
24
18
  events: {
25
19
  [evt: string]: CustomEvent<any>;
26
20
  };
27
- slots: {
28
- default: {};
29
- };
21
+ slots: {};
30
22
  };
31
23
  export {};
@@ -1,59 +1,35 @@
1
1
  <script>
2
+ import { DateTime } from "luxon";
3
+ import { getContext } from 'svelte';
4
+
2
5
  export let data;
3
- export let posts;
6
+ const posts = getContext('newsPosts');
4
7
  </script>
5
8
 
6
9
  <div class="relative mx-auto w-full divide-y-2 divide-gray-200">
7
- <div>
8
- <h2 class="text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl">
9
- {data.title}
10
- </h2>
11
- <div class="mt-3 sm:mt-4 lg:grid lg:grid-cols-2 lg:items-center lg:gap-5">
10
+ <div class="flex flex-col sm:flex-row justify-between sm:items-end space-y-4 sm:space-y-0">
11
+ <div>
12
+ <h1 class="text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl">{data.title}</h1>
12
13
  <p class="text-xl text-gray-500">{data.subtitle}</p>
13
- <form class="mt-6 flex flex-col sm:flex-row lg:mt-0 lg:justify-end">
14
- <div>
15
- <label for="email-address" class="sr-only">Email address</label>
16
- <input
17
- id="email-address"
18
- name="email-address"
19
- type="email"
20
- autocomplete="email"
21
- required
22
- class="w-full appearance-none border-b-2 border-b-gray-800 bg-white px-4 py-2 text-base text-gray-900 placeholder-gray-500 focus:border-teci-blue-light focus:outline-none focus:ring-teci-blue-light lg:max-w-xs"
23
- placeholder="Enter your email"
24
- />
25
- </div>
26
- <div
27
- class="mt-2 flex w-full flex-shrink-0 shadow-sm sm:mt-0 sm:ml-3 sm:inline-flex sm:w-auto"
28
- >
29
- <button type="button" class="btn">Subscribe</button>
30
- </div>
31
- </form>
14
+ </div>
15
+ <div class="w-32">
16
+ <button class="w-full flex items-center justify-center px-4 py-2 border border-transparent text-base leading-6 font-medium text-white hover:bg-teci-blue-dark bg-teci-blue-light focus:outline-none focus:border-teci-blue-dark transition duration-150 ease-in-out"
17
+ data-token="1cb5a0d7baa67f6265665b6f911f3487" onclick="mjOpenPopin(event, this)"
18
+ >
19
+ Subscribe
20
+ </button>
32
21
  </div>
33
22
  </div>
34
- <div class="mt-6 grid gap-16 pt-10 lg:grid-cols-2 lg:gap-x-5 lg:gap-y-12">
23
+ <div class="mt-6 grid gap-16 pt-10 md:grid-cols-2 lg:grid-cols-3 lg:gap-x-5 lg:gap-y-12">
35
24
  {#each posts as post}
36
- <div>
37
- <p class="text-sm text-gray-500">
38
- <time datetime={post.meta.date}>{post.meta.date}</time>
39
- </p>
40
- <a href={post.path} class="mt-2 block">
41
- <p class="text-xl font-semibold text-gray-900">
42
- {post.meta.title}
43
- </p>
44
- <p class="mt-3 text-base text-gray-500">
45
- {post.meta.summary}
46
- </p>
47
- </a>
48
- <div class="mt-3">
49
- <a
50
- href={post.path}
51
- class="text-base font-semibold text-teci-blue-light hover:text-teci-blue-dark"
52
- >
53
- Read full story
54
- </a>
55
- </div>
25
+ <a class="block h-full" href={post.path}>
26
+ <div class="flex flex-col items-stretch h-full">
27
+ <time class="block mb-1 text-sm text-gray-500" datetime={post.meta.date}>{DateTime.fromISO(post.meta.date).toLocaleString()}</time>
28
+ <p class="mb-2 text-xl font-semibold text-gray-900">{post.meta.title}</p>
29
+ <p class="flex-1 mb-2 text-base text-gray-500">{post.meta.summary}</p>
30
+ <p class="text-sm font-semibold text-teci-blue-light hover:text-teci-blue-dark">Read full article<span aria-hidden="true">&nbsp;→</span></p>
56
31
  </div>
32
+ </a>
57
33
  {/each}
58
34
  </div>
59
35
  </div>
@@ -3,7 +3,6 @@
3
3
  /** @typedef {typeof __propDef.slots} NewsGridSlots */
4
4
  export default class NewsGrid extends SvelteComponentTyped<{
5
5
  data: any;
6
- posts: any;
7
6
  }, {
8
7
  [evt: string]: CustomEvent<any>;
9
8
  }, {}> {
@@ -15,7 +14,6 @@ import { SvelteComponentTyped } from "svelte";
15
14
  declare const __propDef: {
16
15
  props: {
17
16
  data: any;
18
- posts: any;
19
17
  };
20
18
  events: {
21
19
  [evt: string]: CustomEvent<any>;
@@ -1,8 +1,15 @@
1
1
  <script>
2
2
  import { onMount } from "svelte";
3
+ import { buildToC } from "../utils.js";
4
+ import { DateTime } from "luxon";
3
5
 
4
6
  export let data;
7
+ export let title;
8
+ export let date;
9
+ export let lastmod;
5
10
 
11
+ let formattedDate = (date != undefined ? DateTime.fromISO(date).toLocaleString() : undefined)
12
+ let formattedLastModDate = (lastmod != undefined ? DateTime.fromISO(lastmod).toLocaleString() : undefined)
6
13
  let tocOpen = false;
7
14
  let tocBuilt = false;
8
15
  let w;
@@ -14,73 +21,15 @@
14
21
  tocBuilt = buildToC();
15
22
  };
16
23
  });
17
-
18
- function buildToC() {
19
- // Based on https://projectcodeed.blogspot.com/2020/04/an-automatic-table-of-contents.html
20
-
21
- // Get ToC div
22
- let toc = document.getElementById("ToC");
23
-
24
- //Add a header
25
- var tocHeader = document.createElement("a");
26
- tocHeader.classList.add("mb-2", "inline-block", "w-auto", "text-center", "bg-gray-50", "hover:bg-gray-100", "py-1", "px-2", "border")
27
- tocHeader.innerHTML = "<span class='material-icons-outlined text-sm font-bold text-gray-500 align-text-bottom'>vertical_align_top</span>";
28
- tocHeader.setAttribute("href","#top");
29
- tocHeader.setAttribute("title","To Top of Page");
30
- toc.appendChild(tocHeader);
31
-
32
- // Create a list for the ToC entries
33
- let tocList = document.createElement("ul");
34
-
35
- // Find the primary content section
36
- let content = document.getElementById("content")
37
-
38
- // Get the h2 tags - ToC entries
39
- let headers = content.getElementsByTagName("h2");
40
-
41
- if (headers.length == 0) {
42
- console.log("There are not any H2 elements in the document.");
43
- } else {
44
- // For each h2
45
- for (let i = 0; i < headers.length; i++){
46
-
47
- // Get Heading ID
48
- let name = headers[i].id
49
-
50
- // list item for the entry
51
- let tocListItem = document.createElement("li");
52
- tocListItem.classList.add("text-teci-blue-light", "hover:text-teci-blue-dark", "text-sm", "truncate");
53
-
54
- // link for the h2
55
- let tocEntry = document.createElement("a");
56
- tocEntry.setAttribute("href","#"+name);
57
- tocEntry.innerText=headers[i].innerText;
58
-
59
- // add link to list item list
60
- tocListItem.appendChild(tocEntry);
61
-
62
- // add list item to list
63
- tocList.appendChild(tocListItem);
64
- }
65
-
66
- // add list to toc element
67
- toc.appendChild(tocList);
68
-
69
- //Add a footer
70
- //var tocFooter = document.createElement("a");
71
- //tocFooter.classList.add("mt-2", "inline-block", "w-auto", "text-center", "bg-gray-50", "hover:bg-gray-100", "py-1", "px-2", "border")
72
- //tocFooter.innerHTML="<span class='material-icons-outlined text-sm font-bold text-gray-500 align-text-bottom'>vertical_align_bottom</span>";
73
- //tocFooter.setAttribute("href","#bottom");
74
- //tocFooter.setAttribute("title","To Bottom of Page");
75
- //toc.appendChild(tocFooter);
76
-
77
- return true;
78
- }
79
- }
80
24
  </script>
81
25
 
82
- <section bind:clientWidth={w} class="relative mx-auto flex flex-row {(data.toc || data.rightRail) ? 'md:space-x-8' : 'space-x-0'}">
26
+ <section bind:clientWidth={w} class="relative flex flex-row { data.fullWidth ? 'mx-0' : 'mx-auto'} {(data.toc || data.rightRail) ? 'md:space-x-8' : 'space-x-0'}">
27
+
83
28
  <div id="content" class="prose w-full { data.fullWidth ? 'max-w-none' : 'max-w-prose'}">
29
+ <h1>{title}</h1>
30
+ {#if formattedDate}
31
+ <p>Published: {formattedDate}{#if (formattedLastModDate != formattedDate && formattedLastModDate)}, Updated: {formattedLastModDate}{/if}</p>
32
+ {/if}
84
33
  <slot />
85
34
  </div>
86
35
  <aside class="relative w-0 {(data.toc || data.rightRail) ? 'md:w-60' : 'hidden'}">
@@ -88,7 +37,7 @@
88
37
  <div class="sticky top-8 shrink-0 flex flex-col">
89
38
  <button on:click={() => {tocOpen = !tocOpen;}}
90
39
  class="md:hidden absolute -left-10 w-10 h-10 flex items-center justify-center border border-teci-blue-light text-teci-blue-light bg-white
91
- {tocOpen ? 'border-opacity-100 bg-opacity-100 text-opacity-100' : 'border-opacity-20 bg-opacity-20 text-opacity-20'}"
40
+ {tocOpen ? 'border-opacity-100 bg-opacity-100 text-opacity-100' : 'border-opacity-60 bg-opacity-20 text-opacity-60 hover:border-opacity-100 hover:bg-opacity-100 hover:text-opacity-100'}"
92
41
  title="Table of Contents Toggle" alt="Table of Contents Toggle"
93
42
  >
94
43
  <span class="material-icons-outlined">menu_open</span>
@@ -3,6 +3,9 @@
3
3
  /** @typedef {typeof __propDef.slots} SidebarContentSlots */
4
4
  export default class SidebarContent extends SvelteComponentTyped<{
5
5
  data: any;
6
+ title: any;
7
+ date: any;
8
+ lastmod: any;
6
9
  }, {
7
10
  [evt: string]: CustomEvent<any>;
8
11
  }, {
@@ -16,6 +19,9 @@ import { SvelteComponentTyped } from "svelte";
16
19
  declare const __propDef: {
17
20
  props: {
18
21
  data: any;
22
+ title: any;
23
+ date: any;
24
+ lastmod: any;
19
25
  };
20
26
  events: {
21
27
  [evt: string]: CustomEvent<any>;
@@ -1,76 +1,19 @@
1
1
  <script>
2
- //Based on:
3
- //https://tailwindui.com/components/marketing/sections/feature-sections#component-c683653471044e6ffc32739e199dfbf2
4
- //https://tailwindui.com/components/marketing/sections/team-sections#component-0efa5ebc92e2aa72bc2332fcf5578869
5
- //Allows icons from https://fonts.google.com/icons?selected=Material+Icons by name in the format 'icon-XXXX'.
6
-
7
- import Icon from './Icon.svelte';
8
-
9
- export let title = 'A better way to do things.';
10
-
11
- export let data = [
12
- {
13
- icon: 'pyrosim',
14
- classes: 'h-12 w-12',
15
- image: 'https://www.thunderheadeng.com/wp-content/uploads/2013/09/company_pyrosim.jpg',
16
- heading: 'Product 1',
17
- subheading: 'Nutshell',
18
- text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed quis quam ultrices, vestibulum lacus nec, interdum est. Ut.',
19
- linkURL: '/product'
20
- },
21
- {
22
- icon: '',
23
- classes: '',
24
- image: 'https://www.thunderheadeng.com/wp-content/uploads/2013/08/company_pathfinder.png',
25
- heading: 'Product 2',
26
- subheading: 'No Icon',
27
- text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed quis quam ultrices, vestibulum lacus nec, interdum est. Ut.',
28
- linkURL: '/product'
29
- },
30
- {
31
- icon: 'icon-auto_stories',
32
- image: 'https://www.thunderheadeng.com/wp-content/uploads/2013/08/company_petrasim.png',
33
- classes: 'inline-block bg-teci-blue-dark text-white text-4xl text-center align-bottom h-12 w-12 pt-1 px-1',
34
- heading: 'Google Icon, No Subtitle or Text',
35
- subheading: '',
36
- text: '',
37
- linkURL: '/product'
38
- }
39
- ];
2
+ //Based on:
3
+ //https://tailwindui.com/components/marketing/sections/feature-sections#component-c683653471044e6ffc32739e199dfbf2
4
+ //https://tailwindui.com/components/marketing/sections/team-sections#component-0efa5ebc92e2aa72bc2332fcf5578869
5
+ import Card from './Card.svelte';
6
+ export let data;
40
7
  </script>
41
8
 
42
9
  <!-- This example requires Tailwind CSS v2.0+ -->
43
- <div class="w-full mx-auto">
44
- <h2 class="sr-only">{title}</h2>
45
- <dl class="space-y-10 sm:grid sm:grid-cols-2 sm:gap-8 sm:space-y-0 lg:grid-cols-3">
46
- {#each data as col}
47
- <div>
48
- <a href={col.linkURL}>
49
- <div class="space-y-4">
50
- {#if col.image}
51
- <div class="w-full aspect-square bg-slate-100">
52
- <img class="w-full aspect-square object-cover shadow-md border border-gray-200" src={col.image} alt="" />
53
- </div>
54
- {/if}
55
- <div class="flex flex-row items-start space-x-4">
56
- {#if col.icon}
57
- <Icon classes={col.classes} icon={col.icon} />
58
- {/if}
59
- <div class="leading-none font-medium flex flex-col">
60
- <h3 class="text-2xl leading-none">{col.heading}</h3>
61
- {#if col.subheading}
62
- <p class="text-teci-blue-dark leading-6">{col.subheading}</p>
63
- {/if}
64
- </div>
65
- </div>
66
- {#if col.text}
67
- <div class="text-lg">
68
- <p class="text-gray-500">{col.text}</p>
69
- </div>
70
- {/if}
71
- </div>
72
- </a>
73
- </div>
74
- {/each}
75
- </dl>
10
+ <div class="mx-auto w-full">
11
+ {#if data.title}
12
+ <h2 class="sr-only">{data.title}</h2>
13
+ {/if}
14
+ <dl class="space-y-10 sm:grid sm:grid-cols-2 sm:gap-8 sm:space-y-0 md:grid-cols-3">
15
+ {#each data.cards as card}
16
+ <Card bind:data={card} bind:halfHeight={data.halfHeight} />
17
+ {/each}
18
+ </dl>
76
19
  </div>
@@ -2,16 +2,7 @@
2
2
  /** @typedef {typeof __propDef.events} ThreeColumnEvents */
3
3
  /** @typedef {typeof __propDef.slots} ThreeColumnSlots */
4
4
  export default class ThreeColumn extends SvelteComponentTyped<{
5
- data?: {
6
- icon: string;
7
- classes: string;
8
- image: string;
9
- heading: string;
10
- subheading: string;
11
- text: string;
12
- linkURL: string;
13
- }[];
14
- title?: string;
5
+ data: any;
15
6
  }, {
16
7
  [evt: string]: CustomEvent<any>;
17
8
  }, {}> {
@@ -22,16 +13,7 @@ export type ThreeColumnSlots = typeof __propDef.slots;
22
13
  import { SvelteComponentTyped } from "svelte";
23
14
  declare const __propDef: {
24
15
  props: {
25
- data?: {
26
- icon: string;
27
- classes: string;
28
- image: string;
29
- heading: string;
30
- subheading: string;
31
- text: string;
32
- linkURL: string;
33
- }[];
34
- title?: string;
16
+ data: any;
35
17
  };
36
18
  events: {
37
19
  [evt: string]: CustomEvent<any>;
@@ -0,0 +1,26 @@
1
+ <script>
2
+ export let data = {};
3
+ export let v = '';
4
+ let id;
5
+
6
+ if (v) {
7
+ id = v;
8
+ }
9
+ else if (data) {
10
+ id = data.v;
11
+ }
12
+ else {
13
+ id = '';
14
+ }
15
+ </script>
16
+
17
+ <section class="w-full aspect-video border bg-black border-gray-200 shadow-md">
18
+ <iframe
19
+ src="https://www.youtube.com/embed/{id}"
20
+ title="YouTube Video ID {id}"
21
+ class="w-full aspect-video"
22
+ frameborder="0"
23
+ allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
24
+ allowfullscreen>
25
+ </iframe>
26
+ </section>
@@ -0,0 +1,25 @@
1
+ /** @typedef {typeof __propDef.props} VideoProps */
2
+ /** @typedef {typeof __propDef.events} VideoEvents */
3
+ /** @typedef {typeof __propDef.slots} VideoSlots */
4
+ export default class Video extends SvelteComponentTyped<{
5
+ data?: {};
6
+ v?: string;
7
+ }, {
8
+ [evt: string]: CustomEvent<any>;
9
+ }, {}> {
10
+ }
11
+ export type VideoProps = typeof __propDef.props;
12
+ export type VideoEvents = typeof __propDef.events;
13
+ export type VideoSlots = typeof __propDef.slots;
14
+ import { SvelteComponentTyped } from "svelte";
15
+ declare const __propDef: {
16
+ props: {
17
+ data?: {};
18
+ v?: string;
19
+ };
20
+ events: {
21
+ [evt: string]: CustomEvent<any>;
22
+ };
23
+ slots: {};
24
+ };
25
+ export {};
@@ -1,41 +1,45 @@
1
1
  <script>
2
- import SectionHeaderCentered from '../components/SectionHeaderCentered.svelte';
3
- import ThreeColumn from '../components/ThreeColumn.svelte';
4
- import NewsGrid from '../components/NewsGrid.svelte';
5
- import YT from '../components/YT.svelte';
6
- import CTA from '../components/CTA.svelte';
7
- import SidebarContent from '../components/SidebarContent.svelte';
8
- import MediaFeature from '../components/MediaFeature.svelte';
2
+ import CTA from '../components/CTA.svelte';
3
+ import HeadingCentered from '../components/HeadingCentered.svelte';
4
+ import MediaFeature from '../components/MediaFeature.svelte';
5
+ import Modal from '../components/Modal.svelte';
6
+ import NewsGrid from '../components/NewsGrid.svelte';
7
+ import SidebarContent from '../components/SidebarContent.svelte';
8
+ import ThreeColumn from '../components/ThreeColumn.svelte';
9
+ import TrialForm from '../components/TrialForm.svelte';
10
+ import Video from '../components/Video.svelte';
11
+
12
+ let blocks = [
13
+ {ref: "cta-center", component: CTA},
14
+ {ref: "heading-centered", component: HeadingCentered},
15
+ {ref: "media-feature", component: MediaFeature},
16
+ {ref: "modal", component: Modal},
17
+ {ref: "news-grid", component: NewsGrid},
18
+ {ref: "sidebar-content", component: SidebarContent},
19
+ {ref: "three-column", component: ThreeColumn},
20
+ {ref: "trial-form", component: TrialForm},
21
+ {ref: "video", component: Video},
22
+ ]
9
23
 
10
- export let title
11
- export let page_sections
12
- export let posts
24
+ export let title;
25
+ export let date;
26
+ export let lastmod;
27
+ export let summary;
28
+ export let layout;
29
+ export let page_sections;
13
30
  </script>
14
31
 
15
32
  <svelte:head>
16
33
  <title>{title} | Thunderhead Engineering</title>
34
+ <meta name="description" content={summary}>
17
35
  </svelte:head>
18
36
 
19
- <article class="flex flex-col space-y-12">
20
- {#each page_sections as section}
21
- {#if section.fieldGroup == "heading-centered"}
22
- <SectionHeaderCentered bind:data={section} />
23
- {:else if section.fieldGroup == "three-column"}
24
- <ThreeColumn bind:data={section.cards} />
25
- {:else if section.fieldGroup == "news-grid"}
26
- <NewsGrid bind:data={section} bind:posts={posts} />
27
- {:else if section.fieldGroup == "video"}
28
- <YT bind:v={section.v} />
29
- {:else if section.fieldGroup == "cta-center"}
30
- <CTA bind:data={section} />
31
- {:else if section.fieldGroup == "sidebar-content"}
32
- <SidebarContent bind:data={section}>
33
- <slot/>
34
- </SidebarContent>
35
- {:else if section.fieldGroup == "media-feature"}
36
- <MediaFeature bind:data={section} />
37
- {:else if section.fieldGroup == "content"}
38
- <div class="content prose"><slot/></div>
39
- {/if}
40
- {/each}
37
+ <article class="flex flex-col space-y-12 {layout}">
38
+ {#each page_sections as section}
39
+ {#if (section) && (section.fieldGroup === "sidebar-content")}
40
+ <svelte:component this={blocks.find(obj=>obj.ref===section.fieldGroup).component} bind:data={section} {title} {date} {lastmod}><slot/></svelte:component>
41
+ {:else if (section) && (section.fieldGroup != "sidebar-content")}
42
+ <svelte:component this={blocks.find(obj=>obj.ref===section.fieldGroup).component} bind:data={section} />
43
+ {/if}
44
+ {/each}
41
45
  </article>
@@ -3,8 +3,11 @@
3
3
  /** @typedef {typeof __propDef.slots} BlocksSlots */
4
4
  export default class Blocks extends SvelteComponentTyped<{
5
5
  title: any;
6
+ date: any;
7
+ lastmod: any;
8
+ summary: any;
9
+ layout: any;
6
10
  page_sections: any;
7
- posts: any;
8
11
  }, {
9
12
  [evt: string]: CustomEvent<any>;
10
13
  }, {
@@ -18,8 +21,11 @@ import { SvelteComponentTyped } from "svelte";
18
21
  declare const __propDef: {
19
22
  props: {
20
23
  title: any;
24
+ date: any;
25
+ lastmod: any;
26
+ summary: any;
27
+ layout: any;
21
28
  page_sections: any;
22
- posts: any;
23
29
  };
24
30
  events: {
25
31
  [evt: string]: CustomEvent<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tecitheme",
3
- "version": "0.0.14",
3
+ "version": "0.0.17",
4
4
  "svelte": true,
5
5
  "devDependencies": {
6
6
  "@jsdevtools/rehype-toc": "^3.0.2",
@@ -9,39 +9,41 @@
9
9
  "@sveltejs/kit": "next",
10
10
  "@tailwindcss/forms": "^0.5.0",
11
11
  "@tailwindcss/typography": "^0.5.2",
12
- "@types/cookie": "^0.4.1",
13
- "@typescript-eslint/eslint-plugin": "^4.31.1",
14
- "@typescript-eslint/parser": "^4.31.1",
15
- "autoprefixer": "^10.4.2",
12
+ "@types/cookie": "^0.5.0",
13
+ "@typescript-eslint/eslint-plugin": "^5.19.0",
14
+ "@typescript-eslint/parser": "^5.19.0",
15
+ "autoprefixer": "^10.4.4",
16
16
  "dotenv": "^16.0.0",
17
17
  "encoding": "^0.1.13",
18
- "eslint": "^7.32.0",
19
- "eslint-config-prettier": "^8.3.0",
20
- "eslint-plugin-svelte3": "^3.4.0",
18
+ "eslint": "^8.13.0",
19
+ "eslint-config-prettier": "^8.5.0",
20
+ "eslint-plugin-svelte3": "^3.4.1",
21
+ "luxon": "^2.3.1",
21
22
  "mdsvex": "^0.10.5",
22
- "postcss": "^8.4.6",
23
- "prettier": "^2.5.1",
24
- "prettier-plugin-tailwindcss": "^0.1.7",
23
+ "postcss": "^8.4.12",
24
+ "prettier": "^2.6.2",
25
+ "prettier-plugin-tailwindcss": "^0.1.9",
25
26
  "rehype-parse": "^8.0.4",
26
27
  "rehype-slug": "^5.0.1",
27
28
  "rehype-stringify": "^9.0.3",
28
29
  "stream": "^0.0.2",
29
- "svelte": "^3.46.4",
30
- "svelte-check": "^2.4.3",
30
+ "svelte": "^3.47.0",
31
+ "svelte-check": "^2.7.0",
31
32
  "svelte-cubed": "^0.2.1",
32
- "svelte-preprocess": "^4.10.4",
33
- "svelte2tsx": "^0.5.3",
34
- "tailwindcss": "^3.0.23",
35
- "three": "^0.137.5",
33
+ "svelte-preprocess": "^4.10.6",
34
+ "svelte2tsx": "^0.5.9",
35
+ "tailwindcss": "^3.0.24",
36
+ "three": "^0.139.2",
36
37
  "tslib": "^2.3.1",
37
- "typescript": "^4.5.5",
38
- "vite": "^2.8.3"
38
+ "typescript": "^4.6.3",
39
+ "vite": "^2.9.5",
40
+ "vite-plugin-autoimport": "^1.6.3"
39
41
  },
40
42
  "type": "module",
41
43
  "dependencies": {
42
44
  "@lukeed/uuid": "^2.0.0",
43
- "cookie": "^0.4.2",
44
- "katex": "^0.15.2"
45
+ "cookie": "^0.5.0",
46
+ "katex": "^0.15.3"
45
47
  },
46
48
  "exports": {
47
49
  "./package.json": "./package.json",
@@ -49,22 +51,22 @@
49
51
  "./components/Banner.svelte": "./components/Banner.svelte",
50
52
  "./components/Button.svelte": "./components/Button.svelte",
51
53
  "./components/CTA.svelte": "./components/CTA.svelte",
54
+ "./components/Card.svelte": "./components/Card.svelte",
52
55
  "./components/CountrySelector.svelte": "./components/CountrySelector.svelte",
53
56
  "./components/Figure.svelte": "./components/Figure.svelte",
54
57
  "./components/Footer.svelte": "./components/Footer.svelte",
55
58
  "./components/Header.svelte": "./components/Header.svelte",
59
+ "./components/HeadingCentered.svelte": "./components/HeadingCentered.svelte",
56
60
  "./components/Icon.svelte": "./components/Icon.svelte",
57
61
  "./components/Math.svelte": "./components/Math.svelte",
58
62
  "./components/MediaFeature.svelte": "./components/MediaFeature.svelte",
59
63
  "./components/Modal.svelte": "./components/Modal.svelte",
60
64
  "./components/NewsGrid.svelte": "./components/NewsGrid.svelte",
61
- "./components/SectionHeaderCentered.svelte": "./components/SectionHeaderCentered.svelte",
62
65
  "./components/SidebarContent.svelte": "./components/SidebarContent.svelte",
63
66
  "./components/ThreeColumn.svelte": "./components/ThreeColumn.svelte",
64
67
  "./components/TrialForm.svelte": "./components/TrialForm.svelte",
65
- "./components/YT.svelte": "./components/YT.svelte",
68
+ "./components/Video.svelte": "./components/Video.svelte",
66
69
  "./layouts/blocks.svelte": "./layouts/blocks.svelte",
67
- "./layouts/news.svelte": "./layouts/news.svelte",
68
70
  "./req_utils": "./req_utils.js",
69
71
  "./utils": "./utils.js",
70
72
  "./variables": "./variables.js"
package/utils.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export function scrollTo(anchor: any): void;
2
2
  export function validateEmail(email: any): boolean;
3
+ export function buildToC(): boolean;
3
4
  export function slugFromPath(path: any): any;
package/utils.js CHANGED
@@ -9,4 +9,67 @@ export function validateEmail(email) {
9
9
  return re.test(String(email).toLowerCase());
10
10
  }
11
11
 
12
- export const slugFromPath = (path) => path.match(/([\w-]+)\.(svelte\.md|md|svx)/i)?.[1] ?? null;
12
+ export const slugFromPath = (path) => path.match(/([\w-]+)\.(svelte\.md|md|svx)/i)?.[1] ?? null;
13
+
14
+ export function buildToC() {
15
+ // Based on https://projectcodeed.blogspot.com/2020/04/an-automatic-table-of-contents.html
16
+
17
+ // Get ToC div
18
+ let toc = document.getElementById("ToC");
19
+
20
+ //Add a header
21
+ var tocHeader = document.createElement("a");
22
+ tocHeader.classList.add("mb-2", "inline-block", "w-auto", "text-center", "bg-gray-50", "hover:bg-gray-100", "py-1", "px-2", "border")
23
+ tocHeader.innerHTML = "<span class='material-icons-outlined text-sm font-bold text-gray-500 align-text-bottom'>vertical_align_top</span>";
24
+ tocHeader.setAttribute("href","#top");
25
+ tocHeader.setAttribute("title","To Top of Page");
26
+ toc.appendChild(tocHeader);
27
+
28
+ // Create a list for the ToC entries
29
+ let tocList = document.createElement("ul");
30
+
31
+ // Find the primary content section
32
+ let content = document.getElementById("content")
33
+
34
+ // Get the h2 tags - ToC entries
35
+ let headers = content.getElementsByTagName("h2");
36
+
37
+ if (headers.length == 0) {
38
+ console.log("There are not any H2 elements in the document.");
39
+ } else {
40
+ // For each h2
41
+ for (let i = 0; i < headers.length; i++){
42
+
43
+ // Get Heading ID
44
+ let name = headers[i].id
45
+
46
+ // list item for the entry
47
+ let tocListItem = document.createElement("li");
48
+ tocListItem.classList.add("text-teci-blue-light", "hover:text-teci-blue-dark", "text-sm", "truncate");
49
+
50
+ // link for the h2
51
+ let tocEntry = document.createElement("a");
52
+ tocEntry.setAttribute("href","#"+name);
53
+ tocEntry.innerText=headers[i].innerText;
54
+
55
+ // add link to list item list
56
+ tocListItem.appendChild(tocEntry);
57
+
58
+ // add list item to list
59
+ tocList.appendChild(tocListItem);
60
+ }
61
+
62
+ // add list to toc element
63
+ toc.appendChild(tocList);
64
+
65
+ //Add a footer
66
+ //var tocFooter = document.createElement("a");
67
+ //tocFooter.classList.add("mt-2", "inline-block", "w-auto", "text-center", "bg-gray-50", "hover:bg-gray-100", "py-1", "px-2", "border")
68
+ //tocFooter.innerHTML="<span class='material-icons-outlined text-sm font-bold text-gray-500 align-text-bottom'>vertical_align_bottom</span>";
69
+ //tocFooter.setAttribute("href","#bottom");
70
+ //tocFooter.setAttribute("title","To Bottom of Page");
71
+ //toc.appendChild(tocFooter);
72
+
73
+ return true;
74
+ }
75
+ }
@@ -1,31 +0,0 @@
1
- /** @typedef {typeof __propDef.props} SectionHeaderCenteredProps */
2
- /** @typedef {typeof __propDef.events} SectionHeaderCenteredEvents */
3
- /** @typedef {typeof __propDef.slots} SectionHeaderCenteredSlots */
4
- export default class SectionHeaderCentered extends SvelteComponentTyped<{
5
- data?: {
6
- toptext: string;
7
- title: string;
8
- subtitle: string;
9
- };
10
- }, {
11
- [evt: string]: CustomEvent<any>;
12
- }, {}> {
13
- }
14
- export type SectionHeaderCenteredProps = typeof __propDef.props;
15
- export type SectionHeaderCenteredEvents = typeof __propDef.events;
16
- export type SectionHeaderCenteredSlots = typeof __propDef.slots;
17
- import { SvelteComponentTyped } from "svelte";
18
- declare const __propDef: {
19
- props: {
20
- data?: {
21
- toptext: string;
22
- title: string;
23
- subtitle: string;
24
- };
25
- };
26
- events: {
27
- [evt: string]: CustomEvent<any>;
28
- };
29
- slots: {};
30
- };
31
- export {};
@@ -1,14 +0,0 @@
1
- <script>
2
- export let v
3
- </script>
4
-
5
- <section class="w-full aspect-video border bg-black border-gray-200 shadow-md">
6
- <iframe
7
- src="https://www.youtube-nocookie.com/embed/{v}?rel=0&modestbranding=1"
8
- title="YouTube Video ID {v}"
9
- class="w-full aspect-video"
10
- frameborder="0"
11
- allow="accelerometer; clipboard-write; encrypted-media; gyroscope"
12
- allowfullscreen
13
- />
14
- </section>
@@ -1,23 +0,0 @@
1
- /** @typedef {typeof __propDef.props} YtProps */
2
- /** @typedef {typeof __propDef.events} YtEvents */
3
- /** @typedef {typeof __propDef.slots} YtSlots */
4
- export default class Yt extends SvelteComponentTyped<{
5
- v: any;
6
- }, {
7
- [evt: string]: CustomEvent<any>;
8
- }, {}> {
9
- }
10
- export type YtProps = typeof __propDef.props;
11
- export type YtEvents = typeof __propDef.events;
12
- export type YtSlots = typeof __propDef.slots;
13
- import { SvelteComponentTyped } from "svelte";
14
- declare const __propDef: {
15
- props: {
16
- v: any;
17
- };
18
- events: {
19
- [evt: string]: CustomEvent<any>;
20
- };
21
- slots: {};
22
- };
23
- export {};
@@ -1,14 +0,0 @@
1
- <script>
2
- export let title;
3
- export let date;
4
- </script>
5
-
6
- <svelte:head>
7
- <title>{title} | Thunderhead Engineering</title>
8
- </svelte:head>
9
-
10
- <div class="prose lg:prose-lg">
11
- <h1>{title}</h1>
12
- <p>Published on {date}</p>
13
- <slot/>
14
- </div>
@@ -1,29 +0,0 @@
1
- /** @typedef {typeof __propDef.props} NewsProps */
2
- /** @typedef {typeof __propDef.events} NewsEvents */
3
- /** @typedef {typeof __propDef.slots} NewsSlots */
4
- export default class News extends SvelteComponentTyped<{
5
- title: any;
6
- date: any;
7
- }, {
8
- [evt: string]: CustomEvent<any>;
9
- }, {
10
- default: {};
11
- }> {
12
- }
13
- export type NewsProps = typeof __propDef.props;
14
- export type NewsEvents = typeof __propDef.events;
15
- export type NewsSlots = typeof __propDef.slots;
16
- import { SvelteComponentTyped } from "svelte";
17
- declare const __propDef: {
18
- props: {
19
- title: any;
20
- date: any;
21
- };
22
- events: {
23
- [evt: string]: CustomEvent<any>;
24
- };
25
- slots: {
26
- default: {};
27
- };
28
- };
29
- export {};