@universal-ember/docs-support 0.9.2 → 0.9.4
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 +0 -1
- package/declarations/article.d.ts.map +1 -1
- package/declarations/callout.d.ts.map +1 -1
- package/declarations/errors.d.ts +1 -1
- package/declarations/errors.d.ts.map +1 -1
- package/declarations/icons.d.ts.map +1 -1
- package/declarations/index-page.d.ts.map +1 -1
- package/declarations/index.d.ts +1 -1
- package/declarations/index.d.ts.map +1 -1
- package/declarations/links.d.ts.map +1 -1
- package/declarations/menu-layout.d.ts.map +1 -1
- package/declarations/page-layout.d.ts +21 -1
- package/declarations/page-layout.d.ts.map +1 -1
- package/declarations/shell.d.ts +1 -8
- package/declarations/shell.d.ts.map +1 -1
- package/declarations/side-nav.d.ts +0 -2
- package/declarations/side-nav.d.ts.map +1 -1
- package/declarations/text.d.ts.map +1 -1
- package/dist/icons.js +1 -1
- package/dist/icons.js.map +1 -1
- package/dist/index-page.css +0 -1
- package/dist/index.js +58 -98
- package/dist/site-css/components.css +84 -4
- package/dist/site-css/featured-demo.css +8 -2
- package/dist/site-css/prose.css +320 -0
- package/dist/site-css/shell.css +21 -3
- package/dist/site-css/site.css +49 -14
- package/dist/theme-toggle.css +9 -1
- package/dist/types/scoped-css.d.ts +2 -0
- package/dist/types/scoped-css.d.ts.map +1 -0
- package/package.json +21 -24
- package/src/article.gts +1 -36
- package/src/callout.gts +48 -8
- package/src/errors.gts +14 -3
- package/src/h2.gts +1 -1
- package/src/icons.gts +6 -12
- package/src/index-page.css +0 -1
- package/src/index-page.gts +69 -6
- package/src/index.gts +2 -2
- package/src/links.gts +2 -12
- package/src/menu-layout.gts +15 -2
- package/src/page-layout.gts +188 -37
- package/src/shell.gts +1 -8
- package/src/side-nav.gts +99 -25
- package/src/site-css/components.css +84 -4
- package/src/site-css/featured-demo.css +8 -2
- package/src/site-css/prose.css +320 -0
- package/src/site-css/shell.css +21 -3
- package/src/site-css/site.css +49 -14
- package/src/text.gts +10 -1
- package/src/theme-toggle.css +9 -1
- package/src/theme-toggle.gts +2 -2
- package/src/types/scoped-css.d.ts +8 -0
- package/tailwind.mjs +0 -74
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@universal-ember/docs-support",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.4",
|
|
4
4
|
"description": "The default blueprint for Embroider v2 addons.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon"
|
|
@@ -13,9 +13,6 @@
|
|
|
13
13
|
"types": "./declarations/index.d.ts",
|
|
14
14
|
"default": "./dist/index.js"
|
|
15
15
|
},
|
|
16
|
-
"./tailwind": {
|
|
17
|
-
"import": "./tailwind.mjs"
|
|
18
|
-
},
|
|
19
16
|
"./*": {
|
|
20
17
|
"types": "./declarations/*.d.ts",
|
|
21
18
|
"default": "./dist/*.js"
|
|
@@ -31,7 +28,6 @@
|
|
|
31
28
|
},
|
|
32
29
|
"files": [
|
|
33
30
|
"addon-main.cjs",
|
|
34
|
-
"tailwind.mjs",
|
|
35
31
|
"declarations",
|
|
36
32
|
"dist",
|
|
37
33
|
"src"
|
|
@@ -39,40 +35,39 @@
|
|
|
39
35
|
"dependencies": {
|
|
40
36
|
"@embroider/addon-shim": "^1.10.2",
|
|
41
37
|
"@fontsource/lexend": "^5.2.11",
|
|
42
|
-
"@tailwindcss/typography": "^0.5.15",
|
|
43
38
|
"change-case": "^5.4.4",
|
|
44
|
-
"decorator-transforms": "
|
|
39
|
+
"decorator-transforms": "2.3.1",
|
|
45
40
|
"ember-mobile-menu": "^6.0.0",
|
|
46
|
-
"ember-modifier": "^4.
|
|
41
|
+
"ember-modifier": "^4.3.0",
|
|
47
42
|
"ember-resources": "^7.0.7",
|
|
48
43
|
"inter-ui": "^4.0.2",
|
|
49
|
-
"kolay": "^
|
|
44
|
+
"kolay": "^5.1.2",
|
|
50
45
|
"package-up": "^5.0.0",
|
|
51
46
|
"read-package-up": "^12.0.0",
|
|
52
47
|
"should-handle-link": "^1.2.2",
|
|
53
|
-
"
|
|
54
|
-
"ember-primitives": "^0.53.0"
|
|
48
|
+
"ember-primitives": "^0.54.0"
|
|
55
49
|
},
|
|
56
50
|
"devDependencies": {
|
|
57
|
-
"@babel/core": "^7.
|
|
58
|
-
"@babel/plugin-transform-typescript": "^7.28.
|
|
59
|
-
"@babel/runtime": "^7.28.
|
|
51
|
+
"@babel/core": "^7.29.0",
|
|
52
|
+
"@babel/plugin-transform-typescript": "^7.28.6",
|
|
53
|
+
"@babel/runtime": "^7.28.6",
|
|
60
54
|
"@ember/library-tsconfig": "^2.0.0",
|
|
61
|
-
"@embroider/addon-dev": "^8.
|
|
55
|
+
"@embroider/addon-dev": "^8.3.0",
|
|
62
56
|
"@glimmer/component": "^2.0.0",
|
|
63
|
-
"@glint/ember-tsc": "^1.
|
|
64
|
-
"@glint/template": "
|
|
65
|
-
"@glint/tsserver-plugin": "^2.0
|
|
57
|
+
"@glint/ember-tsc": "^1.1.1",
|
|
58
|
+
"@glint/template": "1.7.4",
|
|
59
|
+
"@glint/tsserver-plugin": "^2.1.0",
|
|
66
60
|
"@nullvoxpopuli/eslint-configs": "^5.5.0",
|
|
67
61
|
"@rollup/plugin-babel": "^6.1.0",
|
|
68
|
-
"babel-plugin-ember-template-compilation": "^
|
|
62
|
+
"babel-plugin-ember-template-compilation": "^4.0.0",
|
|
69
63
|
"concurrently": "^9.2.1",
|
|
70
|
-
"ember-
|
|
64
|
+
"ember-scoped-css": "^2.0.4",
|
|
65
|
+
"ember-source": "^6.10.1",
|
|
71
66
|
"ember-template-lint": "^7.9.3",
|
|
72
67
|
"eslint": "^9.39.2",
|
|
73
|
-
"prettier": "^3.
|
|
74
|
-
"prettier-plugin-ember-template-tag": "^2.1.
|
|
75
|
-
"rollup": "^4.
|
|
68
|
+
"prettier": "^3.8.1",
|
|
69
|
+
"prettier-plugin-ember-template-tag": "^2.1.3",
|
|
70
|
+
"rollup": "^4.57.1",
|
|
76
71
|
"rollup-plugin-copy": "^3.5.0",
|
|
77
72
|
"typescript": "^5.9.3"
|
|
78
73
|
},
|
|
@@ -92,12 +87,14 @@
|
|
|
92
87
|
"scripts": {
|
|
93
88
|
"build": "rollup --config",
|
|
94
89
|
"lint": "concurrently 'pnpm:lint:*(!fix)' --names 'lint:'",
|
|
95
|
-
"lint:fix": "concurrently 'pnpm:lint:*:fix' --names 'fix:'",
|
|
90
|
+
"lint:fix": "concurrently 'pnpm:lint:*:fix' --names 'fix:' && pnpm format",
|
|
96
91
|
"lint:hbs": "ember-template-lint . --no-error-on-unmatched-pattern",
|
|
97
92
|
"lint:hbs:fix": "ember-template-lint . --fix --no-error-on-unmatched-pattern",
|
|
98
93
|
"lint:js": "eslint . --cache",
|
|
99
94
|
"lint:js:fix": "eslint . --fix",
|
|
100
95
|
"lint:types": "ember-tsc --noEmit",
|
|
96
|
+
"lint:prettier": "prettier --check .",
|
|
97
|
+
"format": "prettier --write .",
|
|
101
98
|
"dev": "rollup --config --watch --no-watch.clearScreen",
|
|
102
99
|
"start": "rollup --config --watch --no-watch.clearScreen"
|
|
103
100
|
}
|
package/src/article.gts
CHANGED
|
@@ -1,42 +1,7 @@
|
|
|
1
1
|
import type { TOC } from '@ember/component/template-only';
|
|
2
2
|
|
|
3
|
-
/**
|
|
4
|
-
* TODO: use CSS, this is silly.
|
|
5
|
-
*/
|
|
6
|
-
const proseClasses = `
|
|
7
|
-
prose prose-slate max-w-none
|
|
8
|
-
dark:prose-invert dark:text-slate-400
|
|
9
|
-
prose-th:table-cell
|
|
10
|
-
prose-headings:inline-block
|
|
11
|
-
prose-headings:scroll-mt-28
|
|
12
|
-
prose-headings:font-display
|
|
13
|
-
prose-headings:font-normal
|
|
14
|
-
lg:prose-headings:scroll-mt-[8.5rem]
|
|
15
|
-
prose-h1:text-3xl
|
|
16
|
-
|
|
17
|
-
prose-lead:text-slate-500
|
|
18
|
-
dark:prose-lead:text-slate-400
|
|
19
|
-
|
|
20
|
-
prose-a:font-semibold
|
|
21
|
-
dark:prose-a:text-sky-400
|
|
22
|
-
prose-a:no-underline
|
|
23
|
-
prose-a:shadow-[inset_0_-2px_0_0_var(--tw-prose-background,#fff),inset_0_calc(-1*(var(--tw-prose-underline-size,2px)+2px))_0_0_var(--tw-prose-underline,theme(colors.sky.300))]
|
|
24
|
-
hover:prose-a:[--tw-prose-underline-size:3px]
|
|
25
|
-
dark:[--tw-prose-background:theme(colors.slate.900)]
|
|
26
|
-
dark:prose-a:shadow-[inset_0_calc(-1*var(--tw-prose-underline-size,2px))_0_0_var(--tw-prose-underline,theme(colors.sky.800))]
|
|
27
|
-
dark:hover:prose-a:[--tw-prose-underline-size:6px]
|
|
28
|
-
prose-pre:rounded-xl prose-pre:bg-slate-900
|
|
29
|
-
prose-pre:shadow-lg
|
|
30
|
-
dark:prose-pre:bg-slate-800/60
|
|
31
|
-
dark:prose-pre:shadow-none
|
|
32
|
-
dark:prose-pre:ring-1
|
|
33
|
-
dark:prose-pre:ring-slate-300/10
|
|
34
|
-
dark:prose-hr:border-slate-800
|
|
35
|
-
dark:prose-code:text-slate-50
|
|
36
|
-
`;
|
|
37
|
-
|
|
38
3
|
export const Article: TOC<{ Element: HTMLElement; Blocks: { default: [] } }> = <template>
|
|
39
|
-
<article class=
|
|
4
|
+
<article class="prose" ...attributes>
|
|
40
5
|
{{yield}}
|
|
41
6
|
</article>
|
|
42
7
|
</template>;
|
package/src/callout.gts
CHANGED
|
@@ -3,16 +3,56 @@ import { LightBulb } from './icons.gts';
|
|
|
3
3
|
import type { TOC } from '@ember/component/template-only';
|
|
4
4
|
|
|
5
5
|
export const Callout: TOC<{ Blocks: { default: [] } }> = <template>
|
|
6
|
-
<div
|
|
7
|
-
class="
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
<div class="flex-auto min-w-0 ml-4">
|
|
11
|
-
<div
|
|
12
|
-
class="text-sky-800 [--tw-prose-background:theme(colors.sky.50)] prose-a:text-sky-900 dark:text-slate-50 [&>*:first-child]:mt-0 [&>*:last-child]:mb-0"
|
|
13
|
-
>
|
|
6
|
+
<div class="callout">
|
|
7
|
+
<LightBulb class="callout__icon" />
|
|
8
|
+
<div class="callout__body">
|
|
9
|
+
<div class="callout__content">
|
|
14
10
|
{{yield}}
|
|
15
11
|
</div>
|
|
16
12
|
</div>
|
|
17
13
|
</div>
|
|
14
|
+
|
|
15
|
+
<style scoped>
|
|
16
|
+
.callout {
|
|
17
|
+
display: flex;
|
|
18
|
+
padding: 1.5rem;
|
|
19
|
+
margin-top: 2rem;
|
|
20
|
+
margin-bottom: 2rem;
|
|
21
|
+
border-radius: 1.5rem;
|
|
22
|
+
background-color: #f0f9ff;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
:is(html[style*="color-scheme: dark"]) .callout {
|
|
26
|
+
background-color: rgb(30 41 59 / 0.6);
|
|
27
|
+
outline: 1px solid rgb(203 213 225 / 0.1);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.callout__icon {
|
|
31
|
+
flex: none;
|
|
32
|
+
width: 2rem;
|
|
33
|
+
height: 2rem;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.callout__body {
|
|
37
|
+
flex: 1 1 auto;
|
|
38
|
+
min-width: 0;
|
|
39
|
+
margin-left: 1rem;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.callout__content {
|
|
43
|
+
color: #075985;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.callout__content > *:first-child {
|
|
47
|
+
margin-top: 0;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.callout__content > *:last-child {
|
|
51
|
+
margin-bottom: 0;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
:is(html[style*="color-scheme: dark"]) .callout__content {
|
|
55
|
+
color: #f8fafc;
|
|
56
|
+
}
|
|
57
|
+
</style>
|
|
18
58
|
</template>;
|
package/src/errors.gts
CHANGED
|
@@ -1,19 +1,30 @@
|
|
|
1
|
+
import { PageError } from './page-layout.gts';
|
|
2
|
+
|
|
1
3
|
import type { TOC } from '@ember/component/template-only';
|
|
2
4
|
|
|
3
5
|
export const OopsError: TOC<{
|
|
4
|
-
Args: { error:
|
|
6
|
+
Args: { error: any };
|
|
5
7
|
Blocks: { default: [] };
|
|
6
8
|
}> = <template>
|
|
7
9
|
<div
|
|
8
10
|
data-page-error
|
|
9
|
-
class="
|
|
11
|
+
class="adaptive-text"
|
|
10
12
|
style="border: 1px solid red; padding: 1rem; word-break: break-all;"
|
|
11
13
|
>
|
|
12
14
|
<h1>Oops!</h1><br />
|
|
13
|
-
{{@error}}
|
|
15
|
+
<PageError @error={{@error}} />
|
|
14
16
|
|
|
15
17
|
<br />
|
|
16
18
|
<br />
|
|
17
19
|
{{yield}}
|
|
18
20
|
</div>
|
|
21
|
+
|
|
22
|
+
<style scoped>
|
|
23
|
+
.adaptive-text {
|
|
24
|
+
color: #0f172a;
|
|
25
|
+
}
|
|
26
|
+
:is(html[style*="color-scheme: dark"]) .adaptive-text {
|
|
27
|
+
color: white;
|
|
28
|
+
}
|
|
29
|
+
</style>
|
|
19
30
|
</template>;
|
package/src/h2.gts
CHANGED
package/src/icons.gts
CHANGED
|
@@ -90,13 +90,7 @@ export const Moon: TOC<{ Element: SVGElement }> = <template>
|
|
|
90
90
|
</template>;
|
|
91
91
|
|
|
92
92
|
export const LightBulb: TOC<{ Element: SVGElement }> = <template>
|
|
93
|
-
<svg
|
|
94
|
-
aria-hidden="true"
|
|
95
|
-
viewBox="0 0 32 32"
|
|
96
|
-
fill="none"
|
|
97
|
-
class="[--icon-foreground:theme(colors.slate.900)] [--icon-background:theme(colors.white)]"
|
|
98
|
-
...attributes
|
|
99
|
-
>
|
|
93
|
+
<svg aria-hidden="true" viewBox="0 0 32 32" fill="none" class="lightbulb-icon" ...attributes>
|
|
100
94
|
<defs>
|
|
101
95
|
<radialGradient
|
|
102
96
|
cx="0"
|
|
@@ -120,25 +114,25 @@ export const LightBulb: TOC<{ Element: SVGElement }> = <template>
|
|
|
120
114
|
<stop stop-color="#0EA5E9"></stop><stop stop-color="#22D3EE" offset=".527"></stop>
|
|
121
115
|
<stop stop-color="#818CF8" offset="1"></stop>
|
|
122
116
|
</radialGradient></defs>
|
|
123
|
-
<g class="
|
|
117
|
+
<g class="lightbulb-light">
|
|
124
118
|
<circle cx="20" cy="20" r="12" fill="url(#:S6:-gradient)"></circle>
|
|
125
119
|
<path
|
|
126
120
|
fill-rule="evenodd"
|
|
127
121
|
clip-rule="evenodd"
|
|
128
122
|
d="M20 24.995c0-1.855 1.094-3.501 2.427-4.792C24.61 18.087 26 15.07 26 12.231 26 7.133 21.523 3 16 3S6 7.133 6 12.23c0 2.84 1.389 5.857 3.573 7.973C10.906 21.494 12 23.14 12 24.995V27a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2v-2.005Z"
|
|
129
|
-
class="
|
|
123
|
+
class="icon-bg-fill"
|
|
130
124
|
fill-opacity="0.5"
|
|
131
125
|
></path>
|
|
132
126
|
<path
|
|
133
127
|
d="M25 12.23c0 2.536-1.254 5.303-3.269 7.255l1.391 1.436c2.354-2.28 3.878-5.547 3.878-8.69h-2ZM16 4c5.047 0 9 3.759 9 8.23h2C27 6.508 21.998 2 16 2v2Zm-9 8.23C7 7.76 10.953 4 16 4V2C10.002 2 5 6.507 5 12.23h2Zm3.269 7.255C8.254 17.533 7 14.766 7 12.23H5c0 3.143 1.523 6.41 3.877 8.69l1.392-1.436ZM13 27v-2.005h-2V27h2Zm1 1a1 1 0 0 1-1-1h-2a3 3 0 0 0 3 3v-2Zm4 0h-4v2h4v-2Zm1-1a1 1 0 0 1-1 1v2a3 3 0 0 0 3-3h-2Zm0-2.005V27h2v-2.005h-2ZM8.877 20.921C10.132 22.136 11 23.538 11 24.995h2c0-2.253-1.32-4.143-2.731-5.51L8.877 20.92Zm12.854-1.436C20.32 20.852 19 22.742 19 24.995h2c0-1.457.869-2.859 2.122-4.074l-1.391-1.436Z"
|
|
134
|
-
class="
|
|
128
|
+
class="icon-fg-fill"
|
|
135
129
|
></path>
|
|
136
130
|
<path
|
|
137
131
|
d="M20 26a1 1 0 1 0 0-2v2Zm-8-2a1 1 0 1 0 0 2v-2Zm2 0h-2v2h2v-2Zm1 1V13.5h-2V25h2Zm-5-11.5v1h2v-1h-2Zm3.5 4.5h5v-2h-5v2Zm8.5-3.5v-1h-2v1h2ZM20 24h-2v2h2v-2Zm-2 0h-4v2h4v-2Zm-1-10.5V25h2V13.5h-2Zm2.5-2.5a2.5 2.5 0 0 0-2.5 2.5h2a.5.5 0 0 1 .5-.5v-2Zm2.5 2.5a2.5 2.5 0 0 0-2.5-2.5v2a.5.5 0 0 1 .5.5h2ZM18.5 18a3.5 3.5 0 0 0 3.5-3.5h-2a1.5 1.5 0 0 1-1.5 1.5v2ZM10 14.5a3.5 3.5 0 0 0 3.5 3.5v-2a1.5 1.5 0 0 1-1.5-1.5h-2Zm2.5-3.5a2.5 2.5 0 0 0-2.5 2.5h2a.5.5 0 0 1 .5-.5v-2Zm2.5 2.5a2.5 2.5 0 0 0-2.5-2.5v2a.5.5 0 0 1 .5.5h2Z"
|
|
138
|
-
class="
|
|
132
|
+
class="icon-fg-fill"
|
|
139
133
|
></path>
|
|
140
134
|
</g>
|
|
141
|
-
<g class="
|
|
135
|
+
<g class="lightbulb-dark">
|
|
142
136
|
<path
|
|
143
137
|
fill-rule="evenodd"
|
|
144
138
|
clip-rule="evenodd"
|
package/src/index-page.css
CHANGED
package/src/index-page.gts
CHANGED
|
@@ -14,17 +14,20 @@ export const IndexPage: TOC<{
|
|
|
14
14
|
footer: [];
|
|
15
15
|
};
|
|
16
16
|
}> = <template>
|
|
17
|
-
<Hero class="
|
|
18
|
-
<header class="
|
|
17
|
+
<Hero class="index-hero gradient-background">
|
|
18
|
+
<header class="index-hero__header">
|
|
19
19
|
{{yield to="header"}}
|
|
20
20
|
</header>
|
|
21
21
|
|
|
22
|
-
<div class="
|
|
23
|
-
<div
|
|
22
|
+
<div class="index-hero__body">
|
|
23
|
+
<div
|
|
24
|
+
style="width: 66%; margin: 0 auto; transform: translateY(-20%);"
|
|
25
|
+
class="index-hero__grid"
|
|
26
|
+
>
|
|
24
27
|
<h1 style="filter: drop-shadow(3px 5px 0px rgba(0, 0, 0, 0.4));">
|
|
25
28
|
{{yield to="logo"}}
|
|
26
29
|
</h1>
|
|
27
|
-
<p class="
|
|
30
|
+
<p class="index-hero__tagline">
|
|
28
31
|
{{yield to="tagline"}}
|
|
29
32
|
</p>
|
|
30
33
|
</div>
|
|
@@ -35,7 +38,67 @@ export const IndexPage: TOC<{
|
|
|
35
38
|
{{yield to="content"}}
|
|
36
39
|
|
|
37
40
|
<hr />
|
|
38
|
-
<footer style="padding: 3rem; width: 66%;" class="
|
|
41
|
+
<footer style="padding: 3rem; width: 66%;" class="index-footer">
|
|
39
42
|
{{yield to="footer"}}
|
|
40
43
|
</footer>
|
|
44
|
+
|
|
45
|
+
<style scoped>
|
|
46
|
+
.index-hero {
|
|
47
|
+
box-shadow: 0 10px 15px -3px rgb(15 23 42 / 0.05);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.index-hero__header {
|
|
51
|
+
position: absolute;
|
|
52
|
+
right: 0;
|
|
53
|
+
bottom: 0;
|
|
54
|
+
z-index: 50;
|
|
55
|
+
padding: 1rem;
|
|
56
|
+
display: flex;
|
|
57
|
+
align-items: center;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@media (min-width: 768px) {
|
|
61
|
+
.index-hero__header {
|
|
62
|
+
position: sticky;
|
|
63
|
+
top: 0;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.index-hero__body {
|
|
68
|
+
height: 100%;
|
|
69
|
+
display: flex;
|
|
70
|
+
flex-direction: column;
|
|
71
|
+
gap: 2rem;
|
|
72
|
+
justify-content: center;
|
|
73
|
+
align-items: center;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.index-hero__grid {
|
|
77
|
+
display: grid;
|
|
78
|
+
gap: 1rem;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.index-hero__tagline {
|
|
82
|
+
font-style: italic;
|
|
83
|
+
color: white;
|
|
84
|
+
width: 100%;
|
|
85
|
+
margin-left: auto;
|
|
86
|
+
margin-right: auto;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
@media (min-width: 768px) {
|
|
90
|
+
.index-hero__tagline {
|
|
91
|
+
width: 50%;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.index-footer {
|
|
96
|
+
margin-left: auto;
|
|
97
|
+
margin-right: auto;
|
|
98
|
+
gap: 3rem;
|
|
99
|
+
flex-wrap: wrap;
|
|
100
|
+
display: flex;
|
|
101
|
+
justify-content: space-between;
|
|
102
|
+
}
|
|
103
|
+
</style>
|
|
41
104
|
</template>;
|
package/src/index.gts
CHANGED
|
@@ -3,9 +3,9 @@ export { Callout } from './callout.gts';
|
|
|
3
3
|
export { OopsError } from './errors.gts';
|
|
4
4
|
export { H2 } from './h2.gts';
|
|
5
5
|
export { IndexPage } from './index-page.gts';
|
|
6
|
-
export { InternalLink,Link } from './links.gts';
|
|
6
|
+
export { InternalLink, Link } from './links.gts';
|
|
7
7
|
export { ResponsiveMenuLayout } from './menu-layout.gts';
|
|
8
|
-
export { PageLayout, TopRight } from './page-layout.gts';
|
|
8
|
+
export { hasReason, PageError, PageLayout, PageLoader, TopRight } from './page-layout.gts';
|
|
9
9
|
export { Shell } from './shell.gts';
|
|
10
10
|
export { Text } from './text.gts';
|
|
11
11
|
export { ThemeToggle } from './theme-toggle.gts';
|
package/src/links.gts
CHANGED
|
@@ -2,21 +2,11 @@ import { ExternalLink } from 'ember-primitives/components/external-link';
|
|
|
2
2
|
|
|
3
3
|
import type { TOC } from '@ember/component/template-only';
|
|
4
4
|
|
|
5
|
-
const linkClasses = `
|
|
6
|
-
text-sm font-semibold
|
|
7
|
-
dark:text-sky-400
|
|
8
|
-
no-underline shadow-[inset_0_-2px_0_0_var(--tw-prose-background,#fff),inset_0_calc(-1*(var(--tw-prose-underline-size,4px)+2px))_0_0_var(--tw-prose-underline,theme(colors.sky.300))]
|
|
9
|
-
hover:[--tw-prose-underline-size:6px]
|
|
10
|
-
dark:[--tw-prose-background:theme(colors.slate.900)]
|
|
11
|
-
dark:shadow-[inset_0_calc(-1*var(--tw-prose-underline-size,2px))_0_0_var(--tw-prose-underline,theme(colors.sky.800))]
|
|
12
|
-
dark:hover:[--tw-prose-underline-size:6px]
|
|
13
|
-
`;
|
|
14
|
-
|
|
15
5
|
export const InternalLink: TOC<{
|
|
16
6
|
Element: HTMLAnchorElement;
|
|
17
7
|
Blocks: { default: [] };
|
|
18
8
|
}> = <template>
|
|
19
|
-
<a class=
|
|
9
|
+
<a class="styled-link" href="#" ...attributes>
|
|
20
10
|
{{yield}}
|
|
21
11
|
</a>
|
|
22
12
|
</template>;
|
|
@@ -25,7 +15,7 @@ export const Link: TOC<{
|
|
|
25
15
|
Element: HTMLAnchorElement;
|
|
26
16
|
Blocks: { default: [] };
|
|
27
17
|
}> = <template>
|
|
28
|
-
<ExternalLink class=
|
|
18
|
+
<ExternalLink class="styled-link" ...attributes>
|
|
29
19
|
{{yield}}
|
|
30
20
|
</ExternalLink>
|
|
31
21
|
</template>;
|
package/src/menu-layout.gts
CHANGED
|
@@ -13,7 +13,7 @@ const Toggle: TOC<{
|
|
|
13
13
|
};
|
|
14
14
|
}> = <template>
|
|
15
15
|
<@toggle>
|
|
16
|
-
<Menu
|
|
16
|
+
<Menu style="width: 1.5rem; height: 1.5rem; stroke: #64748b;" />
|
|
17
17
|
</@toggle>
|
|
18
18
|
</template>;
|
|
19
19
|
|
|
@@ -34,10 +34,23 @@ export const ResponsiveMenuLayout: TOC<{
|
|
|
34
34
|
<div class="outer-content">
|
|
35
35
|
<SideNav />
|
|
36
36
|
|
|
37
|
-
<main class="
|
|
37
|
+
<main class="page-main">
|
|
38
38
|
{{yield to="content"}}
|
|
39
39
|
</main>
|
|
40
40
|
</div>
|
|
41
41
|
</mmw.Content>
|
|
42
42
|
</MenuWrapper>
|
|
43
|
+
|
|
44
|
+
<style scoped>
|
|
45
|
+
.page-main {
|
|
46
|
+
position: relative;
|
|
47
|
+
display: grid;
|
|
48
|
+
justify-content: center;
|
|
49
|
+
flex: 1 1 auto;
|
|
50
|
+
width: 100%;
|
|
51
|
+
margin-left: auto;
|
|
52
|
+
margin-right: auto;
|
|
53
|
+
max-width: 88rem;
|
|
54
|
+
}
|
|
55
|
+
</style>
|
|
43
56
|
</template>;
|