Skip to content

Commit

Permalink
banners constant added
Browse files Browse the repository at this point in the history
  • Loading branch information
sinanptm committed Aug 28, 2024
1 parent 284f847 commit 53d02bc
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 82 deletions.
3 changes: 2 additions & 1 deletion client/app/(patient)/new-appointment/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import AppointmentForm from "@/components/common/forms/AppointmentForm";
import Image from "next/image";
import { Metadata } from "next";
import { Banners } from "@/constants";

export const metadata: Metadata = {
title: "Products",
Expand All @@ -25,7 +26,7 @@ const Appointment = () => {
</section>

<Image
src="/assets/images/appointment-img.png"
src={Banners.patient_newAppointment}
height={1000}
width={1000}
alt="patient"
Expand Down
3 changes: 2 additions & 1 deletion client/app/(patient)/register/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Image from "next/image";
import RegistrationForm from "@/components/common/forms/RegistrationForm";
import { Banners } from "@/constants";
const Register = () => {
return (
<div className="flex h-screen max-h-screen">
Expand All @@ -20,7 +21,7 @@ const Register = () => {
</section>

<Image
src="/assets/images/register-img.png"
src={Banners.patient_register}
height={1000}
width={1000}
alt="patient"
Expand Down
3 changes: 2 additions & 1 deletion client/app/(patient)/signin/otp-verification/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { useToast } from "@/components/ui/use-toast";
import { useRouter } from "next/navigation";
import { Button } from "@/components/ui/button";
import Link from "next/link";
import { Banners } from "@/constants";

const OtpVerificationPage = () => {
const [otp, setOtp] = useState<string>("");
Expand Down Expand Up @@ -68,7 +69,7 @@ const OtpVerificationPage = () => {
</section>

<Image
src="/assets/images/onboarding-img.png"
src={Banners.otp}
height={1000}
width={1000}
alt="patient"
Expand Down
3 changes: 2 additions & 1 deletion client/app/(patient)/signin/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import SigninForm from "@/components/common/forms/SigninForm";
import Image from "next/image";
import Link from "next/link";
import { Metadata } from "next";
import { Banners } from "@/constants";

export const metadata: Metadata = {
title: "SignIn",
Expand Down Expand Up @@ -31,7 +32,7 @@ const SignIn = () => {
</section>

<Image
src="/assets/images/onboarding-img.png"
src={Banners.signin}
height={1000}
width={1000}
alt="patient"
Expand Down
3 changes: 2 additions & 1 deletion client/app/(patient)/signup/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import Image from "next/image";
import SignupForm from "@/components/common/forms/SignupForm";
import { Metadata } from "next";
import { Banners } from "@/constants";

export const metadata: Metadata = {
title: "SignUp",
Expand All @@ -24,7 +25,7 @@ const Register = () => {
</section>

<Image
src="/assets/images/register-img.png"
src={Banners.signup}
height={1000}
width={1000}
alt="patient"
Expand Down
3 changes: 2 additions & 1 deletion client/app/staff/@signin/otp-verification/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use client'
import OtpForm from "@/components/common/forms/OtpForms";
import { Banners } from "@/constants";
import Image from "next/image";
import Link from "next/link";
import { FormEvent, useState } from "react";
Expand Down Expand Up @@ -44,7 +45,7 @@ const OtpVerificationPage = () => {
</section>

<Image
src="/assets/images/onboarding-img.png"
src={Banners.staff_otp}
height={1000}
width={1000}
alt="patient"
Expand Down
3 changes: 2 additions & 1 deletion client/app/staff/@signin/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import SigninForm from "@/components/common/forms/admin/SigninForm";
import { Banners } from "@/constants";
import Image from "next/image";
import Link from "next/link";
const SignIn = () => {
Expand Down Expand Up @@ -26,7 +27,7 @@ const SignIn = () => {
</section>

<Image
src="/assets/images/onboarding-img.png"
src={Banners.staff_signin}
height={1000}
width={1000}
alt="patient"
Expand Down
101 changes: 26 additions & 75 deletions client/constants/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,7 @@ export const AvailableTimes = [
];

export const GenderOptions: string[] = ["Male", "Female", "Other"];
export const BloodTypes: string[] = [
"A+",
"A-",
"B+",
"B-",
"AB+",
"AB-",
"O+",
"O-",
];
export const BloodTypes: string[] = ["A+", "A-", "B+", "B-", "AB+", "AB-", "O+", "O-"];
export const DiseaseOptions: string[] = [
"none",
"Diabetes",
Expand Down Expand Up @@ -76,86 +67,38 @@ export const DiseaseOptions: string[] = [
"Zika Virus",
"Meningitis",
];
export const AdminSideBarLinks:SideBarLink[] = [
export const AdminSideBarLinks: SideBarLink[] = [
{
label: "Dashboard",
href: "/staff/",
icon: (
<Image
src={"/assets/icons/dashboard.svg"}
width={21}
height={23}
alt="Dashboard"
className="h-7 w-7"
/>
),
icon: <Image src={"/assets/icons/dashboard.svg"} width={21} height={23} alt="Dashboard" className="h-7 w-7" />,
},
{
label: "Profile",
href: "/staffs/profile",
admin:false,
icon: (
<Image
src={"/assets/icons/user.svg"}
width={21}
height={23}
alt="Profile"
className="h-7 w-7"
/>
),
admin: false,
icon: <Image src={"/assets/icons/user.svg"} width={21} height={23} alt="Profile" className="h-7 w-7" />,
},
{
label: "Doctors",
href: "/staff/doctors",
admin:false,
icon: (
<Image
src={"/assets/icons/doctor.svg"}
width={21}
height={23}
alt="Doctors"
className="h-7 w-7"
/>
),
admin: false,
icon: <Image src={"/assets/icons/doctor.svg"} width={21} height={23} alt="Doctors" className="h-7 w-7" />,
},
{
label: "Patients",
href: "/staff/patients",
icon: (
<Image
src={"/assets/icons/wheelchair.svg"}
width={21}
height={23}
alt="Patients"
className="h-7 w-7"
/>
),
icon: <Image src={"/assets/icons/wheelchair.svg"} width={21} height={23} alt="Patients" className="h-7 w-7" />,
},
{
label: "Products",
href: "/staff/products",
icon: (
<Image
src={"/assets/icons/store.svg"}
width={21}
height={23}
alt="Products"
className="h-7 w-7"
/>
),
icon: <Image src={"/assets/icons/store.svg"} width={21} height={23} alt="Products" className="h-7 w-7" />,
},
{
label: "Logout",
href: "/staff/logout",
icon: (
<Image
src={"/assets/icons/logout.svg"}
width={21}
height={23}
alt="Logout"
className="h-7 w-7"
/>
),
icon: <Image src={"/assets/icons/logout.svg"} width={21} height={23} alt="Logout" className="h-7 w-7" />,
},
];

Expand Down Expand Up @@ -192,7 +135,7 @@ export const DoctorList: DoctorType[] = [

export const SliderImages: string[] = [
"/assets/images/ayurveda1.jpg",
"/assets/images/onboarding-img.png"
"/assets/images/onboarding-img.png",
// "https://images.unsplash.com/photo-1485433592409-9018e83a1f0d?q=80&w=1814&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
// "https://images.unsplash.com/photo-1483982258113-b72862e6cff6?q=80&w=3456&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
// "https://images.unsplash.com/photo-1482189349482-3defd547e0e9?q=80&w=2848&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
Expand All @@ -205,29 +148,37 @@ export const FeaturesCardsHomePage: AnimatedCardProps[] = [
image: "/assets/3D/appointment.jpg",
text: "Book Your Appointment",
linkText: "Book Now",
link:"/new-appointment"
link: "/new-appointment",
},
{
heading: "Natural Medicines",
key: 2,
image: "/assets/3D/products.jpg",
text: "100% Quality",
linkText: "Shop Now",
link:"/products"
link: "/products",
},
{
heading: "Customer Support",
key: 3,
image: "/assets/3D/customer-support.jpg",
text: "24/7 Customer Service",
linkText: "Get Support",
link:"/contact"
link: "/contact",
},
];

export const Banners = {
signin: "/assets/images/onboarding-img.png",
signup: "/assets/images/register-img.png",
otp: "/assets/images/onboarding-img.png",
patient_register: "/assets/images/register-img.png",
patient_newAppointment: "/assets/images/appointment-img.png",
staff_signin: "/assets/images/onboarding-img.png",
staff_otp: "/assets/images/onboarding-img.png",
};


export const GuaranteeListHonePage:{src:string,text:string,heading:string}[] = [
export const GuaranteeListHonePage: { src: string; text: string; heading: string }[] = [
{
src: "/assets/icons/guarantees/confidential.svg",
text: "All advice & consultations are completely confidential. You can also delete chats whenever you want.",
Expand All @@ -247,5 +198,5 @@ export const GuaranteeListHonePage:{src:string,text:string,heading:string}[] = [
src: "/assets/icons/guarantees/costEffective.svg",
text: "We provide medical assistance on non urgent queries for free. Fee starting at ₹50 for faster response to queries.",
heading: "Cost Effective",
},
];
},
];

1 comment on commit 53d02bc

@vercel
Copy link

@vercel vercel bot commented on 53d02bc Aug 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.