Skip to content
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
2 changes: 1 addition & 1 deletion locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"collapse": "Collapse sidebar",
"expand": "Expand sidebar",
"signInTitle": "Log in to Comfy",
"signInBody": "Sync your work and run it on Comfy Cloud."
"signInBody": "Sync and run on Comfy Cloud"
},
"home": {
"title": "Welcome. Let's create!",
Expand Down
2 changes: 1 addition & 1 deletion locales/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"collapse": "收起侧边栏",
"expand": "展开侧边栏",
"signInTitle": "登录 Comfy",
"signInBody": "同步你的作品,并在 Comfy Cloud 上运行。"
"signInBody": "在 Comfy Cloud 上同步和运行"
},
"home": {
"title": "欢迎。开始创作吧!",
Expand Down
Binary file not shown.
Binary file removed src/renderer/src/assets/sidebar/portrait-sun.jpg
Binary file not shown.
25 changes: 7 additions & 18 deletions src/renderer/src/panel/SidebarAccount.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,11 @@ import DevPlatformWorkspaceSelector from '../views/devplatform/DevPlatformWorksp
import { useAuthStore } from '../stores/authStore'
import { useDashboardScopeStore } from '../stores/dashboardScopeStore'
import hillsSunset from '../assets/sidebar/hills-sunset.jpg'
import portraitGarden from '../assets/sidebar/portrait-garden.jpg'
import portraitSun from '../assets/sidebar/portrait-sun.jpg'

const { collapsed } = defineProps<{
collapsed: boolean
}>()

const SHOWCASE_IMAGES = [portraitSun, hillsSunset, portraitGarden]

const { t } = useI18n()
const store = useAuthStore()
const dashboardScope = useDashboardScopeStore()
Expand Down Expand Up @@ -115,21 +111,14 @@ async function onSignOut(): Promise<void> {
v-else
class="group/signin rounded-xl bg-[oklch(1_0_0/0.04)] p-1 text-[13px]/[1.35] text-pretty [box-shadow:inset_0_0_0_1px_oklch(1_0_0/0.06)]"
>
<div class="relative grid h-16 grid-cols-3 gap-0.5 overflow-hidden rounded-lg">
<span
v-for="image in SHOWCASE_IMAGES"
:key="image"
class="relative isolate overflow-hidden bg-[oklch(0.87_0.075_350)]"
>
<img
:src="image"
alt=""
class="size-full object-cover mix-blend-multiply transition-transform duration-600 ease-out group-hover/signin:scale-108 motion-reduce:transition-none"
/>
<span class="absolute inset-0 bg-[oklch(0.26_0.1_282)] mix-blend-lighten" />
</span>
<div class="relative h-18 overflow-hidden rounded-lg">
<img
:src="hillsSunset"
alt=""
class="size-full object-cover transition-transform duration-600 ease-[cubic-bezier(0.16,1,0.3,1)] group-hover/signin:-translate-y-0.5 group-hover/signin:scale-108 motion-reduce:transition-none"
/>
<span
class="absolute top-1/2 left-1/2 flex size-[30px] -translate-1/2 items-center justify-center rounded-[9px] bg-white text-[#111] shadow-lg"
class="absolute top-1/2 left-1/2 flex size-[30px] -translate-1/2 items-center justify-center rounded-[9px] bg-white text-[#111] shadow-lg transition-transform duration-400 ease-[cubic-bezier(0.16,1,0.3,1)] group-hover/signin:-translate-y-[calc(50%+2px)] group-hover/signin:scale-105 motion-reduce:transition-none"
aria-hidden="true"
>
<ComfyCLogo :size="14" />
Expand Down
Loading