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
11 changes: 11 additions & 0 deletions packages/genui/a2ui-playground/rsbuild.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,17 @@ export default defineConfig({
},
html: {
title: 'Lynx A2UI Playground',
tags: [
{
tag: 'link',
attrs: {
rel: 'icon',
type: 'image/svg+xml',
href:
'https://lf-lynx.tiktok-cdns.com/obj/lynx-artifacts-oss-sg/lynx-website/assets/lynx-dark-logo.svg',
},
},
],
},
output: {
assetPrefix: process.env.ASSET_PREFIX,
Expand Down
14 changes: 13 additions & 1 deletion packages/genui/a2ui-playground/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ import { PlaybackPage } from './pages/PlaybackPage.js';
import type { Protocol, ProtocolName } from './utils/protocol.js';
import { DEFAULT_PROTOCOL, getProtocol } from './utils/protocol.js';

const LYNX_LIGHT_LOGO =
'https://lf-lynx.tiktok-cdns.com/obj/lynx-artifacts-oss-sg/lynx-website/assets/lynx-dark-logo.svg';
const LYNX_DARK_LOGO =
'https://lf-lynx.tiktok-cdns.com/obj/lynx-artifacts-oss-sg/lynx-website/assets/lynx-light-logo.svg';

type Tab = 'create' | 'examples' | 'components' | 'playback';

interface TabDef {
Expand Down Expand Up @@ -191,7 +196,14 @@ export function App() {
return (
<div className='appShell'>
<div className='topBar'>
<span className='brand'>Lynx GenUI Playground</span>
<div className='brandGroup'>
<img
className='brandLogo'
src={theme === 'dark' ? LYNX_DARK_LOGO : LYNX_LIGHT_LOGO}
alt='Lynx'
/>
<span className='brand'>Lynx GenUI Playground</span>
</div>

<nav className='tabNav'>
{tabs.map((t) => (
Expand Down
9 changes: 9 additions & 0 deletions packages/genui/a2ui-playground/src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,18 @@ a {
.brandGroup {
display: flex;
align-items: center;
gap: 10px;
flex-shrink: 0;
}

.brandLogo {
width: 26px;
height: 26px;
display: block;
flex: 0 0 auto;
object-fit: contain;
}

.protocolSelect {
height: 30px;
padding: 0 28px 0 10px;
Expand Down
Loading