-
Notifications
You must be signed in to change notification settings - Fork 86
feat(f36-ai-components): add AIChatLayout component #3203
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
feat(f36-ai-components): add AIChatLayout component #3203
Conversation
…ne of a title or icon
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
packages/f36-ai-components/src/AIChatLayout/AIChatLayout.styles.ts
Outdated
Show resolved
Hide resolved
| <svg xmlns="http://www.w3.org/2000/svg" width={0} height={0}> | ||
| <defs> | ||
| <linearGradient | ||
| id="icon-gradient" | ||
| gradientTransform="rotate(46.64 .5 .5)" | ||
| gradientUnits="objectBoundingBox" | ||
| > | ||
| <stop offset="19.41%" stopColor="#1872E5" /> | ||
| <stop offset="38.04%" stopColor="#8C2EEA" /> | ||
| <stop offset="56.68%" stopColor="#E65325" /> | ||
| <stop offset="75.31%" stopColor="#EAAF09" /> | ||
| </linearGradient> | ||
| </defs> | ||
| </svg> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mshaaban0 / @contentful/team-ui-foundation Do you have any advice on where best to put this SVG? It's used to apply a gradient to the icon (see aiGradientIcon in the styles)? I previously had tried to avoid needing to place it in the DOM, and had something working with a CSS fill with a data URL, however it didn't work with Safari.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's fine to keep it in it's own file.. I recommend making it an icon with icon component helper, See https://github.com/contentful/forma-36/tree/main/packages/components/icons/src/custom
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great stuff 💅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very Nice 🥇
6a44dfe
into
PIC-694-forma36-create-aichatlayout-component
…tlayout-component-implementation feat(f36-ai-components): add AIChatLayout component
Purpose of PR
This PR continues from #3202 by adding the
AIChatLayoutcomponent.Notes
PR Checklist
readme.mdfile(s)