cmdesigns 0.0.15 → 0.0.16
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 +5 -4
- package/src/Footer.astro +18 -7
package/package.json
CHANGED
package/src/BaseLayout.astro
CHANGED
|
@@ -6,13 +6,14 @@ export interface Props {
|
|
|
6
6
|
title: string;
|
|
7
7
|
favicon?: ImageMetadata | string;
|
|
8
8
|
lang: string;
|
|
9
|
-
copyrightstart:
|
|
10
|
-
|
|
9
|
+
copyrightstart: number;
|
|
10
|
+
copyrightend?: number;
|
|
11
|
+
rightsholder?: string;
|
|
11
12
|
description?: string;
|
|
12
13
|
themecolor?: string;
|
|
13
14
|
}
|
|
14
15
|
|
|
15
|
-
let { title, favicon, lang, copyrightstart, description, themecolor } = Astro.props;
|
|
16
|
+
let { title, favicon, lang, copyrightstart, copyrightend, rightsholder, description, themecolor } = Astro.props;
|
|
16
17
|
---
|
|
17
18
|
|
|
18
19
|
<!DOCTYPE html>
|
|
@@ -30,7 +31,7 @@ let { title, favicon, lang, copyrightstart, description, themecolor } = Astro.pr
|
|
|
30
31
|
</head>
|
|
31
32
|
<body>
|
|
32
33
|
<slot />
|
|
33
|
-
<Footer start={copyrightstart}>
|
|
34
|
+
<Footer start={copyrightstart} end={copyrightend} rightsholder={rightsholder}>
|
|
34
35
|
<slot name="footer" />
|
|
35
36
|
</Footer>
|
|
36
37
|
</body>
|
package/src/Footer.astro
CHANGED
|
@@ -2,24 +2,35 @@
|
|
|
2
2
|
export interface Props {
|
|
3
3
|
start: number;
|
|
4
4
|
end?: number;
|
|
5
|
-
|
|
5
|
+
rightsholder?: string;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
let {
|
|
9
|
-
|
|
8
|
+
let {
|
|
9
|
+
start,
|
|
10
|
+
end = new Date().getFullYear(),
|
|
11
|
+
rightsholder = "chrissx Media",
|
|
12
|
+
} = Astro.props;
|
|
10
13
|
|
|
11
|
-
const
|
|
14
|
+
const years = start == end ? start : start + "-" + end;
|
|
12
15
|
---
|
|
13
16
|
|
|
14
17
|
<footer>
|
|
15
18
|
<slot />
|
|
16
|
-
|
|
19
|
+
Copyright © {years} {rightsholder}
|
|
17
20
|
</footer>
|
|
18
21
|
|
|
19
22
|
<style>
|
|
20
23
|
footer {
|
|
21
|
-
font-family:
|
|
22
|
-
|
|
24
|
+
font-family:
|
|
25
|
+
Unifont,
|
|
26
|
+
Menlo,
|
|
27
|
+
Monaco,
|
|
28
|
+
Lucida Console,
|
|
29
|
+
Liberation Mono,
|
|
30
|
+
DejaVu Sans Mono,
|
|
31
|
+
Bitstream Vera Sans Mono,
|
|
32
|
+
Courier New,
|
|
33
|
+
monospace;
|
|
23
34
|
text-align: center;
|
|
24
35
|
padding-bottom: 20px;
|
|
25
36
|
padding-top: 20px;
|