cmdesigns 0.0.23 → 0.0.25
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 +3 -2
- package/src/BaseLayout.astro +43 -20
- package/src/CMText.astro +10 -10
- package/src/FGText.astro +12 -12
- package/src/Footer.astro +2 -11
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cmdesigns",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.25",
|
|
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,8 @@
|
|
|
15
15
|
"index.ts"
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"astro-favicon": "^0.0.5"
|
|
18
|
+
"astro-favicon": "^0.0.5",
|
|
19
|
+
"normalize.css": "^8.0.1"
|
|
19
20
|
},
|
|
20
21
|
"devDependencies": {
|
|
21
22
|
"astro": "^3.1.0"
|
package/src/BaseLayout.astro
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
---
|
|
2
2
|
import Favicon from "astro-favicon";
|
|
3
3
|
import Footer from "./Footer.astro";
|
|
4
|
+
import "normalize.css/normalize.css";
|
|
4
5
|
|
|
5
6
|
export interface Props {
|
|
6
7
|
title: string;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
favicon?: ImageMetadata | string;
|
|
9
|
+
lang: string;
|
|
10
|
+
copyrightstart: number;
|
|
10
11
|
copyrightend?: number;
|
|
11
12
|
rightsholder?: string;
|
|
12
13
|
repo?: `https://git${string}`;
|
|
@@ -14,44 +15,66 @@ export interface Props {
|
|
|
14
15
|
themecolor?: string;
|
|
15
16
|
}
|
|
16
17
|
|
|
17
|
-
let {
|
|
18
|
+
let {
|
|
19
|
+
title,
|
|
20
|
+
favicon,
|
|
21
|
+
lang,
|
|
22
|
+
copyrightstart,
|
|
23
|
+
copyrightend,
|
|
24
|
+
rightsholder,
|
|
25
|
+
repo,
|
|
26
|
+
description,
|
|
27
|
+
themecolor,
|
|
28
|
+
} = Astro.props;
|
|
18
29
|
---
|
|
19
30
|
|
|
20
|
-
<!
|
|
31
|
+
<!doctype html>
|
|
21
32
|
<html {lang}>
|
|
22
33
|
<head>
|
|
23
34
|
<meta charset="UTF-8" />
|
|
24
|
-
{description
|
|
25
|
-
{themecolor
|
|
35
|
+
{description && <meta name="description" content={description} />}
|
|
36
|
+
{themecolor && <meta name="theme-color" content={themecolor} />}
|
|
26
37
|
<meta name="viewport" content="width=device-width" />
|
|
27
38
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
28
|
-
{favicon
|
|
39
|
+
{favicon && <Favicon src={favicon} />}
|
|
29
40
|
<meta name="generator" content={Astro.generator} />
|
|
30
41
|
<title>{title}</title>
|
|
31
42
|
<slot name="head" />
|
|
32
43
|
</head>
|
|
33
44
|
<body>
|
|
34
|
-
|
|
35
|
-
<Footer
|
|
45
|
+
<slot />
|
|
46
|
+
<Footer
|
|
47
|
+
start={copyrightstart}
|
|
48
|
+
end={copyrightend}
|
|
49
|
+
rightsholder={rightsholder}
|
|
50
|
+
link={repo}
|
|
51
|
+
>
|
|
36
52
|
<slot name="footer" />
|
|
37
53
|
</Footer>
|
|
38
54
|
</body>
|
|
39
55
|
</html>
|
|
40
56
|
<style is:global>
|
|
41
|
-
|
|
57
|
+
@import url(//fonts.chrissx.de/);
|
|
42
58
|
|
|
43
59
|
:root {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
60
|
+
--cmred: 192, 32, 32;
|
|
61
|
+
--cmpurple: 128, 32, 240;
|
|
62
|
+
--cmblack: 32, 32, 32;
|
|
63
|
+
--transblue: 96, 208, 255;
|
|
64
|
+
--transpink: 255, 176, 192;
|
|
65
|
+
|
|
66
|
+
--unifont: Unifont, Menlo, Monaco, "Lucida Console", "Liberation Mono",
|
|
67
|
+
"DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace;
|
|
68
|
+
--minecraft: Minecraft, var(--unifont);
|
|
69
|
+
--impact: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
|
|
70
|
+
--woodcut: Woodcut, sans-serif;
|
|
71
|
+
--sans-serif: system-ui, -apple-system, BlinkMacSystemFont, Inter, "Segoe UI",
|
|
72
|
+
Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
|
|
49
73
|
}
|
|
50
74
|
|
|
51
75
|
body {
|
|
52
|
-
font-family:
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
background-color: black;
|
|
76
|
+
font-family: var(--unifont);
|
|
77
|
+
color: white;
|
|
78
|
+
background-color: black;
|
|
56
79
|
}
|
|
57
80
|
</style>
|
package/src/CMText.astro
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
<span class="C">
|
|
2
|
-
|
|
2
|
+
<span class="c">chrissx</span> <span class="m">Media</span>
|
|
3
3
|
</span>
|
|
4
4
|
|
|
5
5
|
<style>
|
|
6
|
-
.C {
|
|
7
|
-
|
|
8
|
-
}
|
|
6
|
+
.C {
|
|
7
|
+
font-family: var(--minecraft);
|
|
8
|
+
}
|
|
9
9
|
|
|
10
|
-
.c {
|
|
11
|
-
|
|
12
|
-
}
|
|
10
|
+
.c {
|
|
11
|
+
color: rgb(var(--cmred));
|
|
12
|
+
}
|
|
13
13
|
|
|
14
|
-
.m {
|
|
15
|
-
|
|
16
|
-
}
|
|
14
|
+
.m {
|
|
15
|
+
color: rgb(var(--cmpurple));
|
|
16
|
+
}
|
|
17
17
|
</style>
|
package/src/FGText.astro
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
<span class="F">
|
|
2
|
-
|
|
2
|
+
<span class="f">Fux</span> <span class="g">Games</span>
|
|
3
3
|
</span>
|
|
4
4
|
|
|
5
5
|
<style>
|
|
6
|
-
.F {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
6
|
+
.F {
|
|
7
|
+
font-family: var(--unifont);
|
|
8
|
+
font-weight: bold;
|
|
9
|
+
}
|
|
10
10
|
|
|
11
|
-
.f {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
11
|
+
.f {
|
|
12
|
+
/* TODO: fgorange */
|
|
13
|
+
color: #c09040;
|
|
14
|
+
}
|
|
15
15
|
|
|
16
|
-
.g {
|
|
17
|
-
|
|
18
|
-
}
|
|
16
|
+
.g {
|
|
17
|
+
color: white;
|
|
18
|
+
}
|
|
19
19
|
</style>
|
package/src/Footer.astro
CHANGED
|
@@ -24,18 +24,9 @@ const s = `Copyright © ${years} ${rightsholder}`;
|
|
|
24
24
|
|
|
25
25
|
<style>
|
|
26
26
|
footer {
|
|
27
|
-
font-family:
|
|
28
|
-
Unifont,
|
|
29
|
-
Menlo,
|
|
30
|
-
Monaco,
|
|
31
|
-
Lucida Console,
|
|
32
|
-
Liberation Mono,
|
|
33
|
-
DejaVu Sans Mono,
|
|
34
|
-
Bitstream Vera Sans Mono,
|
|
35
|
-
Courier New,
|
|
36
|
-
monospace;
|
|
27
|
+
font-family: var(--unifont);
|
|
37
28
|
text-align: center;
|
|
38
|
-
padding-bottom:
|
|
29
|
+
padding-bottom: 40px;
|
|
39
30
|
padding-top: 20px;
|
|
40
31
|
color: #c0c0c0;
|
|
41
32
|
}
|