diff --git a/admin/index.html b/admin/index.html index 7dac3e45..88d1bcd1 100644 --- a/admin/index.html +++ b/admin/index.html @@ -4,7 +4,7 @@ - Vite + React + TS + Style Share Admin
diff --git a/admin/src/assets/captcha.webp b/admin/src/assets/captcha.webp new file mode 100644 index 00000000..305a4e8f Binary files /dev/null and b/admin/src/assets/captcha.webp differ diff --git a/admin/src/components/CaptchaAdmin.tsx b/admin/src/components/CaptchaAdmin.tsx index d0de2cdb..46905244 100644 --- a/admin/src/components/CaptchaAdmin.tsx +++ b/admin/src/components/CaptchaAdmin.tsx @@ -1,5 +1,6 @@ import { useState, useEffect } from 'react'; import { IoMdRefresh } from "react-icons/io"; +import "../styles/captcha.css" const CaptchaAdmin = ({ onChange }: { onChange: (isValid: boolean) => void }) => { const [captchaText, setCaptchaText] = useState(''); @@ -33,7 +34,7 @@ const CaptchaAdmin = ({ onChange }: { onChange: (isValid: boolean) => void }) => return (
- {captchaText} + {captchaText}
diff --git a/admin/src/styles/captcha.css b/admin/src/styles/captcha.css new file mode 100644 index 00000000..92676420 --- /dev/null +++ b/admin/src/styles/captcha.css @@ -0,0 +1,6 @@ +.captcha { + background: url("../assets/captcha.webp") repeat 0 0 !important; + color: rgb(108 110 113); + display: flex; + justify-content: center; +}