Skip to content

Commit 75b0db6

Browse files
author
Boopathi
committed
Update layout, page, and various view components
1 parent c8f581b commit 75b0db6

File tree

5 files changed

+38
-31
lines changed

5 files changed

+38
-31
lines changed

src/app/layout.tsx

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,25 @@ export default function RootLayout({
5959
{children}
6060
</div>
6161
<Toaster />
62-
<Script id="zoho-salesiq-inline" strategy="lazyOnload">
63-
{`window.$zoho=window.$zoho || {};$zoho.salesiq=$zoho.salesiq||{ready:function(){}}`}
62+
<Script id="zoho-salesiq-script" strategy="lazyOnload">
63+
{`
64+
window.$zoho = window.$zoho || {};
65+
window.$zoho.salesiq = window.$zoho.salesiq || {
66+
widgetcode: "siq770fac757336897d739f9273d8f8f7b3aec5f63c512be52582e5f9e3440d863b",
67+
values: {},
68+
ready: function () {}
69+
};
70+
71+
var d = document;
72+
var s = d.createElement("script");
73+
s.type = "text/javascript";
74+
s.id = "zsiqscript";
75+
s.defer = true;
76+
s.src = "https://salesiq.zohopublic.in/widget";
77+
var t = d.getElementsByTagName("script")[0];
78+
t.parentNode.insertBefore(s, t);
79+
`}
6480
</Script>
65-
<Script
66-
id="zsiqscript"
67-
src="https://salesiq.zohopublic.in/widget?wc=siq770fac757336897d739f9273d8f8f7b3aec5f63c512be52582e5f9e3440d863b"
68-
strategy="lazyOnload"
69-
defer
70-
/>
7181
</body>
7282
</html>
7383
);

src/app/page.tsx

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -165,14 +165,11 @@ export default function Home() {
165165

166166
// Re-run Zoho SalesIQ trigger on SPA navigation
167167
useEffect(() => {
168-
if (typeof window !== 'undefined' &&
169-
(window as any).$zoho &&
170-
(window as any).$zoho.salesiq &&
171-
(window as any).$zoho.salesiq.page &&
172-
(window as any).$zoho.salesiq.page.popup
173-
) {
174-
(window as any).$zoho.salesiq.page.popup.close('all');
175-
(window as any).$zoho.salesiq.page.popup.show();
168+
if (typeof window !== 'undefined' && (window as any).$zoho) {
169+
(window as any).$zoho.salesiq.ready = function() {
170+
(window as any).$zoho.salesiq.page.popup.close('all');
171+
(window as any).$zoho.salesiq.page.popup.show();
172+
}
176173
}
177174
}, [activeView]);
178175

@@ -395,5 +392,3 @@ export default function Home() {
395392
</>
396393
);
397394
}
398-
399-

src/components/views/corporate-challenge-details.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,14 @@ export default function CorporateChallengeDetails({
6060
return (
6161
<Dialog open={!!challenge} onOpenChange={onOpenChange}>
6262
<DialogContent className="sm:max-w-4xl h-[90vh] flex flex-col p-0">
63-
<DialogHeader className="flex-row items-center gap-4 p-6">
63+
<DialogHeader className="p-6">
64+
<div className='flex items-center gap-4'>
6465
<Image src={challenge.logo} alt={`${challenge.company} logo`} width={80} height={80} className="rounded-lg" data-ai-hint={challenge.hint} />
6566
<div>
66-
<DialogTitle className="text-3xl font-bold font-headline">{challenge.title}</DialogTitle>
67-
<DialogDescription>
68-
A challenge by {challenge.company}.
69-
</DialogDescription>
67+
<DialogTitle className="text-3xl font-bold font-headline">{challenge.title}</DialogTitle>
68+
<DialogDescription>A challenge by {challenge.company}.</DialogDescription>
7069
</div>
70+
</div>
7171
</DialogHeader>
7272

7373
<ScrollArea className="flex-grow mt-4 px-6">

src/components/views/education-booking-modal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
'use client';
33

44
import { useState } from 'react';
5-
import type { Program, Session } from '@/components/views/education';
5+
import type { EducationProgram as Program, EducationSession as Session } from '@/app/types';
66
import {
77
Dialog,
88
DialogContent,

src/components/views/msme-collaboration-details.tsx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,15 @@ export default function MSMECollaborationDetails({
5959
return (
6060
<Dialog open={!!collaboration} onOpenChange={onOpenChange}>
6161
<DialogContent className="sm:max-w-4xl h-[90vh] flex flex-col p-0">
62-
<DialogHeader className="flex-row items-center gap-4 p-6">
63-
<Image src={collaboration.logo} alt={`${collaboration.name} logo`} width={80} height={80} className="rounded-lg" data-ai-hint={collaboration.hint} />
64-
<div>
65-
<DialogTitle className="text-3xl font-bold font-headline">{collaboration.name}</DialogTitle>
66-
<DialogDescription>
67-
Collaboration opportunity in the {collaboration.sector} sector.
68-
</DialogDescription>
62+
<DialogHeader className="p-6">
63+
<div className='flex items-center gap-4'>
64+
<Image src={collaboration.logo} alt={`${collaboration.name} logo`} width={80} height={80} className="rounded-lg" data-ai-hint={collaboration.hint} />
65+
<div>
66+
<DialogTitle className="text-3xl font-bold font-headline">{collaboration.name}</DialogTitle>
67+
<DialogDescription>
68+
Collaboration opportunity in the {collaboration.sector} sector.
69+
</DialogDescription>
70+
</div>
6971
</div>
7072
</DialogHeader>
7173

0 commit comments

Comments
 (0)