Skip to content

Commit

Permalink
style: add rotation animation to ChatGptIcon logo
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric-2369 committed Feb 12, 2025
1 parent bbbeb19 commit cb626d0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions app/components/home.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,19 @@
}
}

.chat-gpt-icon-rotate {
animation: chat-gpt-icon-rotate-keyframes 10s infinite linear;
}

@keyframes chat-gpt-icon-rotate-keyframes {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}

.window-content {
width: var(--window-content-width);
height: 100%;
Expand Down
2 changes: 1 addition & 1 deletion app/components/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ export function SideBar(props: { className?: string }) {
<SideBarHeader
title="NextChat"
subTitle="Build your own AI assistant."
logo={<ChatGptIcon />}
logo={<ChatGptIcon className={styles["chat-gpt-icon-rotate"] + " no-dark"}/>}
shouldNarrow={shouldNarrow}
>
<div className={styles["sidebar-header-bar"]}>
Expand Down

0 comments on commit cb626d0

Please sign in to comment.