cmdesigns 0.0.10 → 0.0.12
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/package.json +2 -2
- package/src/BaseLayout.astro +9 -6
- package/src/CMText.astro +2 -2
- package/src/FGText.astro +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cmdesigns",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"description": "An attempt at putting common chrissx Media design elements into a library.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"index.ts"
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"astro-favicon": "^0.0.
|
|
18
|
+
"astro-favicon": "^0.0.5"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"astro": "^3.0.13"
|
package/src/BaseLayout.astro
CHANGED
|
@@ -4,18 +4,22 @@ import Footer from "./Footer.astro";
|
|
|
4
4
|
|
|
5
5
|
export interface Props {
|
|
6
6
|
title: string;
|
|
7
|
-
favicon: ImageMetadata;
|
|
7
|
+
favicon: ImageMetadata | string;
|
|
8
8
|
lang: string;
|
|
9
9
|
copyrightstart: any;
|
|
10
|
+
// TODO: support for copyrightend
|
|
11
|
+
description?: string;
|
|
10
12
|
}
|
|
11
13
|
|
|
12
|
-
let { title, favicon, lang, copyrightstart } = Astro.props;
|
|
14
|
+
let { title, favicon, lang, copyrightstart, description } = Astro.props;
|
|
13
15
|
---
|
|
14
16
|
|
|
15
17
|
<!DOCTYPE html>
|
|
16
18
|
<html {lang}>
|
|
17
19
|
<head>
|
|
18
20
|
<meta charset="UTF-8" />
|
|
21
|
+
{description ? <meta name="description" content={description} /> : undefined}
|
|
22
|
+
<!-- TODO: add theme-color -->
|
|
19
23
|
<meta name="viewport" content="width=device-width" />
|
|
20
24
|
<Favicon src={favicon} />
|
|
21
25
|
<meta name="generator" content={Astro.generator} />
|
|
@@ -37,11 +41,10 @@ let { title, favicon, lang, copyrightstart } = Astro.props;
|
|
|
37
41
|
--transpink: 255, 176, 192;
|
|
38
42
|
}
|
|
39
43
|
|
|
40
|
-
html
|
|
44
|
+
html {
|
|
41
45
|
font-family: Unifont, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono,
|
|
42
46
|
Bitstream Vera Sans Mono, Courier New, monospace;
|
|
43
|
-
color:
|
|
44
|
-
background-color:
|
|
45
|
-
text-decoration-line: none;
|
|
47
|
+
color: white;
|
|
48
|
+
background-color: black;
|
|
46
49
|
}
|
|
47
50
|
</style>
|
package/src/CMText.astro
CHANGED