@windrun-huaiin/diaomao 16.0.0 → 16.0.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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "i18n": {
3
- "locales": ["en", "zh"],
3
+ "locales": ["en"],
4
4
  "defaultLocale": "en",
5
5
  "messageRoot": "messages"
6
6
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@windrun-huaiin/diaomao",
3
- "version": "16.0.0",
3
+ "version": "16.0.1",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -30,7 +30,7 @@
30
30
  "@windrun-huaiin/backend-core": "15.1.0",
31
31
  "@windrun-huaiin/base-ui": "15.1.1",
32
32
  "@windrun-huaiin/lib": "15.1.1",
33
- "@windrun-huaiin/third-ui": "15.1.0",
33
+ "@windrun-huaiin/third-ui": "15.1.1",
34
34
  "autoprefixer": "^10.4.27",
35
35
  "class-variance-authority": "^0.7.1",
36
36
  "clsx": "^2.1.1",
@@ -75,7 +75,7 @@
75
75
  "@types/react": "^19.2.14",
76
76
  "@types/react-dom": "^19.2.3",
77
77
  "@typescript-eslint/parser": "^8.56.1",
78
- "@windrun-huaiin/dev-scripts": "^15.2.1",
78
+ "@windrun-huaiin/dev-scripts": "^15.3.0",
79
79
  "baseline-browser-mapping": "^2.10.0",
80
80
  "eslint": "^9.39.1",
81
81
  "eslint-config-next": "^16.1.6",
@@ -1,50 +1,45 @@
1
1
  import { getTranslations } from 'next-intl/server'
2
2
  import { globalLucideIcons as icons} from '@windrun-huaiin/base-ui/components/server'
3
- import { themeHeroEyesOnClass } from '@windrun-huaiin/base-ui/lib'
4
- import { cn } from "@windrun-huaiin/lib"
5
3
  import { GradientButton } from "@windrun-huaiin/third-ui/fuma/mdx"
6
- import { DelayedImg } from "@windrun-huaiin/third-ui/main"
4
+ import { HeroMedia, HeroSection } from "@windrun-huaiin/third-ui/main";
5
+ import { themeHeroEyesOnClass } from '@windrun-huaiin/base-ui/lib'
6
+ import { cn } from '@windrun-huaiin/lib/utils';
7
7
 
8
8
  export async function Hero({ locale }: { locale: string }) {
9
9
  const t = await getTranslations({ locale, namespace: 'hero' });
10
10
 
11
11
  return (
12
- <section className="mx-auto mt-12 flex max-w-6xl flex-col gap-10 px-6 py-8 md:min-w-[calc(100vw-22rem)] md:px-4 md:flex-row md:items-center md:gap-12">
13
- <div className="space-y-6 md:w-1/2">
14
- <h1 className="text-4xl md:text-6xl font-bold leading-tight">
15
- {t('mainTitle')}<br />{" "}
16
- <span className={cn("text-transparent bg-clip-text", themeHeroEyesOnClass)}>{t('mainEyesOn')}</span>
17
- </h1>
18
- <p className="text-lg text-gray-400 max-w-2xl">
19
- {t('description')}
20
- </p>
21
- <GradientButton
22
- title={t('button')}
23
- href="https://newspaper-template.org/"
24
- align="center"
25
- className="md:w-full"
26
- />
27
- <div className="flex items-center gap-2 text-sm text-gray-400">
28
- <icons.Zap className="h-4 w-4" />
29
- <span>{t('about')}</span>
30
- </div>
31
- </div>
32
- <div className="relative flex justify-center md:w-1/2 md:justify-end">
33
- <div className="w-full max-w-[500px]">
34
- <div className="group relative aspect-890/569 overflow-hidden rounded-lg shadow-purple-500/20">
35
- <DelayedImg
36
- src={t('heroImageUrl')}
37
- alt={t('heroImageAlt')}
38
- fill
39
- preload
40
- sizes="(max-width: 768px) 90vw, (max-width: 1200px) 45vw, 35vw"
41
- className="rounded-lg object-cover group-hover:scale-105"
42
- wrapperClassName="h-full w-full"
43
- placeholderClassName="rounded-lg"
44
- />
12
+ <HeroSection
13
+ content={
14
+ <>
15
+ <h1 className="text-4xl font-bold leading-tight md:text-6xl">
16
+ {t('mainTitle')}<br />{" "}
17
+ <span className={cn("bg-clip-text text-transparent", themeHeroEyesOnClass)}>{t('mainEyesOn')}</span>
18
+ </h1>
19
+ <p className="max-w-2xl text-lg text-gray-400">
20
+ {t('description')}
21
+ </p>
22
+ <GradientButton
23
+ title={t('button')}
24
+ href="https://d8ger.com/test/color"
25
+ align="center"
26
+ className="md:w-full"
27
+ />
28
+ <div className="flex items-center gap-2 text-sm text-gray-400">
29
+ <icons.Zap className="h-4 w-4" />
30
+ <span>{t('about')}</span>
45
31
  </div>
46
- </div>
47
- </div>
48
- </section>
32
+ </>
33
+ }
34
+ media={
35
+ <HeroMedia
36
+ src={t('heroImageUrl')}
37
+ alt={t('heroImageAlt')}
38
+ width={890}
39
+ height={569}
40
+ preload
41
+ />
42
+ }
43
+ />
49
44
  )
50
45
  }
@@ -2,7 +2,7 @@
2
2
  title: Blog
3
3
  description: Articles and thoughts about various topics.
4
4
  icon: Rss
5
- date: 2026-04-11
5
+ date: 2026-04-12
6
6
  ---
7
7
 
8
8
  ## Past List
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  title: Monthly Summary
3
3
  description: Index and Summary
4
- date: 2026-04-11
4
+ date: 2026-04-12
5
5
  ---
6
6
 
7
7