Skip to content

Commit

Permalink
chore: update logo in admin UI
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuildthecloud committed Nov 13, 2024
1 parent f661f06 commit 7e2007e
Show file tree
Hide file tree
Showing 11 changed files with 325 additions and 73 deletions.
13 changes: 10 additions & 3 deletions ui/admin/app/components/branding/OttoLogo.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { assetUrl, cn } from "~/lib/utils";

import { TypographyH2 } from "~/components/Typography";
import { useTheme } from "~/components/theme";

export function OttoLogo({
hideText = false,
Expand All @@ -9,6 +10,13 @@ export function OttoLogo({
hideText?: boolean;
classNames?: { root?: string; image?: string };
}) {
const { isDark } = useTheme();
let logo = isDark
? "/logo/otto8-logo-blue-white-text.svg"
: "/logo/otto8-logo-blue-black-text.svg";
if (hideText) {
logo = "/logo/otto8-icon-blue.svg";
}
return (
<TypographyH2
className={cn(
Expand All @@ -17,11 +25,10 @@ export function OttoLogo({
)}
>
<img
src={assetUrl("/logo/OttoLogo.svg")}
src={assetUrl(logo)}
alt="Otto Logo"
className={cn("w-10 h-10 dark:invert", classNames.image)}
className={cn("h-8", classNames.image)}
/>
{!hideText && "Otto"}
</TypographyH2>
);
}
2 changes: 1 addition & 1 deletion ui/admin/app/components/errors/Error.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function Error({ error }: { error: Error }) {
<div className="flex min-h-screen w-full items-center justify-center p-4">
<Card className="w-96">
<CardHeader className="mx-4">
<OttoLogo classNames={{ image: "h-10 w-10" }} />
<OttoLogo />
</CardHeader>
<CardContent className="space-y-2 text-center border-b mb-4">
<CardTitle>Oops! An error occurred</CardTitle>
Expand Down
2 changes: 1 addition & 1 deletion ui/admin/app/components/errors/RouteError.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function RouteError({ error }: { error: ErrorResponse }) {
<div className="flex min-h-screen w-full items-center justify-center p-4">
<Card className="w-96">
<CardHeader className="mx-4">
<OttoLogo classNames={{ image: "h-10 w-10" }} />
<OttoLogo />
</CardHeader>
<CardContent className="space-y-2 text-center border-b mb-4">
<CardTitle>Oops! {error.status}</CardTitle>
Expand Down
2 changes: 1 addition & 1 deletion ui/admin/app/components/errors/Unauthorized.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function Unauthorized() {
<div className="flex min-h-screen w-full items-center justify-center p-4">
<Card className="w-96">
<CardHeader className="mx-4">
<OttoLogo classNames={{ image: "h-10 w-10" }} />
<OttoLogo />
</CardHeader>
<CardContent className="space-y-2 text-center border-b mb-4">
<CardDescription className="text-center">
Expand Down
8 changes: 1 addition & 7 deletions ui/admin/app/components/sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,7 @@ export function AppSidebar() {
)}
>
<div className={cn("flex items-center justify-center h-full")}>
<OttoLogo
classNames={{
image: "w-8 h-8",
root: "text-foreground",
}}
hideText={state === "collapsed"}
/>
<OttoLogo hideText={state === "collapsed"} />
</div>
</SidebarHeader>
<SidebarContent
Expand Down
60 changes: 0 additions & 60 deletions ui/admin/public/logo/OttoLogo.svg

This file was deleted.

Binary file removed ui/admin/public/logo/OttoLogoWhite.jpg
Binary file not shown.
63 changes: 63 additions & 0 deletions ui/admin/public/logo/otto8-icon-blue.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
63 changes: 63 additions & 0 deletions ui/admin/public/logo/otto8-icon-white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 7e2007e

Please sign in to comment.