From b5d5b2ea6183d0fc385bc612e7a8144b1c0ffd2b Mon Sep 17 00:00:00 2001 From: Sakindu Ransindu Date: Thu, 26 Dec 2024 02:56:19 +0530 Subject: [PATCH] design changes to reachus & sponsor --- README.md | 2 ++ src/app/admin/dashboard/reachus/page.tsx | 10 ++++++ src/app/admin/dashboard/sponsors/page.tsx | 22 +++++++++++++ src/app/page.tsx | 20 +++++------ .../blocks/expandable-card-standard.tsx | 2 +- .../reach-us-contact-add-update-modal.tsx | 18 ++++++++++ .../modals/sponsor-add-update-modal.tsx | 33 +++++++++++++++++++ src/components/blocks/reach-us-section.tsx | 22 ++++++++++--- src/components/ui/floating-navbar.tsx | 28 ++++++++++------ src/components/ui/google-gemini-effect.tsx | 8 ++--- src/components/ui/hover-border-gradient.tsx | 26 ++++++++++----- src/interfaces/IContacts.ts | 1 + src/interfaces/ISponsors.ts | 2 ++ 13 files changed, 154 insertions(+), 40 deletions(-) diff --git a/README.md b/README.md index 2b53147..96aaa8c 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[Deployed with FTP Deploy Action](https://github.com/SamKirkland/FTP-Deploy-Action) + This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app). ## Getting Started diff --git a/src/app/admin/dashboard/reachus/page.tsx b/src/app/admin/dashboard/reachus/page.tsx index ab95340..25194cc 100644 --- a/src/app/admin/dashboard/reachus/page.tsx +++ b/src/app/admin/dashboard/reachus/page.tsx @@ -70,6 +70,9 @@ export default function ManageReachUsContacts() { + @@ -99,6 +102,13 @@ export default function ManageReachUsContacts() { key={contact.id} className="odd:bg-white odd:dark:bg-gray-900 even:bg-gray-50 even:dark:bg-gray-800 border-b dark:border-gray-700" > + + + + @@ -104,6 +110,22 @@ export default function ManageSponsors() { > {sponsor.name} + + + + + +
+ Line + Contact name + {contact.line} + Sponsor name + Partnership + + Order + Image + {sponsor.partnership} + + {sponsor.order} +
{ const Para = ({ level, + partnership, name, imgURL, loadCallback, }: { level: string; + partnership: string; name: string; imgURL: string | undefined; loadCallback?: (count: number) => void; @@ -186,14 +188,12 @@ const Para = ({
- {level} -
- Sponsor + {partnership}
{/* Image Section */} @@ -348,7 +348,7 @@ export default function Home() { loop={true} animationData={LoadingAnimation} play - style={{ width: 300, height: 300 }} + style={{ width: 150, height: 150 }} onLoopComplete={loadingTimeout} />
@@ -379,7 +379,7 @@ export default function Home() {
-

+

Thank You for Your Support!

@@ -405,12 +405,7 @@ export default function Home() {

{sponsors .sort((a, b) => { - // Custom sorting: Gold first, then Silver, others later - if (a.level === "Gold") return -1; - if (b.level === "Gold") return 1; - if (a.level === "Silver") return -1; - if (b.level === "Silver") return 1; - return 0; // No change for other levels + return a.order - b.order; }) .map((sponsor, index) => ( ))} diff --git a/src/components/blocks/expandable-card-standard.tsx b/src/components/blocks/expandable-card-standard.tsx index ef53680..9902407 100644 --- a/src/components/blocks/expandable-card-standard.tsx +++ b/src/components/blocks/expandable-card-standard.tsx @@ -108,7 +108,7 @@ export default function ExpandableCard() { Registered Companies -
+
{active && typeof active === "object" && ( { @@ -124,6 +125,7 @@ function ReachUsContactAddUpdateModal({ contact: contactTelContact, post : contactPost, photo: imgURL, + line: line, isVisibleToPublic: isVisibleToPublic, }; @@ -202,6 +204,22 @@ function ReachUsContactAddUpdateModal({ />
+
+ + +
+
+
+
+ + setSponsorPartnership(e.target.value)} + /> +
+ +
+ + setSponsorOrder(parseInt(e.target.value))} + /> +
+