create-swift-rust 0.7.0 → 0.7.1

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": "create-swift-rust",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "Create a new swift-rust project from a template.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://swift-rust.dev",
@@ -1,7 +1,9 @@
1
+ import { BLUR } from "@/lib/blur";
1
2
  import { formatDate } from "@/lib/format";
2
3
  import { getAllTags, posts } from "@/lib/posts";
3
4
  import type { Metadata } from "swift-rust";
4
5
  import { Link } from "swift-rust";
6
+ import Image from "swift-rust/image";
5
7
 
6
8
  export const metadata: Metadata = {
7
9
  title: "Blog",
@@ -42,7 +44,19 @@ export default function BlogIndexPage() {
42
44
  <span>{featured.readingTime}</span>
43
45
  </div>
44
46
  </div>
45
- <div className="aspect-[4/3] overflow-hidden rounded-2xl border border-[var(--color-border)] bg-gradient-to-br from-[var(--color-accent-soft)] via-[var(--color-surface)] to-[var(--color-surface-2)]" />
47
+ {featured.cover ? (
48
+ <Image
49
+ src={featured.cover}
50
+ alt={featured.title}
51
+ width={1200}
52
+ height={630}
53
+ placeholder="blur"
54
+ blurDataURL={BLUR}
55
+ className="aspect-[4/3] w-full overflow-hidden rounded-2xl border border-[var(--color-border)] object-cover"
56
+ />
57
+ ) : (
58
+ <div className="aspect-[4/3] overflow-hidden rounded-2xl border border-[var(--color-border)] bg-gradient-to-br from-[var(--color-accent-soft)] via-[var(--color-surface)] to-[var(--color-surface-2)]" />
59
+ )}
46
60
  </Link>
47
61
  ) : null}
48
62
 
@@ -1,14 +1,12 @@
1
1
  {
2
2
  "extends": "swift-rust/tsconfig.base.json",
3
3
  "compilerOptions": {
4
- "ignoreDeprecations": "6.0",
5
4
  "lib": [
6
5
  "ESNext",
7
6
  "DOM",
8
7
  "DOM.Iterable"
9
8
  ],
10
9
  "jsx": "preserve",
11
- "baseUrl": ".",
12
10
  "paths": {
13
11
  "@/*": [
14
12
  "./src/*"