@windrun-huaiin/diaomao 14.1.0 → 14.1.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/.env.local.txt +2 -2
- package/package.json +3 -3
- package/src/components/hero.tsx +11 -10
- package/src/mdx/blog/index.mdx +1 -1
- package/src/mdx/blog/ioc.mdx +1 -1
package/.env.local.txt
CHANGED
|
@@ -16,8 +16,8 @@ NEXT_PUBLIC_STYLE_CDN_PROXY_URL=YOURS-
|
|
|
16
16
|
DATABASE_URL="postgresql://postgres:PASSWORD@localhost:5432/postgres?schema=diaomao"
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
#
|
|
20
|
-
NEXT_PUBLIC_STYLE_ICON_COLOR=
|
|
19
|
+
# purple, orange, indigo, emerald, rose
|
|
20
|
+
NEXT_PUBLIC_STYLE_ICON_COLOR=orange
|
|
21
21
|
NEXT_PUBLIC_STYLE_SVG_ICON_SIZE=18
|
|
22
22
|
|
|
23
23
|
NEXT_PUBLIC_STYLE_SHOW_BANNER=true
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@windrun-huaiin/diaomao",
|
|
3
|
-
"version": "14.1.
|
|
3
|
+
"version": "14.1.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"@radix-ui/react-slot": "^1.2.4",
|
|
28
28
|
"@tailwindcss/typography": "^0.5.19",
|
|
29
29
|
"@types/mdx": "^2.0.13",
|
|
30
|
-
"@windrun-huaiin/backend-core": "14.1.
|
|
30
|
+
"@windrun-huaiin/backend-core": "14.1.1",
|
|
31
31
|
"@windrun-huaiin/base-ui": "14.0.2",
|
|
32
32
|
"@windrun-huaiin/lib": "^14.0.0",
|
|
33
|
-
"@windrun-huaiin/third-ui": "14.0.
|
|
33
|
+
"@windrun-huaiin/third-ui": "14.0.2",
|
|
34
34
|
"autoprefixer": "^10.4.27",
|
|
35
35
|
"class-variance-authority": "^0.7.1",
|
|
36
36
|
"clsx": "^2.1.1",
|
package/src/components/hero.tsx
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import Image from "next/image"
|
|
2
1
|
import { getTranslations } from 'next-intl/server'
|
|
3
2
|
import { globalLucideIcons as icons} from '@windrun-huaiin/base-ui/components/server'
|
|
4
3
|
import { themeHeroEyesOnClass } from '@windrun-huaiin/base-ui/lib'
|
|
5
4
|
import { cn } from "@windrun-huaiin/lib"
|
|
6
5
|
import { GradientButton } from "@windrun-huaiin/third-ui/fuma/mdx"
|
|
6
|
+
import { DelayedImg } from "@windrun-huaiin/third-ui/main"
|
|
7
7
|
|
|
8
8
|
export async function Hero({ locale }: { locale: string }) {
|
|
9
9
|
const t = await getTranslations({ locale, namespace: 'hero' });
|
|
@@ -31,15 +31,16 @@ export async function Hero({ locale }: { locale: string }) {
|
|
|
31
31
|
</div>
|
|
32
32
|
<div className="flex-1 relative flex justify-center md:justify-end">
|
|
33
33
|
<div className="rounded-lg overflow-hidden shadow-purple-500/20 group">
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
34
|
+
<DelayedImg
|
|
35
|
+
src={t('heroImageUrl')}
|
|
36
|
+
alt={t('heroImageAlt')}
|
|
37
|
+
fill
|
|
38
|
+
preload
|
|
39
|
+
sizes="(max-width: 768px) 90vw, (max-width: 1200px) 45vw, 35vw"
|
|
40
|
+
className="rounded-lg object-cover group-hover:scale-105"
|
|
41
|
+
wrapperClassName="h-full w-full"
|
|
42
|
+
placeholderClassName="rounded-lg"
|
|
43
|
+
/>
|
|
43
44
|
</div>
|
|
44
45
|
</div>
|
|
45
46
|
</section>
|
package/src/mdx/blog/index.mdx
CHANGED