Skip to content

Commit

Permalink
Merge pull request #1072 from multiversx/ag/ask-ai
Browse files Browse the repository at this point in the history
Ag/ask ai
  • Loading branch information
andreigiura authored Feb 28, 2025
2 parents 17cc610 + f1ff525 commit 39da04e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/components/AskAiButton/ChatWindow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,15 @@ const ChatWindow = ({ onClose }) => {
alignItems: "center",
}}
>
<div className="chat-modal-title" style={{ fontSize: "18px" }}>
Ask MultiversX AI
<div
className="chat-modal-title"
style={{
fontSize: "18px",
position: "relative",
marginRight: "auto",
}}
>
<span>Ask MultiversX AI</span>
</div>
<button
onClick={onClose}
Expand Down
8 changes: 8 additions & 0 deletions src/components/AskAiButton/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,20 @@ const AskAiButton = () => {
<button
className="rounded-lg bg-black dark:bg-teal-400 px-2.5 py-1.5 text-sm font-semibold text-teal-300 dark:text-black shadow-sm hover:bg-neutral-800 dark:hover:bg-teal-500 outline-none border-none focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-teal-600 inline-flex items-center justify-center"
onClick={openModal}
style={{ position: "relative", marginRight: "auto" }}
>
<FontAwesomeIcon
icon={faRobot}
className="text-center text-primary text-sm dark:text-black text-teal-300"
/>
<span className="pl-2">Ask AI</span>
<div className="absolute -top-2 right-full lg:left-full lg:right-auto -mr-3 lg:-ml-5 lg:mr-0 h-5 px-1 bg-gradient-to-tr from-[#bc82f3] via-[#FFAC73] to-[#c686ff] rounded-lg justify-center items-center inline-flex pointer-events-none">
<div className="p-0.5 rounded-lg justify-center items-center flex">
<span className="text-center text-black text-xs font-bold leading-none">
BETA
</span>
</div>
</div>
</button>
<Modal
isOpen={modalIsOpen}
Expand Down
1 change: 1 addition & 0 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -675,3 +675,4 @@ table > tfoot:not(:last-child) {
}

/* -------------------- End Dynamic Theme Support ------------------- */

0 comments on commit 39da04e

Please sign in to comment.