tecitheme 0.2.1 → 0.2.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.
@@ -1,191 +1,306 @@
1
1
  <script>
2
- import { page } from '$app/stores';
3
- export const token = $page.data.token
4
- export let login = false;
5
-
6
- let d = new Date();
7
-
8
- async function signOut() {
9
- const response = await fetch('/auth/logout', {
10
- method: 'GET',
11
- headers: {
12
- 'content-type': 'application/json'
13
- }
14
- })
15
- if (response.ok) {
16
- visibleProfile = !visibleProfile;
17
- window.location.href = '/'
18
- } else {
19
- alert(await response.text())
20
- }
2
+ import { page } from "$app/stores";
3
+ export const token = $page.data.token;
4
+ export let login = false;
5
+
6
+ let d = new Date();
7
+
8
+ async function signOut() {
9
+ const response = await fetch("/auth/logout", {
10
+ method: "GET",
11
+ headers: {
12
+ "content-type": "application/json",
13
+ },
14
+ });
15
+ if (response.ok) {
16
+ visibleProfile = !visibleProfile;
17
+ window.location.href = "/";
18
+ } else {
19
+ alert(await response.text());
21
20
  }
22
- </script>
23
-
24
- <footer id="bottom" class="bg-gray-800" aria-labelledby="footerHeading">
25
- <h2 id="footerHeading" class="sr-only">Footer</h2>
26
- <div class="max-w-7xl mx-auto py-12 px-4 sm:px-6 lg:py-16 lg:px-8">
27
- <div class="xl:grid xl:grid-cols-3 xl:gap-8">
28
- <div class="grid grid-cols-2 gap-8 xl:col-span-2">
29
- <div class="md:grid md:grid-cols-2 md:gap-8">
30
- <div>
31
- <h3 class="text-sm font-semibold text-gray-500 tracking-wider uppercase">
32
- Products
33
- </h3>
34
- <ul class="mt-4 space-y-4">
35
- <li>
36
- <a href="https://www.thunderheadeng.com/pyrosim/" class="text-base text-gray-300 hover:text-white">
37
- PyroSim
38
- </a>
39
- </li>
40
- <li>
41
- <a href="https://www.thunderheadeng.com/pathfinder/" class="text-base text-gray-300 hover:text-white">
42
- Pathfinder
43
- </a>
44
- </li>
45
- <li>
46
- <a href="https://www.thunderheadeng.com/petrasim/" class="text-base text-gray-300 hover:text-white">
47
- PetraSim
48
- </a>
49
- </li>
50
- <li>
51
- <a href="https://www.thunderheadeng.com/other" class="text-base text-gray-300 hover:text-white">
52
- Other Tools
53
- </a>
54
- </li>
55
- </ul>
56
- </div>
57
- <div class="mt-12 md:mt-0">
58
- <h3 class="text-sm font-semibold text-gray-500 tracking-wider uppercase">
59
- Support
60
- </h3>
61
- <ul class="mt-4 space-y-4">
62
- <li>
63
- <a href="https://support.thunderheadeng.com/docs/" class="text-base text-gray-300 hover:text-white">
64
- Documentation
65
- </a>
66
- </li>
67
- <li>
68
- <a href="https://support.thunderheadeng.com/tutorials/" class="text-base text-gray-300 hover:text-white">
69
- Tutorials
70
- </a>
71
- </li>
72
- <li>
73
- <a href="https://support.thunderheadeng.com/release-notes/" class="text-base text-gray-300 hover:text-white">
74
- Release Notes
75
- </a>
76
- </li>
77
- <li>
78
- <a href="https://support.thunderheadeng.com/answers/" class="text-base text-gray-300 hover:text-white">
79
- FAQs
80
- </a>
81
- </li>
82
- </ul>
83
- </div>
21
+ }
22
+ </script>
23
+
24
+ <footer id="bottom" class="bg-gray-800" aria-labelledby="footerHeading">
25
+ <h2 id="footerHeading" class="sr-only">Footer</h2>
26
+ <div class="mx-auto max-w-7xl py-12 px-4 sm:px-6 lg:py-16 lg:px-8">
27
+ <div class="xl:grid xl:grid-cols-3 xl:gap-8">
28
+ <div class="grid grid-cols-2 gap-8 xl:col-span-2">
29
+ <div class="md:grid md:grid-cols-2 md:gap-8">
30
+ <div>
31
+ <h3
32
+ class="text-sm font-semibold uppercase tracking-wider text-gray-500"
33
+ >
34
+ Products
35
+ </h3>
36
+ <ul class="mt-4 space-y-4">
37
+ <li>
38
+ <a
39
+ href="https://www.thunderheadeng.com/pyrosim/"
40
+ class="text-base text-gray-300 hover:text-white"
41
+ >
42
+ PyroSim
43
+ </a>
44
+ </li>
45
+ <li>
46
+ <a
47
+ href="https://www.thunderheadeng.com/pathfinder/"
48
+ class="text-base text-gray-300 hover:text-white"
49
+ >
50
+ Pathfinder
51
+ </a>
52
+ </li>
53
+ <li>
54
+ <a
55
+ href="https://www.thunderheadeng.com/petrasim/"
56
+ class="text-base text-gray-300 hover:text-white"
57
+ >
58
+ PetraSim
59
+ </a>
60
+ </li>
61
+ <li>
62
+ <a
63
+ href="https://www.thunderheadeng.com/other"
64
+ class="text-base text-gray-300 hover:text-white"
65
+ >
66
+ Other Tools
67
+ </a>
68
+ </li>
69
+ </ul>
84
70
  </div>
85
- <div class="md:grid md:grid-cols-2 md:gap-8">
86
- <div>
87
- <h3 class="text-sm font-semibold text-gray-500 tracking-wider uppercase">
88
- Events
89
- </h3>
90
- <ul class="mt-4 space-y-4">
91
- <li>
92
- <a href="https://www.thunderheadeng.com/training/" class="text-base text-gray-300 hover:text-white">
93
- Calendar
94
- </a>
95
- </li>
96
- <li>
97
- <a href="https://www.femtc.com/" class="text-base text-gray-300 hover:text-white">
98
- FEMTC
99
- </a>
100
- </li>
101
- <li>
102
- <a href="https://www.thunderheadeng.com/training/" class="text-base text-gray-300 hover:text-white">
103
- Training
104
- </a>
105
- </li>
106
- </ul>
107
- </div>
108
- <div class="mt-12 md:mt-0">
109
- <h3 class="text-sm font-semibold text-gray-500 tracking-wider uppercase">
110
- Company
111
- </h3>
112
- <ul class="mt-4 space-y-4">
113
- <li>
114
- <a href="https://www.thunderheadeng.com/about/" class="text-base text-gray-300 hover:text-white">
115
- About
116
- </a>
117
- </li>
118
- <li>
119
- <a href="https://www.thunderheadeng.com/news/" class="text-base text-gray-300 hover:text-white">
120
- News
121
- </a>
122
- </li>
123
- <li>
124
- <a href="https://www.thunderheadeng.com/job-openings/" class="text-base text-gray-300 hover:text-white">
125
- Jobs
126
- </a>
127
- </li>
128
- <li>
129
- <a href="https://www.thunderheadeng.com/partners" class="text-base text-gray-300 hover:text-white">
130
- Partners
131
- </a>
132
- </li>
133
- </ul>
134
- </div>
71
+ <div class="mt-12 md:mt-0">
72
+ <h3
73
+ class="text-sm font-semibold uppercase tracking-wider text-gray-500"
74
+ >
75
+ Support
76
+ </h3>
77
+ <ul class="mt-4 space-y-4">
78
+ <li>
79
+ <a
80
+ href="https://support.thunderheadeng.com/docs/"
81
+ class="text-base text-gray-300 hover:text-white"
82
+ >
83
+ Documentation
84
+ </a>
85
+ </li>
86
+ <li>
87
+ <a
88
+ href="https://support.thunderheadeng.com/tutorials/"
89
+ class="text-base text-gray-300 hover:text-white"
90
+ >
91
+ Tutorials
92
+ </a>
93
+ </li>
94
+ <li>
95
+ <a
96
+ href="https://support.thunderheadeng.com/release-notes/"
97
+ class="text-base text-gray-300 hover:text-white"
98
+ >
99
+ Release Notes
100
+ </a>
101
+ </li>
102
+ <li>
103
+ <a
104
+ href="https://support.thunderheadeng.com/answers/"
105
+ class="text-base text-gray-300 hover:text-white"
106
+ >
107
+ FAQs
108
+ </a>
109
+ </li>
110
+ </ul>
135
111
  </div>
136
112
  </div>
137
- <div class="mt-8 xl:mt-0 flex flex-col justify-between md:items-end">
138
- <h3 class="text-right text-sm font-semibold text-gray-500 tracking-wider uppercase">
139
- Subscribe to Updates
140
- </h3>
141
- <p class="text-right mt-4 text-gray-300 text-base xxl:text-lg leading-6">
142
- Receive information about new software releases, tutorials and major announcements.
143
- </p>
144
- <data id="mj-w-res-data" data-token="c59142d82197a4f86bc30e8fa80e1ea8" class="mj-w-data" data-apikey="3aOX"
145
- data-w-id="Fbu" data-lang="en_US" data-base="https://app.mailjet.com" data-width="640" data-height="480"
146
- data-statics="statics"></data>
147
- <div class="mj-w-button mj-w-btn mt-4 w-full md:max-w-xs" data-token="c59142d82197a4f86bc30e8fa80e1ea8">
148
- <div class="mj-w-button-content 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">
149
- Sign Up
150
- </div>
113
+ <div class="md:grid md:grid-cols-2 md:gap-8">
114
+ <div>
115
+ <h3
116
+ class="text-sm font-semibold uppercase tracking-wider text-gray-500"
117
+ >
118
+ Events
119
+ </h3>
120
+ <ul class="mt-4 space-y-4">
121
+ <li>
122
+ <a
123
+ href="https://www.thunderheadeng.com/training/"
124
+ class="text-base text-gray-300 hover:text-white"
125
+ >
126
+ Calendar
127
+ </a>
128
+ </li>
129
+ <li>
130
+ <a
131
+ href="https://www.femtc.com/"
132
+ class="text-base text-gray-300 hover:text-white"
133
+ >
134
+ FEMTC
135
+ </a>
136
+ </li>
137
+ <li>
138
+ <a
139
+ href="https://www.thunderheadeng.com/training/"
140
+ class="text-base text-gray-300 hover:text-white"
141
+ >
142
+ Training
143
+ </a>
144
+ </li>
145
+ </ul>
146
+ </div>
147
+ <div class="mt-12 md:mt-0">
148
+ <h3
149
+ class="text-sm font-semibold uppercase tracking-wider text-gray-500"
150
+ >
151
+ Company
152
+ </h3>
153
+ <ul class="mt-4 space-y-4">
154
+ <li>
155
+ <a
156
+ href="https://www.thunderheadeng.com/about/"
157
+ class="text-base text-gray-300 hover:text-white"
158
+ >
159
+ About
160
+ </a>
161
+ </li>
162
+ <li>
163
+ <a
164
+ href="https://www.thunderheadeng.com/news/"
165
+ class="text-base text-gray-300 hover:text-white"
166
+ >
167
+ News
168
+ </a>
169
+ </li>
170
+ <li>
171
+ <a
172
+ href="https://www.thunderheadeng.com/job-openings/"
173
+ class="text-base text-gray-300 hover:text-white"
174
+ >
175
+ Jobs
176
+ </a>
177
+ </li>
178
+ <li>
179
+ <a
180
+ href="https://www.thunderheadeng.com/partners"
181
+ class="text-base text-gray-300 hover:text-white"
182
+ >
183
+ Partners
184
+ </a>
185
+ </li>
186
+ </ul>
151
187
  </div>
152
188
  </div>
153
189
  </div>
154
- <div class="mt-8 border-t border-gray-700 pt-8 md:flex md:items-center md:justify-between">
155
- <div class="flex space-x-6 md:order-3">
156
- <a href="https://www.linkedin.com/company/thunderheadeng" class="text-gray-400 hover:text-gray-300">
157
- <span class="sr-only">LinkedIn</span>
158
- <svg class="h-6 w-6" fill="currentColor" viewBox="0 0 24 24" aria-hidden="true">
159
- <path fill-rule="evenodd" d="M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z"/>
160
- </svg>
161
- </a>
162
-
163
- <a href="https://www.facebook.com/thunderheadeng" class="text-gray-400 hover:text-gray-300">
164
- <span class="sr-only">Facebook</span>
165
- <svg class="h-6 w-6" fill="currentColor" viewBox="0 0 24 24" aria-hidden="true">
166
- <path fill-rule="evenodd" d="M22 12c0-5.523-4.477-10-10-10S2 6.477 2 12c0 4.991 3.657 9.128 8.438 9.878v-6.987h-2.54V12h2.54V9.797c0-2.506 1.492-3.89 3.777-3.89 1.094 0 2.238.195 2.238.195v2.46h-1.26c-1.243 0-1.63.771-1.63 1.562V12h2.773l-.443 2.89h-2.33v6.988C18.343 21.128 22 16.991 22 12z" clip-rule="evenodd" />
167
- </svg>
168
- </a>
169
-
170
- <a href="https://twitter.com/thunderheadeng" class="text-gray-400 hover:text-gray-300">
171
- <span class="sr-only">Twitter</span>
172
- <svg class="h-6 w-6" fill="currentColor" viewBox="0 0 24 24" aria-hidden="true">
173
- <path d="M8.29 20.251c7.547 0 11.675-6.253 11.675-11.675 0-.178 0-.355-.012-.53A8.348 8.348 0 0022 5.92a8.19 8.19 0 01-2.357.646 4.118 4.118 0 001.804-2.27 8.224 8.224 0 01-2.605.996 4.107 4.107 0 00-6.993 3.743 11.65 11.65 0 01-8.457-4.287 4.106 4.106 0 001.27 5.477A4.072 4.072 0 012.8 9.713v.052a4.105 4.105 0 003.292 4.022 4.095 4.095 0 01-1.853.07 4.108 4.108 0 003.834 2.85A8.233 8.233 0 012 18.407a11.616 11.616 0 006.29 1.84" />
174
- </svg>
175
- </a>
176
- </div>
177
- <p class="mt-8 text-sm text-gray-500 md:mt-0 md:order-1">
178
- &copy; 1998 - { d.getFullYear() } Thunderhead Engineering, All rights reserved.
190
+ <div class="mt-8 flex flex-col justify-between md:items-end xl:mt-0">
191
+ <h3
192
+ class="text-right text-sm font-semibold uppercase tracking-wider text-gray-500"
193
+ >
194
+ Subscribe to Updates
195
+ </h3>
196
+ <p
197
+ class="xxl:text-lg mt-4 text-right text-base leading-6 text-gray-300"
198
+ >
199
+ Receive information about new software releases, tutorials and major
200
+ announcements.
179
201
  </p>
180
- {#if login}
181
- <div class="mt-4 md:mt-0 md:order-2">
202
+ <data
203
+ id="mj-w-res-data"
204
+ data-token="c59142d82197a4f86bc30e8fa80e1ea8"
205
+ class="mj-w-data"
206
+ data-apikey="3aOX"
207
+ data-w-id="Fbu"
208
+ data-lang="en_US"
209
+ data-base="https://app.mailjet.com"
210
+ data-width="640"
211
+ data-height="480"
212
+ data-statics="statics"
213
+ />
214
+ <div
215
+ class="mj-w-button mj-w-btn mt-4 w-full md:max-w-xs"
216
+ data-token="c59142d82197a4f86bc30e8fa80e1ea8"
217
+ >
218
+ <div
219
+ class="mj-w-button-content 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"
220
+ >
221
+ Sign Up
222
+ </div>
223
+ </div>
224
+ </div>
225
+ </div>
226
+ <div
227
+ class="mt-8 border-t border-gray-700 pt-8 md:flex md:items-center md:justify-between"
228
+ >
229
+ <div class="flex space-x-6 md:order-3">
230
+ <a
231
+ href="https://www.linkedin.com/company/thunderheadeng"
232
+ class="text-gray-400 hover:text-gray-300"
233
+ >
234
+ <span class="sr-only">LinkedIn</span>
235
+ <svg
236
+ class="h-6 w-6"
237
+ fill="currentColor"
238
+ viewBox="0 0 24 24"
239
+ aria-hidden="true"
240
+ >
241
+ <path
242
+ fill-rule="evenodd"
243
+ d="M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z"
244
+ />
245
+ </svg>
246
+ </a>
247
+
248
+ <a
249
+ href="https://www.facebook.com/thunderheadeng"
250
+ class="text-gray-400 hover:text-gray-300"
251
+ >
252
+ <span class="sr-only">Facebook</span>
253
+ <svg
254
+ class="h-6 w-6"
255
+ fill="currentColor"
256
+ viewBox="0 0 24 24"
257
+ aria-hidden="true"
258
+ >
259
+ <path
260
+ fill-rule="evenodd"
261
+ d="M22 12c0-5.523-4.477-10-10-10S2 6.477 2 12c0 4.991 3.657 9.128 8.438 9.878v-6.987h-2.54V12h2.54V9.797c0-2.506 1.492-3.89 3.777-3.89 1.094 0 2.238.195 2.238.195v2.46h-1.26c-1.243 0-1.63.771-1.63 1.562V12h2.773l-.443 2.89h-2.33v6.988C18.343 21.128 22 16.991 22 12z"
262
+ clip-rule="evenodd"
263
+ />
264
+ </svg>
265
+ </a>
266
+
267
+ <a
268
+ href="https://twitter.com/thunderheadeng"
269
+ class="text-gray-400 hover:text-gray-300"
270
+ >
271
+ <span class="sr-only">Twitter</span>
272
+ <svg
273
+ class="h-6 w-6"
274
+ fill="currentColor"
275
+ viewBox="0 0 24 24"
276
+ aria-hidden="true"
277
+ >
278
+ <path
279
+ d="M8.29 20.251c7.547 0 11.675-6.253 11.675-11.675 0-.178 0-.355-.012-.53A8.348 8.348 0 0022 5.92a8.19 8.19 0 01-2.357.646 4.118 4.118 0 001.804-2.27 8.224 8.224 0 01-2.605.996 4.107 4.107 0 00-6.993 3.743 11.65 11.65 0 01-8.457-4.287 4.106 4.106 0 001.27 5.477A4.072 4.072 0 012.8 9.713v.052a4.105 4.105 0 003.292 4.022 4.095 4.095 0 01-1.853.07 4.108 4.108 0 003.834 2.85A8.233 8.233 0 012 18.407a11.616 11.616 0 006.29 1.84"
280
+ />
281
+ </svg>
282
+ </a>
283
+ </div>
284
+ <p class="mt-8 text-sm text-gray-500 md:order-1 md:mt-0">
285
+ &copy; 1998 - {d.getFullYear()} Thunderhead Engineering, All rights reserved.
286
+ </p>
287
+ {#if login}
288
+ <div class="mt-4 md:order-2 md:mt-0">
182
289
  {#if token}
183
- <button on:click|preventDefault={signOut} class="w-40 mx-auto flex items-center justify-center px-4 py-2 border border-transparent text-base leading-6 font-medium text-white hover:bg-teci-blue-light bg-teci-blue-dark focus:outline-none focus:border-teci-blue-dark transition duration-150 ease-in-out">Staff Log out</button>
290
+ <button
291
+ on:click|preventDefault={signOut}
292
+ class="mx-auto flex w-40 items-center justify-center border border-transparent bg-teci-blue-dark px-4 py-2 text-base font-medium leading-6 text-white transition duration-150 ease-in-out hover:bg-teci-blue-light focus:border-teci-blue-dark focus:outline-none"
293
+ >Staff Log out</button
294
+ >
184
295
  {:else}
185
- <a href="/auth/login" class="w-40 mx-auto flex items-center justify-center px-4 py-2 border border-transparent text-base leading-6 font-medium text-white hover:bg-teci-blue-light bg-teci-blue-dark focus:outline-none focus:border-teci-blue-dark transition duration-150 ease-in-out">Staff Sign In</a>
296
+ <a
297
+ href="/auth/login"
298
+ class="mx-auto flex w-40 items-center justify-center border border-transparent bg-teci-blue-dark px-4 py-2 text-base font-medium leading-6 text-white transition duration-150 ease-in-out hover:bg-teci-blue-light focus:border-teci-blue-dark focus:outline-none"
299
+ >Staff Sign In</a
300
+ >
186
301
  {/if}
187
302
  </div>
188
- {/if}
189
- </div>
303
+ {/if}
190
304
  </div>
191
- </footer>
305
+ </div>
306
+ </footer>