diff --git a/front/.eslintrc.json b/front/.eslintrc.json index a37c6a81..06bacac5 100644 --- a/front/.eslintrc.json +++ b/front/.eslintrc.json @@ -12,6 +12,6 @@ { "max": 75, "skipBlankLines": true, "skipComments": true } ], "complexity": ["error", 6], - "prettier/prettier": ["error", { "tabWidth": 4 }] + "prettier/prettier": ["error", {"tabWidth": 4}] } } diff --git a/front/src/app/EmptyLogs.tsx b/front/src/app/EmptyLogs.tsx index b44424bb..7537f665 100644 --- a/front/src/app/EmptyLogs.tsx +++ b/front/src/app/EmptyLogs.tsx @@ -1,4 +1,4 @@ -import { CardAtom } from "@/atomic/atoms/CardAtom"; +import { CardAtom } from "@/atomic/atoms"; import Link from "next/link"; export default function EmptyLogs() { diff --git a/front/src/app/LogsTable.tsx b/front/src/app/LogsTable.tsx index ee9daa4d..6d2715ad 100644 --- a/front/src/app/LogsTable.tsx +++ b/front/src/app/LogsTable.tsx @@ -1,5 +1,5 @@ "use client"; -import { CardAtom } from "@/atomic/atoms/CardAtom"; +import { CardAtom, SearchIcon, TextInput } from "@/atomic/atoms"; import { llm_logs } from "@prisma/client"; import { useRouter } from "next/navigation"; @@ -11,6 +11,7 @@ export default function LogsTable({ logs }: Props) { return ( + } /> diff --git a/front/src/app/loading.tsx b/front/src/app/loading.tsx index 7c038da6..b5457d9f 100644 --- a/front/src/app/loading.tsx +++ b/front/src/app/loading.tsx @@ -1,5 +1,4 @@ -import { AnimatedPulseAtom } from "@/atomic/atoms/AnimatedPulseAtom"; -import { CardAtom } from "@/atomic/atoms/CardAtom"; +import { AnimatedPulseAtom, CardAtom } from "@/atomic/atoms"; export default function Loading() { return ( diff --git a/front/src/app/logs/[id]/page.tsx b/front/src/app/logs/[id]/page.tsx index 4e111360..b8f4c6f2 100644 --- a/front/src/app/logs/[id]/page.tsx +++ b/front/src/app/logs/[id]/page.tsx @@ -1,4 +1,4 @@ -import { CardAtom } from "@/atomic/atoms/CardAtom"; +import { CardAtom } from "@/atomic/atoms"; import { LogsData } from "@/data/LogsData"; export default async function LogDetails({ diff --git a/front/src/atomic/atoms/CardAtom.tsx b/front/src/atomic/atoms/CardAtom.tsx index 2504cf20..e8b91786 100644 --- a/front/src/atomic/atoms/CardAtom.tsx +++ b/front/src/atomic/atoms/CardAtom.tsx @@ -1,6 +1,6 @@ export const CardAtom = ({ children }: { children: React.ReactNode }) => { return ( -
+
{children}
); diff --git a/front/src/atomic/atoms/SearchIcon.tsx b/front/src/atomic/atoms/SearchIcon.tsx new file mode 100644 index 00000000..73379c2b --- /dev/null +++ b/front/src/atomic/atoms/SearchIcon.tsx @@ -0,0 +1,14 @@ +export const SearchIcon = () => { + return ( + + + + ); +}; diff --git a/front/src/atomic/atoms/TextInput.tsx b/front/src/atomic/atoms/TextInput.tsx new file mode 100644 index 00000000..bfb7b7d8 --- /dev/null +++ b/front/src/atomic/atoms/TextInput.tsx @@ -0,0 +1,20 @@ +import React from "react"; + +export const TextInput = ({ + placeholder = "", + icon = "", +}: { + placeholder: string; + icon: React.ReactNode; +}) => { + return ( +
+ +
{icon}
+
+ ); +}; diff --git a/front/src/atomic/atoms/index.ts b/front/src/atomic/atoms/index.ts new file mode 100644 index 00000000..ff467363 --- /dev/null +++ b/front/src/atomic/atoms/index.ts @@ -0,0 +1,6 @@ +export * from "./CardAtom"; +export * from "./AnimatedPulseAtom"; +export * from "./OmnilogLogo"; +export * from "./TheodoLogo"; +export * from "./TextInput"; +export * from "./SearchIcon"; diff --git a/front/src/atomic/molecules/Scaffold.tsx b/front/src/atomic/molecules/Scaffold.tsx index 88c10477..3338e721 100644 --- a/front/src/atomic/molecules/Scaffold.tsx +++ b/front/src/atomic/molecules/Scaffold.tsx @@ -1,5 +1,4 @@ -import { OmnilogLogo } from "../atoms/OmnilogLogo"; -import { TheodoLogo } from "../atoms/TheodoLogo"; +import { OmnilogLogo, TheodoLogo } from "../atoms"; export const Scaffold = ({ children }: { children: React.ReactNode }) => { return ( diff --git a/front/tailwind.config.ts b/front/tailwind.config.ts index 93950d48..b947e95d 100644 --- a/front/tailwind.config.ts +++ b/front/tailwind.config.ts @@ -12,6 +12,15 @@ const config: Config = { "gradient-conic": "conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))", }, + colors: { + "theodo-green": "#6CBC9C", + "theodo-dark-green": "#374B42", + "theodo-grey": "#9AB0A6", + "theodo-sharp-blue": "#0062AD", + "theodo-light-blue": "#6CB4E6", + "theodo-turquoise": "#009DAC", + "theodo-blue": "#2D7FAE", + } }, }, plugins: [],