✨ feat: add new payment icons for Alipay and WeChat Pay, update asset paths
- Added SVG icons for Alipay and WeChat Pay in the payment assets directory. - Updated paths for Lottie animations in various components to use relative paths. - Changed QR code image sources in payment-related components to point to the new asset paths. - Adjusted i18n configuration to load translation files from the updated assets directory.
This commit is contained in:
@@ -49,7 +49,7 @@ export default function Main() {
|
||||
autoplay
|
||||
className="mx-auto hidden w-[275px] lg:block xl:w-[500px]"
|
||||
loop
|
||||
src="/lotties/login.json"
|
||||
src="./assets/lotties/login.json"
|
||||
/>
|
||||
<p className="hidden w-[275px] text-center md:w-1/2 lg:block xl:w-[500px]">
|
||||
{site.site_desc}
|
||||
|
||||
@@ -45,7 +45,7 @@ export function GlobalMap() {
|
||||
autoplay
|
||||
className="w-full scale-150"
|
||||
loop
|
||||
src="/lotties/global-map.json"
|
||||
src="./assets/lotties/global-map.json"
|
||||
/>
|
||||
</motion.div>
|
||||
</motion.section>
|
||||
|
||||
@@ -52,7 +52,11 @@ export function Hero() {
|
||||
transition={{ type: "spring", stiffness: 80, damping: 15, delay: 0.5 }}
|
||||
viewport={{ once: true, amount: 0.3 }}
|
||||
>
|
||||
<DotLottieReact autoplay loop src="/lotties/network-security.json" />
|
||||
<DotLottieReact
|
||||
autoplay
|
||||
loop
|
||||
src="./assets/lotties/network-security.json"
|
||||
/>
|
||||
</motion.div>
|
||||
</motion.div>
|
||||
);
|
||||
|
||||
@@ -14,7 +14,7 @@ export function Stats() {
|
||||
autoplay
|
||||
className="size-24"
|
||||
loop
|
||||
src="/lotties/users.json"
|
||||
src="./assets/lotties/users.json"
|
||||
/>
|
||||
),
|
||||
},
|
||||
@@ -29,7 +29,7 @@ export function Stats() {
|
||||
autoplay
|
||||
className="size-24"
|
||||
loop
|
||||
src="/lotties/servers.json"
|
||||
src="./assets/lotties/servers.json"
|
||||
/>
|
||||
),
|
||||
},
|
||||
@@ -41,7 +41,7 @@ export function Stats() {
|
||||
autoplay
|
||||
className="size-24"
|
||||
loop
|
||||
src="/lotties/locations.json"
|
||||
src="./assets/lotties/locations.json"
|
||||
/>
|
||||
),
|
||||
},
|
||||
|
||||
@@ -248,7 +248,7 @@ export default function Order() {
|
||||
</p>
|
||||
<QRCodeCanvas
|
||||
imageSettings={{
|
||||
src: "/payment/alipay_f2f.svg",
|
||||
src: "./assets/payment/alipay_f2f.svg",
|
||||
width: 24,
|
||||
height: 24,
|
||||
excavate: true,
|
||||
|
||||
@@ -67,7 +67,7 @@ const PaymentMethods: React.FC<PaymentMethodsProps> = ({
|
||||
<img
|
||||
alt={item.name}
|
||||
height={48}
|
||||
src={item.icon || "/payment/balance.svg"}
|
||||
src={item.icon || "./assets/payment/balance.svg"}
|
||||
width={48}
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -234,7 +234,7 @@ export default function Page() {
|
||||
</p>
|
||||
<QRCodeCanvas
|
||||
imageSettings={{
|
||||
src: "/payment/alipay_f2f.svg",
|
||||
src: "./assets/payment/alipay_f2f.svg",
|
||||
width: 24,
|
||||
height: 24,
|
||||
excavate: true,
|
||||
|
||||
@@ -352,7 +352,7 @@ const CheckoutForm: React.FC<Omit<StripePaymentProps, "publishable_key">> = ({
|
||||
<>
|
||||
<QRCodeCanvas
|
||||
imageSettings={{
|
||||
src: `/payment/${method}.svg`,
|
||||
src: `./assets/payment/${method}.svg`,
|
||||
width: 24,
|
||||
height: 24,
|
||||
excavate: true,
|
||||
|
||||
Reference in New Issue
Block a user