diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index 3722418..0000000 --- a/.eslintrc.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": ["next/core-web-vitals", "next/typescript"] -} diff --git a/app/globals.css b/app/globals.css index 6b717ad..0cfd34e 100644 --- a/app/globals.css +++ b/app/globals.css @@ -4,18 +4,15 @@ :root { --background: #ffffff; - --foreground: #171717; + --foreground: #898989; } -@media (prefers-color-scheme: dark) { - :root { +.dark{ --background: #0a0a0a; --foreground: #ededed; - } -} +} body { - color: var(--foreground); - background: var(--background); + color: var(--foreground); font-family: Arial, Helvetica, sans-serif; } diff --git a/app/page.tsx b/app/page.tsx index 9007252..34781f7 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -1,101 +1,36 @@ -import Image from "next/image"; +import Image from 'next/image'; +import NextLink from 'next/link'; +import { RiRobot2Line } from 'react-icons/ri'; +import Navbar from '@/components/navbar'; +import Button from '@/components/button'; +import Message from '@/components/chat-components/message'; export default function Home() { return ( -
-
- Next.js logo -
    -
  1. - Get started by editing{" "} - - app/page.tsx - - . -
  2. -
  3. Save and see your changes instantly.
  4. -
- -
- - Vercel logomark - Deploy now - - - Read our docs - -
+
+
+ + +

+ Hello! Welcome to LSEF. I'm here to help you. +

+
+ +

Please select a Stock Exchange.

+ + + +
+ +

London Stock Exchange

+
-
); } diff --git a/components/button/index.tsx b/components/button/index.tsx new file mode 100644 index 0000000..24d29dc --- /dev/null +++ b/components/button/index.tsx @@ -0,0 +1,20 @@ +import Image from 'next/image'; +import NextLink from 'next/link'; +import { RiRobot2Line } from 'react-icons/ri'; + +export default function Button(props: { + className?: string; + children: any; + variant?: 'primary' | 'outline'; + type?: 'submit'; +}) { + const { className, variant, type, children } = props; + return ( + + ); +} diff --git a/components/chat-components/message.tsx b/components/chat-components/message.tsx new file mode 100644 index 0000000..2227306 --- /dev/null +++ b/components/chat-components/message.tsx @@ -0,0 +1,16 @@ +export default function Message(props: { + className?: string; + children: any; + variant?: 'bot' | 'user'; +}) { + const { className, variant, children } = props; + return ( +
+ {children} +
+ ); +} diff --git a/components/navbar/index.tsx b/components/navbar/index.tsx new file mode 100644 index 0000000..f672892 --- /dev/null +++ b/components/navbar/index.tsx @@ -0,0 +1,16 @@ +import Image from 'next/image'; +import NextLink from 'next/link'; +import { RiRobot2Line } from 'react-icons/ri'; + +export default function Navbar() { + return ( +
+ +
+ +
+
+

LSEG chatbot

+
+ ); +} diff --git a/package.json b/package.json index 98961cc..ace0b98 100644 --- a/package.json +++ b/package.json @@ -9,18 +9,20 @@ "lint": "next lint" }, "dependencies": { + "next": "15.0.1", + "prettier": "^3.3.3", "react": "19.0.0-rc-69d4b800-20241021", "react-dom": "19.0.0-rc-69d4b800-20241021", - "next": "15.0.1" + "react-icons": "^5.3.0" }, "devDependencies": { - "typescript": "^5", "@types/node": "^20", "@types/react": "^18", "@types/react-dom": "^18", + "eslint": "^8", + "eslint-config-next": "15.0.1", "postcss": "^8", "tailwindcss": "^3.4.1", - "eslint": "^8", - "eslint-config-next": "15.0.1" + "typescript": "^5" } } diff --git a/tailwind.config.ts b/tailwind.config.ts index d43da91..f03ecea 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -1,16 +1,23 @@ -import type { Config } from "tailwindcss"; +import type { Config } from 'tailwindcss'; const config: Config = { content: [ - "./pages/**/*.{js,ts,jsx,tsx,mdx}", - "./components/**/*.{js,ts,jsx,tsx,mdx}", - "./app/**/*.{js,ts,jsx,tsx,mdx}", + './pages/**/*.{js,ts,jsx,tsx,mdx}', + './components/**/*.{js,ts,jsx,tsx,mdx}', + './app/**/*.{js,ts,jsx,tsx,mdx}', ], theme: { extend: { colors: { - background: "var(--background)", - foreground: "var(--foreground)", + background: 'var(--background)', + foreground: 'var(--foreground)', + primary: { + 50: '#eaf5fe', + 500: '#011ffd', + }, + gray: { + 300: '#f2f2f2', + }, }, }, }, diff --git a/tsconfig.json b/tsconfig.json index d8b9323..1d3d1f1 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -8,7 +8,7 @@ "noEmit": true, "esModuleInterop": true, "module": "esnext", - "moduleResolution": "bundler", + "moduleResolution": "node", "resolveJsonModule": true, "isolatedModules": true, "jsx": "preserve",