cmdesigns 0.0.13 → 0.0.15
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 +1 -1
- package/src/BaseLayout.astro +6 -3
- package/src/Footer.astro +13 -12
package/package.json
CHANGED
package/src/BaseLayout.astro
CHANGED
|
@@ -4,7 +4,7 @@ import Footer from "./Footer.astro";
|
|
|
4
4
|
|
|
5
5
|
export interface Props {
|
|
6
6
|
title: string;
|
|
7
|
-
favicon
|
|
7
|
+
favicon?: ImageMetadata | string;
|
|
8
8
|
lang: string;
|
|
9
9
|
copyrightstart: any;
|
|
10
10
|
// TODO: support for copyrightend
|
|
@@ -22,14 +22,17 @@ let { title, favicon, lang, copyrightstart, description, themecolor } = Astro.pr
|
|
|
22
22
|
{description ? <meta name="description" content={description} /> : undefined}
|
|
23
23
|
{themecolor ? <meta name="theme-color" content={themecolor} /> : undefined}
|
|
24
24
|
<meta name="viewport" content="width=device-width" />
|
|
25
|
-
<
|
|
25
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
26
|
+
{favicon ? <Favicon src={favicon} /> : undefined}
|
|
26
27
|
<meta name="generator" content={Astro.generator} />
|
|
27
28
|
<title>{title}</title>
|
|
28
29
|
<slot name="head" />
|
|
29
30
|
</head>
|
|
30
31
|
<body>
|
|
31
32
|
<slot />
|
|
32
|
-
<Footer start={copyrightstart}
|
|
33
|
+
<Footer start={copyrightstart}>
|
|
34
|
+
<slot name="footer" />
|
|
35
|
+
</Footer>
|
|
33
36
|
</body>
|
|
34
37
|
</html>
|
|
35
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>
|