✨ 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.
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.4 KiB |
@ -37,7 +37,7 @@ export default function Auth() {
|
|||||||
autoplay
|
autoplay
|
||||||
className="mx-auto hidden w-full lg:block"
|
className="mx-auto hidden w-full lg:block"
|
||||||
loop
|
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]">
|
<p className="hidden w-[275px] text-center md:w-1/2 lg:block xl:w-[500px]">
|
||||||
{site.site_desc}
|
{site.site_desc}
|
||||||
|
|||||||
@ -9,7 +9,7 @@ import { defineConfig } from "vite";
|
|||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
base: "./",
|
base: "./",
|
||||||
plugins: [
|
plugins: [
|
||||||
devtools(),
|
devtools({ eventBusConfig: { port: 42_070 } }),
|
||||||
tanstackRouter({
|
tanstackRouter({
|
||||||
target: "react",
|
target: "react",
|
||||||
autoCodeSplitting: true,
|
autoCodeSplitting: true,
|
||||||
@ -32,4 +32,7 @@ export default defineConfig({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
build: {
|
||||||
|
assetsDir: "static",
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.4 KiB |
@ -49,7 +49,7 @@ export default function Main() {
|
|||||||
autoplay
|
autoplay
|
||||||
className="mx-auto hidden w-[275px] lg:block xl:w-[500px]"
|
className="mx-auto hidden w-[275px] lg:block xl:w-[500px]"
|
||||||
loop
|
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]">
|
<p className="hidden w-[275px] text-center md:w-1/2 lg:block xl:w-[500px]">
|
||||||
{site.site_desc}
|
{site.site_desc}
|
||||||
|
|||||||
@ -45,7 +45,7 @@ export function GlobalMap() {
|
|||||||
autoplay
|
autoplay
|
||||||
className="w-full scale-150"
|
className="w-full scale-150"
|
||||||
loop
|
loop
|
||||||
src="/lotties/global-map.json"
|
src="./assets/lotties/global-map.json"
|
||||||
/>
|
/>
|
||||||
</motion.div>
|
</motion.div>
|
||||||
</motion.section>
|
</motion.section>
|
||||||
|
|||||||
@ -52,7 +52,11 @@ export function Hero() {
|
|||||||
transition={{ type: "spring", stiffness: 80, damping: 15, delay: 0.5 }}
|
transition={{ type: "spring", stiffness: 80, damping: 15, delay: 0.5 }}
|
||||||
viewport={{ once: true, amount: 0.3 }}
|
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>
|
||||||
</motion.div>
|
</motion.div>
|
||||||
);
|
);
|
||||||
|
|||||||
@ -14,7 +14,7 @@ export function Stats() {
|
|||||||
autoplay
|
autoplay
|
||||||
className="size-24"
|
className="size-24"
|
||||||
loop
|
loop
|
||||||
src="/lotties/users.json"
|
src="./assets/lotties/users.json"
|
||||||
/>
|
/>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
@ -29,7 +29,7 @@ export function Stats() {
|
|||||||
autoplay
|
autoplay
|
||||||
className="size-24"
|
className="size-24"
|
||||||
loop
|
loop
|
||||||
src="/lotties/servers.json"
|
src="./assets/lotties/servers.json"
|
||||||
/>
|
/>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
@ -41,7 +41,7 @@ export function Stats() {
|
|||||||
autoplay
|
autoplay
|
||||||
className="size-24"
|
className="size-24"
|
||||||
loop
|
loop
|
||||||
src="/lotties/locations.json"
|
src="./assets/lotties/locations.json"
|
||||||
/>
|
/>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
|
|||||||
@ -248,7 +248,7 @@ export default function Order() {
|
|||||||
</p>
|
</p>
|
||||||
<QRCodeCanvas
|
<QRCodeCanvas
|
||||||
imageSettings={{
|
imageSettings={{
|
||||||
src: "/payment/alipay_f2f.svg",
|
src: "./assets/payment/alipay_f2f.svg",
|
||||||
width: 24,
|
width: 24,
|
||||||
height: 24,
|
height: 24,
|
||||||
excavate: true,
|
excavate: true,
|
||||||
|
|||||||
@ -67,7 +67,7 @@ const PaymentMethods: React.FC<PaymentMethodsProps> = ({
|
|||||||
<img
|
<img
|
||||||
alt={item.name}
|
alt={item.name}
|
||||||
height={48}
|
height={48}
|
||||||
src={item.icon || "/payment/balance.svg"}
|
src={item.icon || "./assets/payment/balance.svg"}
|
||||||
width={48}
|
width={48}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -234,7 +234,7 @@ export default function Page() {
|
|||||||
</p>
|
</p>
|
||||||
<QRCodeCanvas
|
<QRCodeCanvas
|
||||||
imageSettings={{
|
imageSettings={{
|
||||||
src: "/payment/alipay_f2f.svg",
|
src: "./assets/payment/alipay_f2f.svg",
|
||||||
width: 24,
|
width: 24,
|
||||||
height: 24,
|
height: 24,
|
||||||
excavate: true,
|
excavate: true,
|
||||||
|
|||||||