added color to modal and made the labels same font

This commit was merged in pull request #652.
This commit is contained in:
victorAnumudu
2024-03-19 22:42:52 +01:00
parent f779529cc6
commit 4e741f587c
11 changed files with 74 additions and 53 deletions
@@ -52,7 +52,13 @@ export default function FamilyActivities() {
<span>Family</span>
</Link>
</div>
<Suspense fallback={<LoadingSpinner color="sky-blue" size="16" />}>
<Suspense
fallback={
<div className="bg-white">
<LoadingSpinner color="sky-blue" size="16" height='h-[30rem]' />
</div>
}
>
<FamilyTableNew />
</Suspense>
</div>
@@ -80,7 +80,7 @@ const AssignTaskPopout = ({
setRequestStatus({ loading: true, status: false, message: "" });
if(!selectedFamilyUid){ // If no family found, throw error
setRequestStatus({ loading: false, status: false, message: "Please Select Family Member" });
setRequestStatus({ loading: false, status: false, message: "Please Select a Kid" });
return setTimeout(() => {
setRequestStatus({ loading: false, status: false, message: "" });
}, 3000);
@@ -235,8 +235,8 @@ const AssignTaskPopout = ({
<>
<ModalCom action={action} situation={situation}>
<div className="w-11/12 lg:w-[700px] bg-white dark:bg-dark-white lg:rounded-2xl overflow-y-auto">
<div className="w-full flex items-center justify-between lg:px-10 lg:py-8 px-[30px] py-[23px] bg-sky-blue/50 border-b dark:border-[#5356fb29] border-light-purple">
<h1 className="text-26 font-bold text-dark-gray dark:text-white tracking-wide flex items-center">
<div className="modal-header-con">
<h1 className="modal-title">
{details ? (
` Assign ${details?.firstname}'s Task`
) : familyDetailsData ? (
@@ -244,11 +244,11 @@ const AssignTaskPopout = ({
) : (
<div className="flex items-center gap-2">
<span className="text-black">Assign task to{" "}</span>
<div className="w-[270px] h-[40px] flex items-center relative after:absolute after:content-['▼'] active:after:rotate-180 after:transition-all after:duration-300 after:z-20 after:right-2 after:top-1/2 after:-translate-y-1/2 after:text-white after:text-lg">
<div className="w-[270px] h-[40px] flex items-center">
<select
name=""
id=""
className="relative z-10 appearance-none text-lg text-white px-2 tracking-wide font-semibold transition-all cursor-pointer bg-blue-900 focus:outline-none border border-gray-200 rounded-full w-full h-full"
className="text-lg text-black/80 px-2 tracking-wide font-semibold transition-all cursor-pointer bg-white focus:outline-none border border-gray-200 rounded-full w-full h-full"
onChange={handleFamChange}
value={selectedFamilyUid}
>
@@ -263,7 +263,7 @@ const AssignTaskPopout = ({
</h1>
<button
type="button"
className="text-[#000] dark:text-red-500"
className="modal-close-btn"
onClick={action}
>
<svg