Skip to content

Commit

Permalink
Merge pull request #17 from lordlinus/theme_cust
Browse files Browse the repository at this point in the history
update theme files and asset references
  • Loading branch information
lordlinus authored Nov 11, 2024
2 parents b2a251d + e3bc39d commit 13b2cb3
Show file tree
Hide file tree
Showing 8 changed files with 69 additions and 13 deletions.
File renamed without changes
Binary file added frontend/app/assets/bot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions frontend/app/assets/logo-agoda.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 28 additions & 9 deletions frontend/app/assets/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion frontend/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@tailwind components;
@tailwind utilities;

@import url("theme.css");
@import url("theme-capitaland.css");
@import url("boxicons/css/boxicons.min.css");

@layer base {
Expand Down
6 changes: 3 additions & 3 deletions frontend/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Button } from "@/components/ui/button";
import { Input } from "@/components/ui/input";
import Icon from "@/components/ui/icon";
import LogoImg from "@/app/assets/logo.svg";
import BotImg from "@/app/assets/bot.svg";
import BotImg from "@/app/assets/bot.png";

type Message = {
id: number;
Expand Down Expand Up @@ -155,7 +155,7 @@ export default function Component() {
</div>
) : (
<div className="flex gap-2 justify-start">
<img src={BotImg} alt="Bot" className="w-8 h-8 rounded-full" />
<img src={BotImg.src} alt="Bot" className="w-8 h-8 rounded-full" />
<div className="max-w-[80%]">
<div className="rounded-lg text-sm p-4 theme-message-bg-bot">
{message.content.startsWith("{")
Expand All @@ -172,7 +172,7 @@ export default function Component() {
))}
{isLoading && (
<div className="flex gap-2 justify-start">
<img src={BotImg} alt="Bot" className="w-8 h-8 rounded-full" />
<img src={BotImg.src} alt="Bot" className="w-8 h-8 rounded-full" />
<div className="max-w-[80%]">
<div className="flex items-center rounded-lg text-sm p-4 theme-message-bg-bot">
<Icon name="loader" className="bx-spin mr-2" />
Expand Down
File renamed without changes.
27 changes: 27 additions & 0 deletions frontend/app/theme-capitaland.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
:root {
--theme-font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Noto Sans, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;
--theme-primary-color: hsl(211, 78%, 31%);
--theme-primary-light-color: hsla(211, 78%, 31%, 0.15);
--theme-ring-outline-color: var(--theme-primary-color);
--theme-message-bg-bot: hsla(0, 0%, 78%, 0.25);
--theme-message-bg-user: hsla(148, 92%, 36%, 0.15);
--theme-avatar-bg-user: hsl(143, 100%, 31%);
--theme-avatar-text-color-user: white;
}

body {
font-family: var(--theme-font-family);
}

.theme-message-bg-bot {
background-color: var(--theme-message-bg-bot);
}

.theme-message-bg-user {
background-color: var(--theme-message-bg-user);
}

.theme-avatar-user {
background-color: var(--theme-avatar-bg-user);
color: var(--theme-avatar-text-color-user);
}

0 comments on commit 13b2cb3

Please sign in to comment.