cmdesigns 0.0.12 → 0.0.14
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 +8 -3
- package/src/Footer.astro +13 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cmdesigns",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.14",
|
|
4
4
|
"description": "An attempt at putting common chrissx Media design elements into a library.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"astro-favicon": "^0.0.5"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"astro": "^3.0
|
|
21
|
+
"astro": "^3.1.0"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"astro": "^3.0.0-beta.0"
|
package/src/BaseLayout.astro
CHANGED
|
@@ -9,9 +9,10 @@ export interface Props {
|
|
|
9
9
|
copyrightstart: any;
|
|
10
10
|
// TODO: support for copyrightend
|
|
11
11
|
description?: string;
|
|
12
|
+
themecolor?: string;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
|
-
let { title, favicon, lang, copyrightstart, description } = Astro.props;
|
|
15
|
+
let { title, favicon, lang, copyrightstart, description, themecolor } = Astro.props;
|
|
15
16
|
---
|
|
16
17
|
|
|
17
18
|
<!DOCTYPE html>
|
|
@@ -19,15 +20,19 @@ let { title, favicon, lang, copyrightstart, description } = Astro.props;
|
|
|
19
20
|
<head>
|
|
20
21
|
<meta charset="UTF-8" />
|
|
21
22
|
{description ? <meta name="description" content={description} /> : undefined}
|
|
22
|
-
|
|
23
|
+
{themecolor ? <meta name="theme-color" content={themecolor} /> : undefined}
|
|
23
24
|
<meta name="viewport" content="width=device-width" />
|
|
25
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
24
26
|
<Favicon src={favicon} />
|
|
25
27
|
<meta name="generator" content={Astro.generator} />
|
|
26
28
|
<title>{title}</title>
|
|
29
|
+
<slot name="head" />
|
|
27
30
|
</head>
|
|
28
31
|
<body>
|
|
29
32
|
<slot />
|
|
30
|
-
<Footer start={copyrightstart}
|
|
33
|
+
<Footer start={copyrightstart}>
|
|
34
|
+
<slot name="footer" />
|
|
35
|
+
</Footer>
|
|
31
36
|
</body>
|
|
32
37
|
</html>
|
|
33
38
|
<style is:global>
|
package/src/Footer.astro
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
export interface Props {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
start: number;
|
|
4
|
+
end?: number;
|
|
5
|
+
// TODO: rightsholder
|
|
5
6
|
}
|
|
6
7
|
|
|
7
8
|
let { start, end } = Astro.props;
|
|
@@ -11,17 +12,17 @@ const s = start == end ? start : start + "-" + end;
|
|
|
11
12
|
---
|
|
12
13
|
|
|
13
14
|
<footer>
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
<slot />
|
|
16
|
+
Copyright © {s} chrissx Media
|
|
16
17
|
</footer>
|
|
17
18
|
|
|
18
19
|
<style>
|
|
19
|
-
footer {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
20
|
+
footer {
|
|
21
|
+
font-family: Unifont, Menlo, Monaco, Lucida Console, Liberation Mono,
|
|
22
|
+
DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace;
|
|
23
|
+
text-align: center;
|
|
24
|
+
padding-bottom: 20px;
|
|
25
|
+
padding-top: 20px;
|
|
26
|
+
color: #c0c0c0;
|
|
27
|
+
}
|
|
27
28
|
</style>
|