cmdesigns 0.0.24 → 0.0.26

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