cmdesigns 0.1.3 → 0.1.5

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2023 chrissx Media
3
+ Copyright (c) 2023-present chrissx Media
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,3 +1,16 @@
1
1
  # CM Designs
2
2
 
3
3
  An attempt at putting common chrissx Media design elements into a library.
4
+
5
+ The code is MIT licensed, but usage of `CMText`, `FGText`, etc is a trademark
6
+ violation.
7
+
8
+ ## Components
9
+
10
+ | Name | Description |
11
+ |-----------------|-----------------------------------------------------|
12
+ | `MinimalLayout` | CSS Reset + HTML Skeleton |
13
+ | `BaseLayout` | `MinimalLayout` + cM Fonts + Dark Mode |
14
+ | `Footer` | Copyright © `{start}`-`{end}` `{rightsholder}` |
15
+ | `CMText` | ⚠️ not for external use (chrissx Media trademark) |
16
+ | `FGText` | ⚠️ not for external use (Fux Games trademark) |
package/index.ts CHANGED
@@ -1,6 +1,7 @@
1
+ import MinimalLayout from "./src/MinimalLayout.astro";
1
2
  import BaseLayout from "./src/BaseLayout.astro";
2
3
  import CMText from "./src/CMText.astro";
3
4
  import FGText from "./src/FGText.astro";
4
5
  import Footer from "./src/Footer.astro";
5
6
 
6
- export { BaseLayout, CMText, FGText, Footer };
7
+ export { MinimalLayout, BaseLayout, CMText, FGText, Footer };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cmdesigns",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "An attempt at putting common chrissx Media design elements into a library.",
5
5
  "type": "module",
6
6
  "repository": {
@@ -18,10 +18,10 @@
18
18
  "astro-favicon": "^0.1.0"
19
19
  },
20
20
  "devDependencies": {
21
- "astro": "^5.0.0"
21
+ "astro": "^7.0.0"
22
22
  },
23
23
  "peerDependencies": {
24
- "astro": "^5.0.0-beta.0"
24
+ "astro": ">=5.0.0-beta.0 <8"
25
25
  },
26
26
  "license": "MIT"
27
27
  }
@@ -8,9 +8,11 @@ export interface Props {
8
8
  lang: string;
9
9
  description?: string;
10
10
  themecolor?: string;
11
+ fediverseCreator?: string;
11
12
  }
12
13
 
13
- const { title, favicon, lang, description, themecolor } = Astro.props;
14
+ const { title, favicon, lang, description, themecolor, fediverseCreator } =
15
+ Astro.props;
14
16
  ---
15
17
 
16
18
  <MinimalLayout {title} {lang}>
@@ -20,11 +22,20 @@ const { title, favicon, lang, description, themecolor } = Astro.props;
20
22
  )
21
23
  }
22
24
  {themecolor && <meta name="theme-color" content={themecolor} slot="head" />}
25
+ {
26
+ fediverseCreator && (
27
+ <meta
28
+ name="fediverse:creator"
29
+ content={fediverseCreator}
30
+ slot="head"
31
+ />
32
+ )
33
+ }
23
34
  {favicon && <Favicon src={favicon} slot="head" />}
24
35
  <meta name="generator" content={Astro.generator} slot="head" />
25
36
  <meta name="darkreader-lock" slot="head" />
26
37
  <link rel="stylesheet" href="https://fonts.chrissx.de/" slot="head" />
27
- <slot name="head" slot="head" />
38
+ <slot name="head" slot="head" />
28
39
  <slot />
29
40
  </MinimalLayout>
30
41
 
@@ -33,5 +44,6 @@ const { title, favicon, lang, description, themecolor } = Astro.props;
33
44
  font-family: var(--unifont);
34
45
  color: white;
35
46
  background-color: black;
47
+ color-scheme: dark;
36
48
  }
37
49
  </style>