feat(widget): replace img with next/image for optimized logo rendering
This commit is contained in:
+4
-1
@@ -1,6 +1,7 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import dynamic from "next/dynamic";
|
import dynamic from "next/dynamic";
|
||||||
|
import Image from "next/image";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import {
|
import {
|
||||||
ArrowRight,
|
ArrowRight,
|
||||||
@@ -272,9 +273,11 @@ function WidgetHomePageInner() {
|
|||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
className="inline-flex items-center gap-3 text-slate-950"
|
className="inline-flex items-center gap-3 text-slate-950"
|
||||||
>
|
>
|
||||||
<img
|
<Image
|
||||||
src="/images/logo.png"
|
src="/images/logo.png"
|
||||||
alt="贝壳 AI 客服"
|
alt="贝壳 AI 客服"
|
||||||
|
width={40}
|
||||||
|
height={40}
|
||||||
className="h-10 w-10 rounded-2xl object-contain ring-1 ring-slate-200"
|
className="h-10 w-10 rounded-2xl object-contain ring-1 ring-slate-200"
|
||||||
/>
|
/>
|
||||||
<span>
|
<span>
|
||||||
|
|||||||
Reference in New Issue
Block a user