Skip to content

Commit

Permalink
docs(nx-dev): replace graph image with light/dark neuron variants (nr…
Browse files Browse the repository at this point in the history
…wl#29461)

Replaced the old `graphs.jpg` image with two new `.avif` images to support light and dark mode. Updated the component to switch between the light and dark neuron visuals based on theme.
  • Loading branch information
bcabanes authored Dec 23, 2024
1 parent a607df6 commit 69a13da
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
Binary file removed nx-dev/nx-dev/public/images/enterprise/graphs.jpg
Binary file not shown.
Binary file not shown.
Binary file not shown.
15 changes: 11 additions & 4 deletions nx-dev/ui-enterprise/src/lib/scale-your-organization.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,17 @@ export function ScaleYourOrganization(): ReactElement {
<div className="flex items-start justify-end lg:order-first">
<img
alt="Nx Polygraph"
src="/images/enterprise/graphs.jpg"
width={3405}
height={1493}
className="w-[48rem] max-w-none rounded-xl shadow-xl ring-1 ring-slate-400/10 sm:w-[57rem] md:-mr-4 lg:mr-0"
src="/images/enterprise/neurons-light.avif"
width={2111}
height={921}
className="w-[48rem] max-w-none sm:w-[57rem] md:-mr-4 lg:mr-0 dark:hidden"
/>
<img
alt="Nx Polygraph"
src="/images/enterprise/neurons-dark.avif"
width={2111}
height={921}
className="hidden w-[48rem] max-w-none rounded-xl shadow-xl ring-1 ring-slate-400/10 sm:w-[57rem] md:-mr-4 lg:mr-0 dark:block"
/>
</div>
<div className="lg:ml-auto lg:pl-4 lg:pt-4">
Expand Down

0 comments on commit 69a13da

Please sign in to comment.