cmdesigns 0.0.4 → 0.0.6

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/index.ts CHANGED
@@ -1,5 +1,6 @@
1
+ import BaseLayout from "./src/BaseLayout.astro";
1
2
  import CMText from "./src/CMText.astro";
2
3
  import FGText from "./src/FGText.astro";
3
4
  import Footer from "./src/Footer.astro";
4
5
 
5
- export { CMText, FGText, Footer };
6
+ export { BaseLayout, CMText, FGText, Footer };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cmdesigns",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "description": "An attempt at putting common chrissx Media design elements into a library.",
5
5
  "type": "module",
6
6
  "repository": {
@@ -15,10 +15,10 @@
15
15
  "index.ts"
16
16
  ],
17
17
  "devDependencies": {
18
- "astro": "^2.10.14"
18
+ "astro": "^3.0.13"
19
19
  },
20
20
  "peerDependencies": {
21
- "astro": "^2.0.0-beta.0"
21
+ "astro": "^3.0.0-beta.0"
22
22
  },
23
23
  "license": "MIT"
24
24
  }
@@ -0,0 +1,46 @@
1
+ ---
2
+ import Footer from "./Footer.astro";
3
+
4
+ export interface Props {
5
+ title: string;
6
+ favicon: `${string}.svg${string}`;
7
+ lang: string;
8
+ copyrightstart: any;
9
+ }
10
+
11
+ let { title, favicon, lang, copyrightstart } = Astro.props;
12
+ ---
13
+
14
+ <!DOCTYPE html>
15
+ <html {lang}>
16
+ <head>
17
+ <meta charset="UTF-8" />
18
+ <meta name="viewport" content="width=device-width" />
19
+ <link rel="icon" type="image/svg+xml" href={favicon} />
20
+ <meta name="generator" content={Astro.generator} />
21
+ <title>{title}</title>
22
+ </head>
23
+ <body>
24
+ <slot />
25
+ <Footer start={copyrightstart} />
26
+ </body>
27
+ </html>
28
+ <style is:global>
29
+ @import url(//fonts.chrissx.de/);
30
+
31
+ :root {
32
+ --cmred: 192, 32, 32;
33
+ --cmpurple: 128, 32, 240;
34
+ --cmblack: 32, 32, 32;
35
+ --transblue: 96, 208, 255;
36
+ --transpink: 255, 176, 192;
37
+ }
38
+
39
+ html, a, input {
40
+ font-family: Unifont, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono,
41
+ Bitstream Vera Sans Mono, Courier New, monospace;
42
+ color: #ffffff;
43
+ background-color: #000000;
44
+ text-decoration-line: none;
45
+ }
46
+ </style>
package/src/Footer.astro CHANGED
@@ -1,6 +1,14 @@
1
+ ---
2
+ export interface Props {
3
+ start: any;
4
+ }
5
+
6
+ const { start } = Astro.props;
7
+ ---
8
+
1
9
  <footer>
2
10
  <slot />
3
- Copyright &copy; 2020-{new Date().getFullYear()} chrissx Media
11
+ Copyright &copy; {start}-{new Date().getFullYear()} chrissx Media
4
12
  </footer>
5
13
 
6
14
  <style>