Skip to content

Commit f014bcb

Browse files
authored
feat: update zola brand (#193)
* feat: update cover * feat: add new logo * feat: update favicon/logo darkmode
1 parent d7efda8 commit f014bcb

File tree

8 files changed

+58
-22
lines changed

8 files changed

+58
-22
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22

33
[zola.chat](https://zola.chat)
44

5-
**Zola** is the open-source interface for AI chat.
5+
**Zola** is the open-source chat interface for all your models.
66

7-
[![Chat with this repo](https://zola.chat/button/github.svg)](https://zola.chat/?agent=github/ibelick/zola)
8-
9-
![zola screenshot](./public/cover_zola.webp)
7+
![zola cover](./public/cover_zola.jpg)
108

119
## Features
1210

app/components/layout/header-sidebar-trigger.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ import {
77
TooltipTrigger,
88
} from "@/components/ui/tooltip"
99
import { cn } from "@/lib/utils"
10-
import { SidebarSimple } from "@phosphor-icons/react"
10+
import { SidebarSimpleIcon } from "@phosphor-icons/react"
1111

1212
type HeaderSidebarTriggerProps = React.HTMLAttributes<HTMLButtonElement>
1313

1414
export function HeaderSidebarTrigger({
1515
className,
1616
...props
1717
}: HeaderSidebarTriggerProps) {
18-
const { toggleSidebar, open, isMobile } = useSidebar()
18+
const { toggleSidebar, open } = useSidebar()
1919

2020
return (
2121
<Tooltip>
@@ -26,13 +26,12 @@ export function HeaderSidebarTrigger({
2626
className={cn(
2727
"pointer-events-auto",
2828
"text-muted-foreground hover:text-foreground hover:bg-muted rounded-md transition-colors",
29-
"-ml-5 inline-flex size-9 items-center justify-center focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none",
30-
isMobile ? "ml-0" : "-ml-5",
29+
"inline-flex size-9 items-center justify-center focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none",
3130
className
3231
)}
3332
{...props}
3433
>
35-
<SidebarSimple size={20} />
34+
<SidebarSimpleIcon size={20} />
3635
<span className="sr-only">Toggle sidebar</span>
3736
</button>
3837
</TooltipTrigger>

app/components/layout/header.tsx

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ import { ButtonNewChat } from "@/app/components/layout/button-new-chat"
66
import { UserMenu } from "@/app/components/layout/user-menu"
77
import { useBreakpoint } from "@/app/hooks/use-breakpoint"
88
import type { Agent } from "@/app/types/agent"
9+
import { ZolaIcon } from "@/components/icons/zola"
910
import { Button } from "@/components/ui/button"
1011
import { useAgent } from "@/lib/agent-store/provider"
1112
import { APP_NAME } from "@/lib/config"
1213
import { useUser } from "@/lib/user-store/provider"
1314
import { Info } from "@phosphor-icons/react"
1415
import Link from "next/link"
15-
1616
import { DialogPublish } from "./dialog-publish"
1717
import { HeaderSidebarTrigger } from "./header-sidebar-trigger"
1818

@@ -32,18 +32,17 @@ export function Header({ hasSidebar }: { hasSidebar: boolean }) {
3232
<header className="h-app-header pointer-events-none fixed top-0 right-0 left-0 z-50">
3333
<div className="relative mx-auto flex h-full max-w-full items-center justify-between bg-transparent px-4 sm:px-6 lg:bg-transparent lg:px-8">
3434
<div className="flex flex-1 items-center justify-between">
35-
<div className="flex flex-1 items-center gap-2 pl-0 md:pl-0.5">
36-
{hasSidebar && <HeaderSidebarTrigger />}
37-
{Boolean(!currentAgent || !isMobile) && (
38-
<div className="flex-1">
39-
<Link
40-
href="/"
41-
className="pointer-events-auto text-xl font-medium tracking-tight"
42-
>
43-
{APP_NAME}
44-
</Link>
45-
</div>
46-
)}
35+
<div className="-ml-0.5 flex flex-1 items-center gap-2 lg:-ml-2.5">
36+
<div className="flex flex-1 items-center gap-2">
37+
<Link
38+
href="/"
39+
className="pointer-events-auto inline-flex items-center text-xl font-medium tracking-tight"
40+
>
41+
<ZolaIcon className="mr-1 size-4" />
42+
{APP_NAME}
43+
</Link>
44+
{hasSidebar && isMobile && <HeaderSidebarTrigger />}
45+
</div>
4746
</div>
4847
<div />
4948
{!isLoggedIn ? (

app/favicon.ico

0 Bytes
Binary file not shown.

app/opengraph-image.jpg

10.5 KB
Loading

components/icons/zola.tsx

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
import * as React from "react"
2+
import type { SVGProps } from "react"
3+
4+
export function ZolaIcon(props: SVGProps<SVGSVGElement>) {
5+
return (
6+
<svg
7+
xmlns="http://www.w3.org/2000/svg"
8+
width={80}
9+
height={80}
10+
viewBox="0 0 80 80"
11+
className="bg-primary"
12+
fill="none"
13+
{...props}
14+
>
15+
<g clipPath="url(#zola)">
16+
<mask
17+
id="zola"
18+
width={80}
19+
height={80}
20+
x={0}
21+
y={0}
22+
maskUnits="userSpaceOnUse"
23+
style={{
24+
maskType: "luminance",
25+
}}
26+
>
27+
<path fill="currentColor" d="M80 0H0v80h80z" />
28+
</mask>
29+
<g fill="currentColor" mask="url(#b)">
30+
<path d="M8 52a4 4 0 1 0-8 0 4 4 0 0 0 8 0M8 40a4 4 0 1 0-8 0 4 4 0 0 0 8 0M8 28a4 4 0 1 0-8 0 4 4 0 0 0 8 0M20 40a4 4 0 1 0-8 0 4 4 0 0 0 8 0M20 28a4 4 0 1 0-8 0 4 4 0 0 0 8 0M20 16a4 4 0 1 0-8 0 4 4 0 0 0 8 0M44 76a4 4 0 1 0-8 0 4 4 0 0 0 8 0M44 64a4 4 0 1 0-8 0 4 4 0 0 0 8 0M44 52a4 4 0 1 0-8 0 4 4 0 0 0 8 0M32 52a4 4 0 1 0-8 0 4 4 0 0 0 8 0M20 52a4 4 0 1 0-8 0 4 4 0 0 0 8 0M32 40a4 4 0 1 0-8 0 4 4 0 0 0 8 0M44 28a4 4 0 1 0-8 0 4 4 0 0 0 8 0M56 16a4 4 0 1 0-8 0 4 4 0 0 0 8 0M68 16a4 4 0 1 0-8 0 4 4 0 0 0 8 0M44 16a4 4 0 1 0-8 0 4 4 0 0 0 8 0M44 4a4 4 0 1 0-8 0 4 4 0 0 0 8 0M68 64a4 4 0 1 0-8 0 4 4 0 0 0 8 0M68 52a4 4 0 1 0-8 0 4 4 0 0 0 8 0M68 40a4 4 0 1 0-8 0 4 4 0 0 0 8 0M80 40a4 4 0 1 0-8 0 4 4 0 0 0 8 0M68 28a4 4 0 1 0-8 0 4 4 0 0 0 8 0M56 28a4 4 0 1 0-8 0 4 4 0 0 0 8 0M32 76a4 4 0 1 0-8 0 4 4 0 0 0 8 0M32 64a4 4 0 1 0-8 0 4 4 0 0 0 8 0M20 64a4 4 0 1 0-8 0 4 4 0 0 0 8 0M32 28a4 4 0 1 0-8 0 4 4 0 0 0 8 0M32 16a4 4 0 1 0-8 0 4 4 0 0 0 8 0M32 4a4 4 0 1 0-8 0 4 4 0 0 0 8 0M56 76a4 4 0 1 0-8 0 4 4 0 0 0 8 0M56 64a4 4 0 1 0-8 0 4 4 0 0 0 8 0M56 52a4 4 0 1 0-8 0 4 4 0 0 0 8 0M56 40a4 4 0 1 0-8 0 4 4 0 0 0 8 0M56 4a4 4 0 1 0-8 0 4 4 0 0 0 8 0M80 52a4 4 0 1 0-8 0 4 4 0 0 0 8 0M44 40a4 4 0 1 0-8 0 4 4 0 0 0 8 0M80 28a4 4 0 1 0-8 0 4 4 0 0 0 8 0" />
31+
</g>
32+
</g>
33+
<defs>
34+
<clipPath id="zola">
35+
<path fill="currentColor" d="M0 0h80v80H0z" />
36+
</clipPath>
37+
</defs>
38+
</svg>
39+
)
40+
}

public/cover_zola.jpg

69.9 KB
Loading

public/cover_zola.webp

-76.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)