Skip to content

Commit

Permalink
feat:fix design bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammadhasanii committed Mar 7, 2024
1 parent 9d6941b commit 0c8a828
Show file tree
Hide file tree
Showing 6 changed files with 9,554 additions and 26 deletions.
2 changes: 1 addition & 1 deletion components/Home/LazyBook.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export default function LazyBookComponent() {
return (

<div className="min-h-[15rem] flex flex-col bg-transparent dark:bg-gray-800 dark:border-gray-700 dark:shadow-slate-700/[.7]">
<div className="min-h-[15rem] flex flex-col bg-transparent ">
<div className="flex flex-auto flex-col justify-center items-center p-4 md:p-5">
<div className="flex justify-center">
<div className="animate-spin inline-block w-6 h-6 border-[3px] border-current border-t-transparent text-blue-600 rounded-full dark:text-blue-500" role="status" aria-label="loading">
Expand Down
4 changes: 3 additions & 1 deletion components/Home/PageBook.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ export default function PageBook({ id }) {
className="block disabled opacity-50 py-4 px-2 leading-8 font-heading font-medium tracking-tighter text-xl text-white text-center bg-green-600 focus:ring-2 focus:ring-green-500 focus:ring-opacity-50 hover:bg-green-600 rounded-xl"

>
رزرو کردن کتاب فقط به صورت حضوری است
{allbooks.totalEntity >0 ? <span className="font-semibold text-black">کتاب موجود است و میتوانید حضوری کتاب را امانت بگیرید</span> : <span className="text-black font-semibold">کتاب در حال حاظر توسط شخص دیگری به امانت گرفته شده است</span>}


</a>
</div>
</div>
Expand Down
18 changes: 8 additions & 10 deletions components/Login/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,9 @@ export default function Login() {
},
}).then((res) => {
localStorage.setItem("image", res.data.avatarSource);

});
setTimeout(() => {
router.push("/");

}, 1500);
} else {
toast.error(res.data?.message);
Expand All @@ -63,9 +61,9 @@ export default function Login() {

return (
<>
<Head>
<title>بوکیتو-ورود به حساب کاربری</title>
</Head>
<Head>
<title>بوکیتو-ورود به حساب کاربری</title>
</Head>
{changePassword ? (
<ChangePassword username={username} />
) : (
Expand Down Expand Up @@ -101,7 +99,7 @@ export default function Login() {
autoComplete="off"
required
value={Pn.convertEnToPe(username)}
className=" text-center h-12 appearance-textfield rounded-lg relative block w-full px-3 py-2 border border-gray-300 placeholder-gray-500 text-gray-900 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 focus:z-10 sm:text-sm"
className=" text-center h-12 bg-transparent appearance-textfield rounded-lg relative block w-full px-3 py-2 border border-gray-300 placeholder-gray-500 text-gray-900 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 focus:z-10 sm:text-sm"
placeholder="نام کاربری "
/>
<input
Expand All @@ -115,7 +113,7 @@ export default function Login() {
}
autoComplete="off"
required
className="mt-5 text-center h-12 appearance-none rounded-lg relative block w-full px-3 py-2 border border-gray-300 placeholder-gray-500 text-gray-900 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 focus:z-10 sm:text-sm"
className="mt-5 text-center h-12 bg-transparent appearance-none rounded-lg relative block w-full px-3 py-2 border border-gray-300 placeholder-gray-500 text-gray-900 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 focus:z-10 sm:text-sm"
placeholder="رمز عبور "
/>
</div>
Expand All @@ -124,7 +122,7 @@ export default function Login() {
<div>
<button
type="submit"
className="mt-8 group relative w-full flex justify-center py-2 px-4 border border-transparent text-sm font-medium rounded-md text-white bg-green-600 hover:bg-green-600 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"
className="mt-8 mb-3 group relative w-full flex justify-center py-2 px-4 border border-transparent text-sm font-medium rounded-md text-white bg-green-600 hover:bg-green-600 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"
>
<span className="absolute left-0 inset-y-0 flex items-center pl-3">
<svg
Expand All @@ -144,9 +142,9 @@ export default function Login() {
</span>
ورود
</button>

<Link href="/user/forgetpassword">
<a className="text-xs text-green-600 ">
<a className="text-xs text-green-600 ">
رمز عبور خود را فراموش کرده ام
</a>
</Link>
Expand Down
4 changes: 2 additions & 2 deletions components/User/ForgetPassword.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const ForgetPassword = () => {
minLength={10}
type="text"
autoComplete="off"
className=" text-center h-12 appearance-textfield rounded-lg relative block w-full px-3 py-2 border border-gray-300 placeholder-gray-500 text-gray-900 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 focus:z-10 sm:text-sm"
className=" text-center bg-transparent h-12 appearance-textfield rounded-lg relative block w-full px-3 py-2 border border-gray-300 placeholder-gray-500 text-gray-900 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 focus:z-10 sm:text-sm"
placeholder="کدملی"
/>
{formik.errors.username && formik.touched.username && (
Expand All @@ -104,7 +104,7 @@ const ForgetPassword = () => {
type="text"
name="studentId"
autoComplete="off"
className=" text-center h-12 appearance-textfield rounded-lg relative block w-full px-3 py-2 border border-gray-300 placeholder-gray-500 text-gray-900 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 focus:z-10 sm:text-sm"
className=" text-center bg-transparent h-12 appearance-textfield rounded-lg relative block w-full px-3 py-2 border border-gray-300 placeholder-gray-500 text-gray-900 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 focus:z-10 sm:text-sm"
placeholder="شماره دانشجویی"
/>
{formik.errors.studentId && formik.touched.studentId && (
Expand Down
Loading

0 comments on commit 0c8a828

Please sign in to comment.