Skip to content

Commit

Permalink
Dark mode welcome page (#2444)
Browse files Browse the repository at this point in the history
* dark mode welcome page styles + refactor

* remove AI_BACKGROUND_COLOR and USER_BACKGROUND_COLOR constants
  • Loading branch information
shatfield4 authored Oct 9, 2024
1 parent 29eff8a commit a2098a7
Show file tree
Hide file tree
Showing 5 changed files with 135 additions and 216 deletions.
4 changes: 1 addition & 3 deletions frontend/src/components/ChatBubble/index.jsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
import React from "react";
import UserIcon from "../UserIcon";
import { userFromStorage } from "@/utils/request";
import { AI_BACKGROUND_COLOR, USER_BACKGROUND_COLOR } from "@/utils/constants";

export default function ChatBubble({ message, type, popMsg }) {
const isUser = type === "user";
const backgroundColor = isUser ? USER_BACKGROUND_COLOR : AI_BACKGROUND_COLOR;

return (
<div className={`flex justify-center items-end w-full ${backgroundColor}`}>
<div className={`flex justify-center items-end w-full bg-theme-bg-secondary`}>
<div className={`py-8 px-4 w-full flex gap-x-5 md:max-w-[80%] flex-col`}>
<div className="flex gap-x-5">
<UserIcon
Expand Down
Loading

0 comments on commit a2098a7

Please sign in to comment.