Skip to content

Commit ae7ed4d

Browse files
lots of things
1 parent 00f4a74 commit ae7ed4d

8 files changed

Lines changed: 133 additions & 32 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import React from 'react'
2+
3+
const page = () => {
4+
return (
5+
<div>
6+
sentiment analysis
7+
</div>
8+
)
9+
}
10+
11+
export default page

frontend/public/actual-home.png

418 KB
Loading

frontend/public/image.png

252 KB
Loading

frontend/src/app/auth/page.tsx

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -41,27 +41,19 @@ const RegisterPage: React.FC = () => {
4141
const handleRegister = (event: React.FormEvent): void => {
4242
event.preventDefault();
4343
if (validateForm()) {
44-
const { email } = formData;
45-
46-
// Check for keywords in the email
47-
if (email.toLowerCase().includes("hr")) {
48-
window.location.href = "http://localhost:3004/dashboard";
49-
} else if (email.toLowerCase().includes("user")) {
50-
window.location.href = "http://localhost:3005/crm";
51-
} else {
52-
alert("Access denied: email must contain 'hr' or 'user'.");
53-
}
44+
// Route to /crm page on successful login
45+
window.location.href = "/crm";
5446
}
5547
};
48+
5649
const handleGithubSignIn = () => {
57-
// Github sign-in logic here
58-
console.log("Continue with Github clicked");
59-
alert("Github Sign-In not implemented.");
50+
// Route to /crm page on GitHub sign-in
51+
window.location.href = "/crm";
6052
};
53+
6154
const handleGoogleSignIn = () => {
62-
// Google sign-in logic here
63-
console.log("Continue with Google clicked");
64-
alert("Google Sign-In not implemented.");
55+
// Route to /crm page on Google sign-in
56+
window.location.href = "/crm";
6557
};
6658

6759
return (
@@ -137,12 +129,10 @@ const RegisterPage: React.FC = () => {
137129
<h2
138130
style={{
139131
color: "#020817",
140-
/* H5 */
141-
// fontFamily: 'Inter',
142132
fontSize: "24px",
143133
fontStyle: "normal",
144134
fontWeight: 600,
145-
lineHeight: "32px" /* 133.333% */,
135+
lineHeight: "32px",
146136
letterSpacing: "-0.6px",
147137
marginBottom: "8px",
148138
}}
@@ -416,4 +406,4 @@ const RegisterPage: React.FC = () => {
416406
);
417407
};
418408

419-
export default RegisterPage;
409+
export default RegisterPage;

frontend/src/app/page.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import Feed from '@/components/Feed'
2+
import Navbar from '@/components/Navbar'
23
import React from 'react'
3-
4+
import Main from '@/components/Main'
45
const page = () => {
56
return (
67
<div>
7-
hello
8-
<Feed/>
9-
8+
<Navbar/>
9+
<Main/>
1010
</div>
1111
)
1212
}

frontend/src/components/Main.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import React from 'react'
2+
3+
const Main = () => {
4+
return (
5+
<div>
6+
7+
<img src="/actual-home.png" alt="" className="h-full w-full" />
8+
</div>
9+
)
10+
}
11+
12+
export default Main

frontend/src/components/Navbar.tsx

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
"use client";
2+
import React, { useState } from 'react';
3+
import Link from 'next/link';
4+
import { Menu, X } from 'lucide-react';
5+
6+
const Navbar = () => {
7+
const [isOpen, setIsOpen] = useState(false);
8+
9+
const toggleNavbar = () => {
10+
setIsOpen(!isOpen);
11+
};
12+
13+
return (
14+
<nav className="sticky top-0 z-50 bg-white shadow-md">
15+
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
16+
<div className="flex items-center justify-between h-16">
17+
{/* Logo */}
18+
<div className="flex items-center">
19+
<Link href="/" className="flex items-center font-bold text-xl text-indigo-600 space-x-1">
20+
<img src="/Frame 29.svg" alt="" className="h-6 w-6" />
21+
<span>FlowwBook</span>
22+
</Link>
23+
</div>
24+
25+
{/* Desktop Navigation */}
26+
<div className="hidden md:block">
27+
<div className="ml-10 flex items-center space-x-4">
28+
<Link
29+
href="/"
30+
className="px-3 py-2 rounded-md text-sm font-medium text-gray-700 hover:text-indigo-600 hover:bg-gray-50 transition-colors"
31+
>
32+
Home
33+
</Link>
34+
<Link
35+
href="/products"
36+
className="px-3 py-2 rounded-md text-sm font-medium text-gray-700 hover:text-indigo-600 hover:bg-gray-50 transition-colors"
37+
>
38+
Our Products
39+
</Link>
40+
<Link
41+
href="/auth"
42+
className="px-3 py-2 rounded-md text-sm font-medium bg-indigo-600 text-white hover:bg-indigo-700 transition-colors"
43+
>
44+
Get Started
45+
</Link>
46+
</div>
47+
</div>
48+
49+
{/* Mobile menu button */}
50+
<div className="md:hidden">
51+
<button
52+
onClick={toggleNavbar}
53+
className="inline-flex items-center justify-center p-2 rounded-md text-gray-700 hover:text-indigo-600 hover:bg-gray-50 focus:outline-none"
54+
aria-expanded="false"
55+
>
56+
<span className="sr-only">Open main menu</span>
57+
{isOpen ? <X size={24} /> : <Menu size={24} />}
58+
</button>
59+
</div>
60+
</div>
61+
</div>
62+
63+
{/* Mobile Navigation */}
64+
<div className={`md:hidden ${isOpen ? 'block' : 'hidden'}`}>
65+
<div className="px-2 pt-2 pb-3 space-y-1 sm:px-3 bg-white">
66+
<Link
67+
href="/"
68+
className="block px-3 py-2 rounded-md text-base font-medium text-gray-700 hover:text-indigo-600 hover:bg-gray-50 transition-colors"
69+
onClick={() => setIsOpen(false)}
70+
>
71+
Home
72+
</Link>
73+
<Link
74+
href="/products"
75+
className="block px-3 py-2 rounded-md text-base font-medium text-gray-700 hover:text-indigo-600 hover:bg-gray-50 transition-colors"
76+
onClick={() => setIsOpen(false)}
77+
>
78+
Our Products
79+
</Link>
80+
<Link
81+
href="/get-started"
82+
className="block px-3 py-2 rounded-md text-base font-medium bg-indigo-600 text-white hover:bg-indigo-700 transition-colors"
83+
onClick={() => setIsOpen(false)}
84+
>
85+
Get Started
86+
</Link>
87+
</div>
88+
</div>
89+
</nav>
90+
);
91+
};
92+
93+
export default Navbar;

kronos-routing/yarn.lock

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
dependencies:
1010
"@jridgewell/trace-mapping" "0.3.9"
1111

12-
"@esbuild/darwin-arm64@0.25.2":
12+
"@esbuild/linux-x64@0.25.2":
1313
version "0.25.2"
14-
resolved "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.2.tgz"
15-
integrity sha512-MpM6LUVTXAzOvN4KbjzU/q5smzryuoNjlriAIx+06RpecwCkL9JpenNzpKd2YMzLJFOdPqBpuub6eVRP5IgiSA==
14+
resolved "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.2.tgz"
15+
integrity sha512-QInHERlqpTTZ4FRB0fROQWXcYRD64lAoiegezDunLpalZMjcUcld3YzZmVJ2H/Cp0wJRZ8Xtjtj0cEHhYc/uUg==
1616

1717
"@jridgewell/resolve-uri@^3.0.3":
1818
version "3.1.2"
@@ -626,11 +626,6 @@ fresh@0.5.2:
626626
resolved "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz"
627627
integrity sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==
628628

629-
fsevents@2.3.3:
630-
version "2.3.3"
631-
resolved "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz"
632-
integrity sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==
633-
634629
function-bind@^1.1.2:
635630
version "1.1.2"
636631
resolved "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz"

0 commit comments

Comments
 (0)