File tree 5 files changed +39
-8
lines changed
5 files changed +39
-8
lines changed Original file line number Diff line number Diff line change 15
15
"react-dom" : " ^18.2.0" ,
16
16
"react-router-dom" : " ^6.20.0" ,
17
17
"react-markdown" : " ^8.0.7" ,
18
- "react-hot-toast" : " ^2.4.1"
18
+ "react-hot-toast" : " ^2.4.1" ,
19
+ "uuid" : " ^9.0.1"
19
20
},
20
21
"devDependencies" : {
21
22
"@types/react" : " ^18.2.37" ,
22
23
"@types/react-dom" : " ^18.2.15" ,
24
+ "@types/uuid" : " ^9.0.7" ,
23
25
"@typescript-eslint/eslint-plugin" : " ^6.10.0" ,
24
26
"@typescript-eslint/parser" : " ^6.10.0" ,
25
27
"@vitejs/plugin-react" : " ^4.2.0" ,
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
2
import { BrowserRouter as Router , Routes , Route } from 'react-router-dom' ;
3
3
import { AuthProvider } from './contexts/AuthContext' ;
4
+ import { Toaster } from 'react-hot-toast' ;
4
5
import Navbar from './components/Navbar' ;
5
6
import Footer from './components/Footer' ;
6
7
import Home from './pages/Home' ;
@@ -11,6 +12,7 @@ import UseCases from './pages/UseCases';
11
12
import KnowledgeBase from './pages/KnowledgeBase' ;
12
13
import Contact from './pages/Contact' ;
13
14
import Login from './pages/Login' ;
15
+ import RequestAccess from './pages/RequestAccess' ;
14
16
15
17
function App ( ) {
16
18
return (
@@ -28,9 +30,11 @@ function App() {
28
30
< Route path = "/knowledge-base" element = { < KnowledgeBase /> } />
29
31
< Route path = "/contact" element = { < Contact /> } />
30
32
< Route path = "/login" element = { < Login /> } />
33
+ < Route path = "/request-access" element = { < RequestAccess /> } />
31
34
</ Routes >
32
35
</ main >
33
36
< Footer />
37
+ < Toaster position = "top-center" />
34
38
</ div >
35
39
</ Router >
36
40
</ AuthProvider >
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ const Navbar = () => {
21
21
{ name : 'Use Cases' , path : '/use-cases' } ,
22
22
{ name : 'Knowledge Base' , path : '/knowledge-base' } ,
23
23
{ name : 'Contact' , path : '/contact' } ,
24
+ { name : 'Request Access' , path : '/request-access' } ,
24
25
] ;
25
26
26
27
const handleTryFree = ( ) => {
Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ import { Link } from 'react-router-dom';
4
4
import EditableContent from '../components/EditableContent' ;
5
5
6
6
const Home = ( ) => {
7
+ const handleTryFree = ( ) => {
8
+ window . open ( 'https://91.107.255.176:8080/' , '_blank' ) ;
9
+ } ;
10
+
7
11
return (
8
12
< div >
9
13
{ /* Hero Section */ }
@@ -30,16 +34,16 @@ const Home = () => {
30
34
type = "paragraph"
31
35
/>
32
36
< div className = "flex flex-col sm:flex-row gap-4" >
33
- < Link
34
- to = "/contact"
37
+ < button
38
+ onClick = { handleTryFree }
35
39
className = "inline-flex items-center justify-center px-6 py-3 border border-transparent text-base font-medium rounded-md text-blue-700 bg-white hover:bg-gray-50 transition-colors"
36
40
>
37
41
< EditableContent
38
42
id = "home-hero-cta"
39
43
defaultContent = "Get Started"
40
44
/>
41
45
< ArrowRight className = "ml-2 h-5 w-5" />
42
- </ Link >
46
+ </ button >
43
47
< Link
44
48
to = "/how-it-works"
45
49
className = "inline-flex items-center justify-center px-6 py-3 border border-white text-base font-medium rounded-md text-white hover:bg-white/10 transition-colors"
@@ -129,16 +133,16 @@ const Home = () => {
129
133
defaultContent = "Join leading financial institutions who trust Kanz.ai for their document management needs."
130
134
type = "paragraph"
131
135
/>
132
- < Link
133
- to = "/contact"
136
+ < button
137
+ onClick = { handleTryFree }
134
138
className = "inline-flex items-center justify-center px-8 py-3 border border-transparent text-base font-medium rounded-md text-blue-600 bg-white hover:bg-gray-50 transition-colors"
135
139
>
136
140
< EditableContent
137
141
id = "home-cta-button"
138
142
defaultContent = "Start Free Trial"
139
143
/>
140
144
< ArrowRight className = "ml-2 h-5 w-5" />
141
- </ Link >
145
+ </ button >
142
146
</ div >
143
147
</ section >
144
148
</ div >
You can’t perform that action at this time.
0 commit comments