cmdesigns 0.0.25 → 0.1.0
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 +4 -4
- package/src/BaseLayout.astro +1 -19
- package/src/Footer.astro +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cmdesigns",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "An attempt at putting common chrissx Media design elements into a library.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -15,14 +15,14 @@
|
|
|
15
15
|
"index.ts"
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"astro-favicon": "^0.0
|
|
18
|
+
"astro-favicon": "^0.1.0",
|
|
19
19
|
"normalize.css": "^8.0.1"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"astro": "^
|
|
22
|
+
"astro": "^4.0.0"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"astro": "^
|
|
25
|
+
"astro": "^4.0.0-beta.0"
|
|
26
26
|
},
|
|
27
27
|
"license": "MIT"
|
|
28
28
|
}
|
package/src/BaseLayout.astro
CHANGED
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
import Favicon from "astro-favicon";
|
|
3
|
-
import Footer from "./Footer.astro";
|
|
4
3
|
import "normalize.css/normalize.css";
|
|
5
4
|
|
|
6
5
|
export interface Props {
|
|
7
6
|
title: string;
|
|
8
7
|
favicon?: ImageMetadata | string;
|
|
9
8
|
lang: string;
|
|
10
|
-
copyrightstart: number;
|
|
11
|
-
copyrightend?: number;
|
|
12
|
-
rightsholder?: string;
|
|
13
|
-
repo?: `https://git${string}`;
|
|
14
9
|
description?: string;
|
|
15
10
|
themecolor?: string;
|
|
16
11
|
}
|
|
@@ -19,10 +14,6 @@ let {
|
|
|
19
14
|
title,
|
|
20
15
|
favicon,
|
|
21
16
|
lang,
|
|
22
|
-
copyrightstart,
|
|
23
|
-
copyrightend,
|
|
24
|
-
rightsholder,
|
|
25
|
-
repo,
|
|
26
17
|
description,
|
|
27
18
|
themecolor,
|
|
28
19
|
} = Astro.props;
|
|
@@ -38,24 +29,15 @@ let {
|
|
|
38
29
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
39
30
|
{favicon && <Favicon src={favicon} />}
|
|
40
31
|
<meta name="generator" content={Astro.generator} />
|
|
32
|
+
<link rel="stylesheet" href="https://fonts.chrissx.de/" />
|
|
41
33
|
<title>{title}</title>
|
|
42
34
|
<slot name="head" />
|
|
43
35
|
</head>
|
|
44
36
|
<body>
|
|
45
37
|
<slot />
|
|
46
|
-
<Footer
|
|
47
|
-
start={copyrightstart}
|
|
48
|
-
end={copyrightend}
|
|
49
|
-
rightsholder={rightsholder}
|
|
50
|
-
link={repo}
|
|
51
|
-
>
|
|
52
|
-
<slot name="footer" />
|
|
53
|
-
</Footer>
|
|
54
38
|
</body>
|
|
55
39
|
</html>
|
|
56
40
|
<style is:global>
|
|
57
|
-
@import url(//fonts.chrissx.de/);
|
|
58
|
-
|
|
59
41
|
:root {
|
|
60
42
|
--cmred: 192, 32, 32;
|
|
61
43
|
--cmpurple: 128, 32, 240;
|
package/src/Footer.astro
CHANGED