Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update theme files and asset references #17

Merged
merged 1 commit into from
Nov 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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);
}
Loading