Files
WRNexusJSDoc/app/pages/components/logo-cloud.wrn
T
2026-07-22 01:56:18 +05:30

171 lines
13 KiB
Plaintext

page LogoCloudcomponent {
seo {
title = "LogoCloud component"
description = "Reusable logo cloud component."
}
view {
<div class="docs-shell">
<SkipLink label="Skip to content" href="#main" class="docs-skip-link" />
<header class="topbar">
<a class="brand" href="/"><span>W</span> WRNexusJS</a>
<nav aria-label="Primary"><a href="/getting-started">Get started</a><a href="/packages">Packages</a><a href="/components">Components</a><a href="/language">Language</a><a href="/architecture">Architecture</a></nav>
<div class="topbar-actions"><a class="preview-pill" href="/access">Private preview · v0.2.77</a><button data-wire-theme-toggle class="theme-button" aria-label="Toggle color theme" title="Toggle color theme">◐</button></div>
</header>
<div class="mobile-doc-nav"><details><summary>Browse documentation</summary><nav><a href="/getting-started">Get started</a><a href="/packages">Packages</a><a href="/components">Components</a><a href="/language">Language</a><a href="/architecture">Architecture</a><a href="/tutorial">Tutorial</a><a href="/guides/project-structure">Guides</a><a href="/examples">Examples</a><a href="/search">Search</a></nav></details></div>
<main class="portal-main docs-layout component-detail-page"><article id="main" class="documentation prose standalone"><nav class="breadcrumbs" aria-label="Breadcrumb"><a href="/">Home</a><span>/</span><a href="/components">Components</a><span>/</span><span aria-current="page">LogoCloud</span></nav><section class="doc-intro"><span class="eyebrow">core component</span><h1>LogoCloud</h1><p>Reusable logo cloud component.</p><div class="doc-meta"><span>@wrnexus/ui 0.2.77</span><span>11 props</span><span>0 slots</span><span>0 events</span></div></section><section id="usage"><h2>Usage</h2><p>Components are auto-discovered. Use the component directly in any <code>.wrn</code> view:</p><pre data-language="wrn"><code>&lt;LogoCloud
eyebrow=&quot;eyebrow&quot;
title=&quot;Trusted by teams building modern products&quot;
description=&quot;description&quot;
logos=&quot;[]&quot;
centered=&quot;true&quot;
/&gt;</code></pre><p>Legacy mount name: <code>data-component=&quot;LogoCloud&quot;</code>.</p></section><section id="props"><h2>Props and attributes</h2><div class="table-wrap"><table><thead><tr><th>Prop</th><th>Type</th><th>Requirement</th><th>Default</th></tr></thead><tbody><tr><td><code>class</code></td><td><code>string</code></td><td>Optional</td><td><code>&quot;&quot;</code></td></tr><tr><td><code>eyebrow</code></td><td><code>string</code></td><td>Optional</td><td><code>&quot;&quot;</code></td></tr><tr><td><code>title</code></td><td><code>string</code></td><td>Optional</td><td><code>&quot;Trusted by teams building modern products&quot;</code></td></tr><tr><td><code>description</code></td><td><code>string</code></td><td>Optional</td><td><code>&quot;&quot;</code></td></tr><tr><td><code>logos</code></td><td><code>string</code></td><td>Optional</td><td><code>[]</code></td></tr><tr><td><code>centered</code></td><td><code>boolean</code></td><td>Optional</td><td><code>true</code></td></tr><tr><td><code>compact</code></td><td><code>boolean</code></td><td>Optional</td><td><code>false</code></td></tr><tr><td><code>variant</code></td><td><code>string</code></td><td>Optional</td><td><code>&quot;strip&quot;</code></td></tr><tr><td><code>grayscale</code></td><td><code>boolean</code></td><td>Optional</td><td><code>true</code></td></tr><tr><td><code>showNames</code></td><td><code>boolean</code></td><td>Optional</td><td><code>false</code></td></tr><tr><td><code>maxItems</code></td><td><code>number</code></td><td>Optional</td><td><code>8</code></td></tr></tbody></table></div></section><section id="slots"><h2>Slots</h2><p>This component does not declare a slot.</p></section><section id="events"><h2>Events</h2><p>This component does not declare a custom event.</p></section><section id="source"><h2>Source contract</h2><p>Installed source: <code>components/LogoCloud.wrn</code></p><pre data-language="wrn"><code>component LogoCloud &#123;
props &#123;
class: string = &quot;&quot;
eyebrow = &quot;&quot;
title = &quot;Trusted by teams building modern products&quot;
description = &quot;&quot;
logos = []
centered = true
compact = false
variant = &quot;strip&quot;
grayscale = true
showNames = false
maxItems = 8
&#125;
view &#123;
&lt;section
aria-labelledby=&quot;logo-cloud-title&quot;
class=&quot;w-full px-5 sm:px-8 lg:px-10 xl:px-12 &#123;class&#125;&quot;
class:py-10=&quot;compact&quot;
class:sm:py-12=&quot;compact&quot;
class:py-14=&quot;!compact&quot;
class:sm:py-16=&quot;!compact&quot;
class:lg:py-20=&quot;!compact&quot;
class:hidden=&quot;logos.length === 0&quot;
&gt;
&lt;div
class=&quot; relative mx-auto w-full max-w-7xl overflow-hidden &#123;variant === 'card' ? 'rounded-3xl border border-indigo-200/80 bg-linear-to-br from-indigo-50/80 via-white to-violet-50/70 shadow-xl shadow-indigo-950/5 dark:border-indigo-500/20 dark:from-indigo-500/10 dark:via-slate-900 dark:to-violet-500/10 dark:shadow-black/20' : '' &#125; &quot;
&gt;
&lt;!-- Decorative background --&gt;
&lt;div
aria-hidden=&quot;true&quot;
class=&quot;pointer-events-none absolute inset-0 overflow-hidden&quot;
class:hidden=&quot;variant !== 'card'&quot;
&gt;
&lt;div class=&quot;absolute -right-24 -top-28 h-64 w-64 rounded-full bg-indigo-300/20 blur-3xl dark:bg-indigo-500/10&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;absolute -bottom-28 -left-24 h-64 w-64 rounded-full bg-violet-300/15 blur-3xl dark:bg-violet-500/5&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;absolute left-1/2 top-0 h-px w-2/3 -translate-x-1/2 bg-linear-to-r from-transparent via-indigo-400/60 to-transparent dark:via-indigo-400/20&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div
class=&quot;relative&quot;
class:px-6=&quot;compact&quot;
class:py-8=&quot;compact&quot;
class:sm:px-8=&quot;compact&quot;
class:sm:py-10=&quot;compact&quot;
class:px-7=&quot;!compact&quot;
class:py-10=&quot;!compact&quot;
class:sm:px-10=&quot;!compact&quot;
class:sm:py-12=&quot;!compact&quot;
class:lg:px-12=&quot;!compact&quot;
class:lg:py-14=&quot;!compact&quot;
&gt;
&lt;!-- Heading --&gt;
&lt;div
class=&quot;max-w-3xl&quot;
class:mx-auto=&quot;centered&quot;
class:text-center=&quot;centered&quot;
&gt;
&lt;p
class=&quot;text-xs font-bold uppercase tracking-[0.18em] text-indigo-600 dark:text-indigo-400&quot;
class:hidden=&quot;eyebrow === ''&quot;
&gt;
&#123;eyebrow&#125;
&lt;/p&gt;
&lt;h2
id=&quot;logo-cloud-title&quot;
class=&quot; font-bold leading-tight tracking-tight text-slate-950 dark:text-white &#123;eyebrow !== '' ? 'mt-3' : ''&#125; &#123;compact ? 'text-2xl sm:text-3xl' : 'text-3xl sm:text-4xl' &#125; &quot;
&gt;
&#123;title&#125;
&lt;/h2&gt;
&lt;p
class=&quot; mt-4 text-sm leading-7 text-slate-600 dark:text-slate-400 &#123;centered ? 'mx-auto max-w-2xl' : 'max-w-2xl'&#125; &#123;!compact ? 'sm:text-base' : ''&#125; &quot;
class:hidden=&quot;description === ''&quot;
&gt;
&#123;description&#125;
&lt;/p&gt;
&lt;/div&gt;
&lt;!-- Dynamic logo list --&gt;
&lt;div
class=&quot; mt-8 flex flex-wrap justify-center &#123;variant === 'cards' ? 'gap-4 sm:mt-10' : 'items-center gap-x-10 gap-y-7 sm:mt-10 lg:gap-x-14' &#125; &quot;
&gt;
&#123;#each logos.slice(0, maxItems) as logo&#125;
&lt;a
href=&quot;&#123;logo.href&#125;&quot;
target=&quot;&#123;logo.external ? '_blank' : '_self'&#125;&quot;
rel=&quot;&#123;logo.external ? 'noopener noreferrer' : ''&#125;&quot;
aria-label=&quot;&#123;logo.name&#125;&quot;
class=&quot; group min-w-0 transition duration-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-indigo-500 &#123;variant === 'cards' ? 'flex w-full items-center gap-4 rounded-2xl border border-slate-200/80 bg-white/80 p-4 shadow-sm backdrop-blur-sm hover:-translate-y-1 hover:border-indigo-300 hover:bg-white hover:shadow-lg dark:border-white/10 dark:bg-white/5 dark:hover:border-indigo-500/30 dark:hover:bg-white/10 sm:w-[calc(50%-0.5rem)] lg:w-[calc(25%-0.75rem)]' : 'flex h-12 items-center justify-center px-2 opacity-70 hover:opacity-100' &#125; &quot;
&gt;
&lt;!-- Logo mark --&gt;
&lt;div
class=&quot; flex shrink-0 items-center justify-center &#123;variant === 'cards' ? 'h-12 w-12 rounded-xl bg-slate-50 ring-1 ring-inset ring-slate-200 dark:bg-white/5 dark:ring-white/10' : '' &#125; &quot;
&gt;
&lt;img
src=&quot;&#123;logo.src&#125;&quot;
alt=&quot;&#123;logo.alt !== '' ? logo.alt : logo.name&#125;&quot;
loading=&quot;lazy&quot;
class=&quot; block object-contain transition duration-200 &#123;variant === 'cards' ? 'max-h-7 max-w-9' : 'max-h-8 max-w-36' &#125; &#123;grayscale ? 'grayscale group-hover:grayscale-0' : '' &#125; &quot;
/&gt;
&lt;!-- Fallback mark --&gt;
&lt;span
class=&quot; hidden h-8 w-8 items-center justify-center rounded-lg bg-indigo-50 text-sm font-bold text-indigo-700 dark:bg-indigo-500/10 dark:text-indigo-300 &quot;
&gt;
&#123;logo.name.slice(0, 1)&#125;
&lt;/span&gt;
&lt;/div&gt;
&lt;!-- Partner text --&gt;
&lt;div
class=&quot;min-w-0&quot;
class:hidden=&quot;variant !== 'cards' &amp;&amp; !showNames&quot;
&gt;
&lt;p class=&quot;truncate text-sm font-semibold text-slate-800 dark:text-slate-200&quot;&gt;
&#123;logo.name&#125;
&lt;/p&gt;
&lt;p
class=&quot;mt-0.5 truncate text-xs text-slate-500 dark:text-slate-400&quot;
class:hidden=&quot;logo.description === ''&quot;
&gt;
&#123;logo.description&#125;
&lt;/p&gt;
&lt;/div&gt;
&lt;/a&gt;
&#123;/each&#125;
&lt;/div&gt;
&lt;!-- Optional count --&gt;
&lt;p
class=&quot;mt-6 text-sm text-slate-500 dark:text-slate-400&quot;
class:hidden=&quot;logos.length &lt;= maxItems&quot;
class:text-center=&quot;centered&quot;
&gt;
And &#123;logos.length - maxItems&#125; more teams using WRNexusJS.
&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/section&gt;
&#125;
&#125;
</code></pre></section></article><aside class="on-this-page"><h2>On this page</h2><nav><a href="#usage">Usage</a><a href="#props">Props and attributes</a><a href="#slots">Slots</a><a href="#events">Events</a><a href="#source">Source contract</a></nav></aside></main>
<footer><div class="footer-brand"><span class="footer-mark" aria-hidden="true">W</span><p><strong>WRNexusJS 0.2.77</strong><span>Complete API documentation generated from installed package declarations.</span></p></div><nav aria-label="Footer"><a href="/packages">All packages</a><a href="/getting-started">Get started</a><a href="/security">Security</a><a href="/support">Support</a><a href="/llms.txt">AI guide</a></nav><p class="footer-meta">Private Developer Preview · Bun-native</p></footer>
<BackToTop />
</div>
}
}