From 9113a7905b3afba6e0945837b1a63d9d87401861 Mon Sep 17 00:00:00 2001 From: Sam <40019398+Sam-Frost@users.noreply.github.com> Date: Sun, 18 Aug 2024 00:35:27 +0530 Subject: [PATCH] fix: loader not centered #205 (#211) * fix:loader not centered #205 * Contrast enhanced for light mode --- src/app/jobs/page.tsx | 9 ++++++++- src/components/loader.tsx | 28 ++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 src/components/loader.tsx diff --git a/src/app/jobs/page.tsx b/src/app/jobs/page.tsx index 33077d3f..3d2cd097 100644 --- a/src/app/jobs/page.tsx +++ b/src/app/jobs/page.tsx @@ -1,4 +1,5 @@ import AllJobs from '@/components/all-jobs'; +import Loader from '@/components/loader'; import JobFilters from '@/layouts/job-filters'; import JobsHeader from '@/layouts/jobs-header'; import { JobQuerySchemaType } from '@/lib/validators/jobs.validator'; @@ -9,7 +10,13 @@ const page = async ({ searchParams }: { searchParams: JobQuerySchemaType }) => {
- Loading...
}> + + + + } + > diff --git a/src/components/loader.tsx b/src/components/loader.tsx new file mode 100644 index 00000000..639e2389 --- /dev/null +++ b/src/components/loader.tsx @@ -0,0 +1,28 @@ +interface LoaderParams { + size?: number; +} + +const Loader = ({ size = 8 }: LoaderParams) => { + return ( + <> + + + ); +}; + +export default Loader;