Skip to content

Commit

Permalink
docs: change logo (#10208)
Browse files Browse the repository at this point in the history
* docs: changed logo

* remove unused component
  • Loading branch information
shahednasser authored Nov 21, 2024
1 parent ab5f2b5 commit c99b03b
Show file tree
Hide file tree
Showing 16 changed files with 17 additions and 66 deletions.
1 change: 1 addition & 0 deletions www/apps/api-reference/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ export const config: DocsConfig = {
title: "API Reference",
key: "api-reference",
},
logo: `${process.env.NEXT_PUBLIC_BASE_PATH}/images/logo.png`,
}
Binary file added www/apps/api-reference/public/images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions www/apps/book/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ export const config: DocsConfig = {
breadcrumbOptions: {
showCategories: false,
},
logo: `${process.env.NEXT_PUBLIC_BASE_PATH}/images/logo.png`,
}
Binary file added www/apps/book/public/images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions www/apps/resources/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ export const config: DocsConfig = {
breadcrumbOptions: {
showCategories: true,
},
logo: `${process.env.NEXT_PUBLIC_BASE_PATH}/images/logo.png`,
}
Binary file added www/apps/resources/public/images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added www/apps/ui/public/images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions www/apps/ui/src/config/site.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ export const siteConfig: SiteConfig = {
breadcrumbOptions: {
showCategories: true,
},
logo: `${process.env.NEXT_PUBLIC_BASE_PATH}/images/logo.png`,
}
1 change: 1 addition & 0 deletions www/apps/user-guide/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ export const config: DocsConfig = {
breadcrumbOptions: {
showCategories: true,
},
logo: `${process.env.NEXT_PUBLIC_BASE_PATH}/images/logo.png`,
}
Binary file added www/apps/user-guide/public/images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 6 additions & 2 deletions www/packages/docs-ui/src/components/BorderedIcon/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ export type BorderedIconProps = {
iconWrapperClassName?: string
iconClassName?: string
iconColorClassName?: string
iconWidth?: number
iconHeight?: number
} & React.HTMLAttributes<HTMLSpanElement>

export const BorderedIcon = ({
Expand All @@ -19,6 +21,8 @@ export const BorderedIcon = ({
iconClassName,
iconColorClassName = "",
wrapperClassName,
iconWidth = 28,
iconHeight = 28,
}: BorderedIconProps) => {
return (
<span
Expand All @@ -33,8 +37,8 @@ export const BorderedIcon = ({
<Image
src={icon || ""}
className={clsx(iconClassName, "bordered-icon rounded-docs_xs")}
width={28}
height={28}
width={iconWidth}
height={iconHeight}
alt=""
/>
)}
Expand Down
60 changes: 0 additions & 60 deletions www/packages/docs-ui/src/components/Icons/MedusaLogo/index.tsx

This file was deleted.

5 changes: 3 additions & 2 deletions www/packages/docs-ui/src/components/MainNav/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import {
} from "../.."
import { MainNavEditDate } from "./EditDate"
import { MainNavItems } from "./Items"
import { MedusaIcon } from "../Icons/MedusaLogo"
import { MainNavDesktopMenu } from "./DesktopMenu"
import { SidebarLeftIcon } from "../Icons/SidebarLeft"
import { MainNavMobileMenu } from "./MobileMenu"
Expand Down Expand Up @@ -52,8 +51,10 @@ export const MainNav = ({ className, itemsClassName }: MainNavProps) => {
)}
<Link href={`${config.baseUrl}`}>
<BorderedIcon
IconComponent={MedusaIcon}
icon={config.logo}
iconWrapperClassName="my-[14px]"
iconWidth={20}
iconHeight={20}
/>
</Link>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import {
SidebarLeft,
TimelineVertical,
} from "@medusajs/icons"
import { MedusaIcon } from "../../../Icons/MedusaLogo"
import { HouseIcon } from "../../../Icons/House"
import { Menu } from "../../../Menu"

Expand Down Expand Up @@ -51,7 +50,7 @@ export const SidebarTopMedusaMenu = () => {
tabIndex={-1}
onClick={toggleOpen}
>
<BorderedIcon IconComponent={MedusaIcon} />
<BorderedIcon icon="/images/logo.png" />
<span className="text-compact-small-plus text-medusa-fg-base flex-1">
Medusa Docs
</span>
Expand Down
1 change: 1 addition & 0 deletions www/packages/docs-ui/src/providers/SiteConifg/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export const SiteConfigProvider = ({
showCategories: true,
},
reportIssueLink: GITHUB_ISSUES_LINK,
logo: "",
},
globalConfig,
initConfig || {}
Expand Down
1 change: 1 addition & 0 deletions www/packages/types/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ export declare type DocsConfig = {
releaseUrl: string
}
reportIssueLink?: string
logo: string
}

0 comments on commit c99b03b

Please sign in to comment.