Skip to content

Commit

Permalink
add platform overview to dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
jsladerman committed Nov 12, 2024
1 parent 67d2ffd commit 1fcf9fb
Show file tree
Hide file tree
Showing 16 changed files with 67 additions and 475 deletions.
Binary file removed public/images/product/architecture.png
Binary file not shown.
Binary file removed public/images/product/cn-landscape-logo.png
Binary file not shown.
1 change: 0 additions & 1 deletion public/images/product/cncf-logo.svg

This file was deleted.

Binary file removed public/images/product/dotted-line-vertical.png
Binary file not shown.
Binary file removed public/images/product/features/check-addo-on.png
Binary file not shown.
Binary file not shown.
Binary file removed public/images/product/features/services.png
Binary file not shown.
Binary file removed public/images/product/features/status.png
Binary file not shown.
Binary file removed public/images/product/gdpr-cert.png
Binary file not shown.
Binary file removed public/images/product/lifecycle.png
Binary file not shown.
Binary file added public/images/product/platform-overview-image.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
341 changes: 0 additions & 341 deletions src/components/HowPluralWorksComponents.tsx

This file was deleted.

15 changes: 14 additions & 1 deletion src/components/NavigationMobile.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {
Accordion,
ArrowRightIcon,
ArrowTopRightIcon,
Button,
Divider,
} from '@pluralsh/design-system'
Expand All @@ -12,7 +13,8 @@ import { useIsomorphicLayoutEffect } from 'usehooks-ts'
import { type NavData, useNavData } from '@src/contexts/NavDataContext'

import useScrollLock from './hooks/useScrollLock'
import { MainLink, ProductMobileLink } from './Navigation'
import { PlatformOverviewLinkSC } from './menu/Menu'
import { MainLink, MainLinkBase, ProductMobileLink } from './Navigation'
import { type NavContextValue, NavigationFull } from './NavigationFull'

const MobileMainLink = styled(MainLink)(() => ({
Expand Down Expand Up @@ -70,6 +72,17 @@ function NavList({ navData }: { navData?: NavData | null }) {
// @ts-ignore
style={{ backgroundColor: theme.colors['fill-two'] }}
>
{navItem.link?.title === 'Product' && (
<div className="pl-small">
<PlatformOverviewLinkSC
as={MainLinkBase}
href="/product"
>
<span>Plural Platform Overview</span>
<ArrowTopRightIcon size={18} />
</PlatformOverviewLinkSC>
</div>
)}
{navItem.subnav?.map((subnavItem) => {
if (!subnavItem) {
return null
Expand Down
Loading

0 comments on commit 1fcf9fb

Please sign in to comment.