Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ui): add logo #46

Merged
merged 1 commit into from
Dec 10, 2024
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
36 changes: 36 additions & 0 deletions apps/evalite-ui/app/components/logo.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import { cn } from "~/lib/utils";

export default function Logo({
className,
textClassName,
containerClassName,
}: {
className?: string;
textClassName?: string;
containerClassName?: string;
}) {
return (
<div className={cn("flex items-center gap-0.5", containerClassName)}>
<svg
className={cn("w-[18px]", className)}
viewBox="0 0 54 68"
xmlns="http://www.w3.org/2000/svg"
fill="none"
aria-hidden="true"
>
<path
fill="currentColor"
d="M0 .002V29.1l7.481 4.681L0 38.447v28.977l53.82-33.697L0 .002Zm4.92 41.139 21.003-13.175L4.921 14.75V8.817l30.51 19.136-30.51 18.909V41.14Zm-.053 17.376v-5.828l.134-.08 35.031-21.776 4.6 2.88L4.868 58.517Zm0-32.111v-5.908l11.895 7.468-4.707 2.947-7.188-4.507Z"
/>
</svg>
<span
className={cn(
"truncate font-normal text-lg tracking-tight",
textClassName
)}
>
Evalite
</span>
</div>
);
}
12 changes: 6 additions & 6 deletions apps/evalite-ui/app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import {
useSubscribeToTestServer,
} from "./use-subscribe-to-socket";
import { useContext } from "react";
import Logo from "./components/logo";

export const links: LinksFunction = () => [
{ rel: "preconnect", href: "https://fonts.googleapis.com" },
Expand All @@ -51,6 +52,8 @@ export function Layout({ children }: { children: React.ReactNode }) {
<meta name="viewport" content="width=device-width, initial-scale=1" />
<Meta />
<Links />
<link rel="icon" href="/favicon.ico" sizes="any" />
<link rel="icon" href="/favicon.svg" type="image/svg+xml" />
</head>
<body>
{children}
Expand Down Expand Up @@ -96,12 +99,9 @@ export default function App() {
<Sidebar className="border-r-0">
<SidebarHeader>
<SidebarMenu>
<SidebarMenuItem>
<div className="px-2 py-1 flex items-center space-x-2.5">
<ZapIcon className="size-4" />
<span className="truncate font-semibold tracking-tight">
Evalite
</span>
<SidebarMenuItem className="border-b md:-mx-3 -mx-2 md:px-3 px-2 pb-1.5">
<div className="px-2 py-1">
<Logo />
</div>
</SidebarMenuItem>
</SidebarMenu>
Expand Down
Binary file modified apps/evalite-ui/public/favicon.ico
Binary file not shown.
13 changes: 13 additions & 0 deletions apps/evalite-ui/public/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed apps/evalite-ui/public/logo-dark.png
Binary file not shown.
Binary file removed apps/evalite-ui/public/logo-light.png
Binary file not shown.
1 change: 0 additions & 1 deletion apps/evalite-ui/public/vite.svg

This file was deleted.

Loading