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
15 changes: 15 additions & 0 deletions apps/shell/src/renderer/src/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1260,6 +1260,11 @@ function CloudProjectsView() {
</header>
{renderBody()}
</section>
<footer className="powered-by">
<button type="button" onClick={() => void window.aiOffice.openZeroAgency?.()}>
{t('poweredByZeroAgency')}
</button>
</footer>
</main>
)
}
Expand Down Expand Up @@ -2546,6 +2551,14 @@ export function Home() {
)
}

const renderPoweredBy = () => (
<footer className="powered-by">
<button type="button" onClick={() => void window.aiOffice.openZeroAgency?.()}>
{t('poweredByZeroAgency')}
</button>
</footer>
)

const renderEmpty = (hint: string) => (
<p className="empty proj-empty">
<svg
Expand Down Expand Up @@ -2656,6 +2669,7 @@ export function Home() {
</div>
)}
</section>
{renderPoweredBy()}
</main>
)
}
Expand Down Expand Up @@ -2775,6 +2789,7 @@ export function Home() {
</div>
)}
</section>
{renderPoweredBy()}
</main>
)
}
Expand Down
27 changes: 27 additions & 0 deletions apps/shell/src/renderer/src/home.css
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,33 @@ body.vib .home {
padding: 28px 36px 40px;
overflow-y: auto;
background: var(--bg-content);
/* column flex so .powered-by can pin to the bottom of short content */
display: flex;
flex-direction: column;
}

/* product credit pinned to the bottom of the content column */
.powered-by {
margin-top: auto;
padding-top: 28px;
display: flex;
justify-content: center;
}

.powered-by button {
border: none;
background: none;
font: inherit;
font-size: 12px;
color: var(--text-muted);
cursor: pointer;
padding: 4px 10px;
border-radius: 6px;
}

.powered-by button:hover {
color: var(--accent);
background: var(--bg-hover);
}

.section-head {
Expand Down
Loading