Skip to content

Commit

Permalink
feat(nx-dev): customer videos on customer page (#29380)
Browse files Browse the repository at this point in the history
Co-authored-by: Nicholas Cunningham <[email protected]>
  • Loading branch information
juristr and ndcunningham authored Jan 9, 2025
1 parent c09e369 commit 9c176d8
Show file tree
Hide file tree
Showing 18 changed files with 780 additions and 400 deletions.
4 changes: 2 additions & 2 deletions nx-dev/nx-dev/pages/customers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
Hero,
OssProjects,
} from '@nx/nx-dev/ui-customers';
import { tryNxCloudForFree } from '../lib/components/headerCtaConfigs';
import { contactButton } from '../lib/components/headerCtaConfigs';

export function Customers(): JSX.Element {
const router = useRouter();
Expand Down Expand Up @@ -34,7 +34,7 @@ export function Customers(): JSX.Element {
type: 'website',
}}
/>
<DefaultLayout headerCTAConfig={[tryNxCloudForFree]}>
<DefaultLayout headerCTAConfig={[contactButton]}>
<div>
<Hero />
</div>
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
5 changes: 5 additions & 0 deletions nx-dev/nx-dev/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ module.exports = {
theme: {
extend: {
animation: {
progress: `progress linear forwards`,
marquee: 'marquee var(--duration) linear infinite',
'marquee-vertical': 'marquee-vertical var(--duration) linear infinite',
},
Expand All @@ -75,6 +76,10 @@ module.exports = {
from: { transform: 'translateY(0)' },
to: { transform: 'translateY(calc(-100% - var(--gap)))' },
},
progress: {
'0%': { width: '0%' },
'100%': { width: '100%' },
},
},
typography: {
DEFAULT: {
Expand Down
38 changes: 38 additions & 0 deletions nx-dev/ui-customers/src/lib/customer-icon-grid.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import { FC, SVGProps } from 'react';

interface CustomerIcon {
url: string;
icon: FC<SVGProps<SVGSVGElement>>;
height: string;
width: string;
}

interface CustomerIconGridProps {
icons: CustomerIcon[];
}

const CustomerIconGrid: FC<CustomerIconGridProps> = ({ icons }) => {
return (
<div className="grid grid-cols-2 justify-between md:grid-cols-4">
{icons.map((customerIcon, index) => {
return (
<a
key={`customer-icon-${index}`}
href={customerIcon.url}
target="_blank"
rel="noopener noreferrer"
className={`flex items-center justify-center border-slate-200/20 p-12 shadow-[0_0px_1px_0_rgba(226,232,240,0.2)] transition hover:bg-slate-100/20 hover:text-slate-950 dark:border-slate-800/20 dark:hover:border-slate-600/20 dark:hover:bg-slate-600/10 dark:hover:text-white`}
>
<customerIcon.icon
aria-hidden="true"
className={`${customerIcon.height} ${customerIcon.width}`}
/>
</a>
);
})}
</div>
);
};

export default CustomerIconGrid;
export { CustomerIconGrid, type CustomerIcon };
Loading

0 comments on commit 9c176d8

Please sign in to comment.