@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.
- package/dev-scripts.config.json +1 -1
- package/package.json +3 -3
- package/src/components/hero.tsx +34 -39
- package/src/mdx/blog/index.mdx +1 -1
- package/src/mdx/blog/ioc.mdx +1 -1
package/dev-scripts.config.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@windrun-huaiin/diaomao",
|
|
3
|
-
"version": "16.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.
|
|
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.
|
|
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",
|
package/src/components/hero.tsx
CHANGED
|
@@ -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 {
|
|
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
|
-
<
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
<
|
|
29
|
-
|
|
30
|
-
|
|
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
|
-
|
|
47
|
-
|
|
48
|
-
|
|
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
|
}
|
package/src/mdx/blog/index.mdx
CHANGED