1
0

update for astro

This commit is contained in:
2025-07-26 15:31:43 +08:00
parent 90126beb35
commit 51733f3f2e
50 changed files with 8300 additions and 12 deletions

View File

@@ -0,0 +1,35 @@
import { EvWechat } from '../components/EvWechat';
import { toast } from 'react-toastify';
export const RedirectSuccess = ({ url }: { url: string }) => {
return (
<div className='flex flex-col items-center justify-center p-2'>
<div className='flex flex-col gap-2 mb-3'>
<div className=' font-semibold'></div>
<a
href={url}
className='text-blue-600 hover:text-blue-800 transition-colors duration-200 hover:underline block truncate'
target='_blank'
rel='noopener noreferrer'>
</a>
</div>
</div>
);
};
export const toastSuccess = (url: string) => {
toast.success(<RedirectSuccess url={url} />, {
autoClose: 5000,
className: 'rounded-md shadow-lg',
// icon: false,
});
};
export const toastWeChat = () => {
toast.success(<EvWechat />, {
autoClose: 10000,
className: 'rounded-md shadow-lg',
icon: false,
});
};