Logo
The store's wordmark, in each theme's own style: default in Nova, modern in Vivid, classic in Atelier.
zb:shop.logo zubazar/ui-pro
This component is in Zubazar UI Pro; Zubazar UI Pro brings Zubazar UI with it. Installing Zubazar UI Pro →
Three styles
BLADE
variant picks the logo's style.
<zb:shop.logo />
<zb:shop.logo variant="modern" />
<zb:shop.logo variant="classic" />
| Prop | Values |
|---|---|
variant | default (Nova) | modern (Vivid) | classic (Atelier) |
Link home
BLADE
Put the logo in the link home; the current theme's style comes from Themes::current()->look.
<a href="{{ route('home') }}" aria-label="Home" class="flex-none rounded-sm focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-focus">
<zb:shop.logo :variant="\Zubazar\Themes\Themes::current()->look" />
</a>
On a dark background
BLADE
inverted makes the lettering white: for a dark footer or a dark strip.
<div class="flex flex-wrap items-center gap-12 bg-gray-950 p-6">
<zb:shop.logo inverted />
<zb:shop.logo variant="modern" inverted />
<zb:shop.logo variant="classic" inverted />
</div>
Your own logo
BLADE
For your own logo, copy the component to resources/views/vendor/zubazar-ui-pro/components/shop/logo.blade.php and change it; keep the same props.
{{-- resources/views/vendor/zubazar-ui-pro/components/shop/logo.blade.php --}}
@props(['variant' => 'default', 'inverted' => false])
<span {{ $attributes->class('inline-flex items-center') }}>
<img src="{{ asset($inverted ? 'img/logo-white.svg' : 'img/logo.svg') }}" alt="{{ \Zubazar\Commerce\Shop::name() }}" class="h-8 w-auto" />
</span>
Props
The values the component takes. What are props and slots?
| Prop | Type | Default | Description |
|---|---|---|---|
variant | — | default | default · modern · classic: the theme's logo style |
inverted | boolean | false | Light lettering for a dark background |
Developer notes
- The logo is not a link; it sits inside the link home in the navbar, the drawer and the footer.
- The coloured parts use the store's primary colour (
brand-600); the lettering is the theme's sample wordmark. - The navbar presets draw the logo with
Themes::current()->look; give the link an accessible name witharia-label. - A copy in that folder comes before the package's, and every place that uses the logo (the navbar, the drawer, the footer) draws it.