Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ repos:
- repo: builtin
hooks:
- id: trailing-whitespace
exclude: '^sphinx-ui/demo/'
exclude: '(^sphinx-ui/demo/|\.snap$)'
- id: end-of-file-fixer
exclude: '^sphinx-ui/demo/'
- id: check-yaml
Expand Down
2 changes: 1 addition & 1 deletion documentation-ui/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ storybook.log
storybook-static
.mypy_cache
.vscode
*.tgz
*.tgz
74 changes: 37 additions & 37 deletions documentation-ui/src/custom/docs/QuantinuumLogo.tsx
Original file line number Diff line number Diff line change
@@ -1,50 +1,50 @@
import { ComponentProps } from "react"
import { cn } from "src"
import { ComponentProps } from 'react'
import { cn } from 'src'

export const QuantinuumLogo = (props: ComponentProps<'svg'>) => {
return (
<svg
version="1.1"
id="Layer_1"
xmlns="http://www.w3.org/2000/svg"
xmlnsXlink="http://www.w3.org/1999/xlink"
x="0px"
y="0px"
viewBox="0 0 204.13 37.91"
xmlSpace="preserve"
width={140}
height={50}
fill="currentColor"
{...props}
className={cn(`text-foreground`, props.className)}
>
return (
<svg
version="1.1"
id="Layer_1"
xmlns="http://www.w3.org/2000/svg"
xmlnsXlink="http://www.w3.org/1999/xlink"
x="0px"
y="0px"
viewBox="0 0 204.13 37.91"
xmlSpace="preserve"
width={140}
height={50}
fill="currentColor"
{...props}
className={cn(`text-foreground`, props.className)}
>
<g>
<g>
<g>
<g>
<g>
<path
className="st1"
d="M35.06,18.99c0,2.06-0.37,4.06-1.1,5.95h-2.32c0.6-13.14-16.42-18.87-23.92-8.11 C6.5,12.76,7.83,8.17,10.96,5.38c0,0,0,0,0,0c1.14-1.04,2.5-1.84,3.95-2.33C24.93,0.12,35.22,8.73,35.06,18.99z"
/>
</g>
<g>
<path
className="st1"
d="M35.06,26.83v8.7H18.52c-0.21,0-0.4,0-0.59-0.02c-4.29-0.15-8.3-1.94-11.29-5.03 c-6.48-6.3-5.98-17.92,0.71-23.67C5,10.54,4.75,15.46,6.69,19.4c2.15,4.47,6.82,7.43,11.83,7.42 C18.52,26.83,35.06,26.83,35.06,26.83z"
/>
</g>
<path
className="st1"
d="M35.06,18.99c0,2.06-0.37,4.06-1.1,5.95h-2.32c0.6-13.14-16.42-18.87-23.92-8.11 C6.5,12.76,7.83,8.17,10.96,5.38c0,0,0,0,0,0c1.14-1.04,2.5-1.84,3.95-2.33C24.93,0.12,35.22,8.73,35.06,18.99z"
/>
</g>
</g>
<g>
<g>
<path
className="st1"
d="M114.52,16.51h4.97v8.5h1.96v-8.5h4.97v-1.96h-11.9V16.51z M108.88,22.64l-8.21-8.08h-2.25v10.46h1.96v-8.03 l7.92,8.03l2.55,0V14.55h-1.96V22.64z M86.78,14.55l-5.34,10.46h2.19l0.79-1.57h7.34l0.79,1.57h2.2l-5.34-10.46H86.78z M85.42,21.49l2.67-5.21l2.67,5.21H85.42z M61.7,23.44h2.15l0.04-0.12c0.53-1.46,0.54-2.96,0.02-4.46 c-0.78-2.3-2.81-4.05-5.18-4.47c-0.4-0.07-0.81-0.11-1.23-0.11c-1.81,0-3.51,0.7-4.79,1.98c-1.28,1.28-1.98,2.98-1.98,4.8 c0,3.67,2.98,6.7,6.65,6.77l0.3,0.01l6.43,0h0.17v-1.96h-6.8c-1.95,0-3.72-1.16-4.41-2.88c-0.64-1.59-0.49-3.28,0.44-4.64 c0.9-1.33,2.39-2.13,3.99-2.13c0.35,0,0.7,0.04,1.07,0.11c1.76,0.38,3.18,1.77,3.62,3.55c0.28,1.13,0.15,2.27-0.36,3.28 L61.7,23.44z M77.22,19.61c0,2.03-1.65,3.68-3.68,3.68c-2.03,0-3.68-1.65-3.68-3.68v-5.06h-1.96v5.06c0,3.11,2.53,5.64,5.63,5.64 c3.11,0,5.63-2.53,5.63-5.64v-5.06h-1.96V19.61z M198.54,14.55l-4.91,8.94l-4.96-8.94h-3.03v10.46h1.96v-8.36l4.63,8.36h2.8 l4.57-8.32v8.32h1.96V14.55H198.54z M179.41,19.61c0,2.03-1.65,3.68-3.68,3.68c-2.03,0-3.68-1.65-3.68-3.68v-5.06h-1.96v5.06 c0,3.11,2.53,5.64,5.64,5.64c3.11,0,5.63-2.53,5.63-5.64v-5.06h-1.96V19.61z M148.25,22.64l-8.21-8.08h-2.25v10.46h1.96v-8.03 l7.92,8.03l2.55,0V14.55h-1.96V22.64z M163.9,19.61c0,2.03-1.65,3.68-3.68,3.68c-2.03,0-3.68-1.65-3.68-3.68v-5.06h-1.96v5.06 c0,3.11,2.53,5.64,5.63,5.64c3.11,0,5.64-2.53,5.64-5.64v-5.06h-1.96V19.61z M130.63,25.01h1.96V14.55h-1.96V25.01z"
d="M35.06,26.83v8.7H18.52c-0.21,0-0.4,0-0.59-0.02c-4.29-0.15-8.3-1.94-11.29-5.03 c-6.48-6.3-5.98-17.92,0.71-23.67C5,10.54,4.75,15.46,6.69,19.4c2.15,4.47,6.82,7.43,11.83,7.42 C18.52,26.83,35.06,26.83,35.06,26.83z"
/>
</g>
</g>
</g>
<script id="bw-fido2-page-script" />
</svg>
)
}
<g>
<g>
<path
className="st1"
d="M114.52,16.51h4.97v8.5h1.96v-8.5h4.97v-1.96h-11.9V16.51z M108.88,22.64l-8.21-8.08h-2.25v10.46h1.96v-8.03 l7.92,8.03l2.55,0V14.55h-1.96V22.64z M86.78,14.55l-5.34,10.46h2.19l0.79-1.57h7.34l0.79,1.57h2.2l-5.34-10.46H86.78z M85.42,21.49l2.67-5.21l2.67,5.21H85.42z M61.7,23.44h2.15l0.04-0.12c0.53-1.46,0.54-2.96,0.02-4.46 c-0.78-2.3-2.81-4.05-5.18-4.47c-0.4-0.07-0.81-0.11-1.23-0.11c-1.81,0-3.51,0.7-4.79,1.98c-1.28,1.28-1.98,2.98-1.98,4.8 c0,3.67,2.98,6.7,6.65,6.77l0.3,0.01l6.43,0h0.17v-1.96h-6.8c-1.95,0-3.72-1.16-4.41-2.88c-0.64-1.59-0.49-3.28,0.44-4.64 c0.9-1.33,2.39-2.13,3.99-2.13c0.35,0,0.7,0.04,1.07,0.11c1.76,0.38,3.18,1.77,3.62,3.55c0.28,1.13,0.15,2.27-0.36,3.28 L61.7,23.44z M77.22,19.61c0,2.03-1.65,3.68-3.68,3.68c-2.03,0-3.68-1.65-3.68-3.68v-5.06h-1.96v5.06c0,3.11,2.53,5.64,5.63,5.64 c3.11,0,5.63-2.53,5.63-5.64v-5.06h-1.96V19.61z M198.54,14.55l-4.91,8.94l-4.96-8.94h-3.03v10.46h1.96v-8.36l4.63,8.36h2.8 l4.57-8.32v8.32h1.96V14.55H198.54z M179.41,19.61c0,2.03-1.65,3.68-3.68,3.68c-2.03,0-3.68-1.65-3.68-3.68v-5.06h-1.96v5.06 c0,3.11,2.53,5.64,5.64,5.64c3.11,0,5.63-2.53,5.63-5.64v-5.06h-1.96V19.61z M148.25,22.64l-8.21-8.08h-2.25v10.46h1.96v-8.03 l7.92,8.03l2.55,0V14.55h-1.96V22.64z M163.9,19.61c0,2.03-1.65,3.68-3.68,3.68c-2.03,0-3.68-1.65-3.68-3.68v-5.06h-1.96v5.06 c0,3.11,2.53,5.64,5.63,5.64c3.11,0,5.64-2.53,5.64-5.64v-5.06h-1.96V19.61z M130.63,25.01h1.96V14.55h-1.96V25.01z"
/>
</g>
</g>
</g>
<script id="bw-fido2-page-script" />
</svg>
)
}
238 changes: 134 additions & 104 deletions documentation-ui/src/custom/docs/components/footer/index.tsx
Original file line number Diff line number Diff line change
@@ -1,131 +1,161 @@
import { QuantinuumLogo } from "../../QuantinuumLogo";
import { Separator } from "@quantinuum/quantinuum-ui";
import { QuantinuumLogo } from '../../QuantinuumLogo'
import { Separator } from '@quantinuum/quantinuum-ui'

const footerConfig = {
columns: [
{
name: "User Community",
name: 'User Community',
items: [
{
name: "Compute Platform Updates",
href: "/product-updates"
},{
name: "Q-NET",
href: "https://www.quantinuum.com/q-net#get-started"
},{
name: "Quantinuum Startup Partner Program",
href: "https://www.quantinuum.com/startup-partner-program#join"
}
]
}, {
name: "Compute Platform",
name: 'Compute Platform Updates',
href: '/product-updates',
},
{
name: 'Q-NET',
href: 'https://www.quantinuum.com/q-net#get-started',
},
{
name: 'Quantinuum Startup Partner Program',
href: 'https://www.quantinuum.com/startup-partner-program#join',
},
],
},
{
name: 'Compute Platform',
items: [
{
name: "Quantinuum Systems",
href: "/systems"
}, {
name: "Quantinuum Nexus",
href: "/nexus"
}, {
name: "Guppy",
href: "/guppy"
}, {
name: "Selene",
href: "/selene"
}, {
name: "Pytket",
href: "/tket"
name: 'Quantinuum Systems',
href: '/systems',
},
{
name: 'Quantinuum Nexus',
href: '/nexus',
},
{
name: 'Guppy',
href: '/guppy',
},
{
name: 'Selene',
href: '/selene',
},
{
name: 'Pytket',
href: '/tket',
},
]
}, {
name: "Applications",
],
},
{
name: 'Applications',
items: [
{
name: "InQuanto",
href: "/inquanto"
},
name: 'InQuanto',
href: '/inquanto',
},
{
name: "Quantum Origin",
href: "/origin"
},{
name: "\u03BBambeq",
href: "/lambeq/"
},
]
},{
name: "Quantinuum",
name: 'Quantum Origin',
href: '/origin',
},
{
name: '\u03BBambeq',
href: '/lambeq/',
},
],
},
{
name: 'Quantinuum',
items: [
{
name: "About",
href: "https://www.quantinuum.com/about",
},{
name: "Careers",
href: "https://www.quantinuum.com/careers",
},{
name: "Events",
href: "https://www.quantinuum.com/events"
}
]
}
name: 'About',
href: 'https://www.quantinuum.com/about',
},
{
name: 'Careers',
href: 'https://www.quantinuum.com/careers',
},
{
name: 'Events',
href: 'https://www.quantinuum.com/events',
},
],
},
],
}

export const Footer = () => {
return (
<div className="mb-24">

<div className="my-24"></div>
<Separator/>
<div className="my-12"></div>
<Separator />
<div className="my-12"></div>

<footer className="text-muted-foreground flex w-full flex-col justify-between md:items-start lg:flex-row ">
<div className="mb-12 lg:mb-0">
<div className="-mt-4">
<a href="https://www.quantinuum.com/" target='_blank' className='hover:opacity-75 transition'>
<QuantinuumLogo/>
</a>
<footer className="text-muted-foreground flex w-full flex-col justify-between md:items-start lg:flex-row ">
<div className="mb-12 lg:mb-0">
<div className="-mt-4">
<a
href="https://www.quantinuum.com/"
target="_blank"
className="hover:opacity-75 transition"
>
<QuantinuumLogo />
</a>
</div>
<p className="max-w-[24rem] text-xs leading-5">
Copyright © {new Date().getFullYear()} Quantinuum Inc. All rights reserved.{' '}
</p>
<div className="flex items-center gap-2 mt-2">
<a
href="https://www.quantinuum.com/terms-conditions"
target="_blank"
className="font-medium text-xs tracking-tight text-blue-600 dark:text-blue-300"
>
Terms and Conditions
</a>{' '}
<div>/</div>
<a
target="_blank"
href="https://www.quantinuum.com/privacy-statement"
className="font-medium text-xs tracking-tight text-blue-600 dark:text-blue-300"
>
Privacy Policy
</a>
<div>/</div>
<a
target="_blank"
href="https://www.quantinuum.com/cookie-notice"
className="font-medium text-xs tracking-tight text-blue-600 dark:text-blue-300"
>
Cookie Notice
</a>
<div>/</div>
</div>
</div>
<p className="max-w-[24rem] text-xs leading-5">
Copyright © {new Date().getFullYear()} Quantinuum Inc. All rights reserved.{' '}
</p>
<div className='flex items-center gap-2 mt-2'>
<a href="https://www.quantinuum.com/terms-conditions" target="_blank" className='font-medium text-xs tracking-tight text-blue-600 dark:text-blue-300'>
Terms and Conditions
</a> <div>/</div>
<a target="_blank" href="https://www.quantinuum.com/privacy-statement" className='font-medium text-xs tracking-tight text-blue-600 dark:text-blue-300'>
Privacy Policy
</a><div>/</div>
<a target="_blank" href="https://www.quantinuum.com/cookie-notice" className='font-medium text-xs tracking-tight text-blue-600 dark:text-blue-300'>
Cookie Notice
</a><div>/</div>
<div className="grid grid-cols-1 gap-16 sm:grid-cols-2 md:grid-cols-4 md:gap-24">
{footerConfig.columns.map((col) => {
return (
<div key={col.name} className="flex flex-col md:items-end">
<span className="text-foreground text-left text-[0.675rem] font-semibold uppercase tracking-wide md:text-right">
{col.name}
</span>
<ul className="mt-3 flex flex-col gap-2 lg:text-right">
{col.items.map((item) => {
return (
<li key={item.name}>
<a
className="text-muted-foreground text-[0.85rem] font-medium"
href={item.href}
>
{item.name}
</a>
</li>
)
})}
</ul>
</div>
)
})}
</div>
</div>
<div className="grid grid-cols-1 gap-16 sm:grid-cols-2 md:grid-cols-4 md:gap-24">
{footerConfig.columns.map((col) => {
return (
<div key={col.name} className="flex flex-col md:items-end">
<span className="text-foreground text-left text-[0.675rem] font-semibold uppercase tracking-wide md:text-right">
{col.name}
</span>
<ul className="mt-3 flex flex-col gap-2 lg:text-right">
{col.items.map((item) => {
return (
<li key={item.name}>
<a
className="text-muted-foreground text-[0.85rem] font-medium"
href={item.href}
>
{item.name}
</a>
</li>
)
})}
</ul>
</div>
)
})}
</div>
</footer>
</footer>
</div>
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ vi.mock('@quantinuum/quantinuum-ui', () => ({
</button>
),
Dialog: (props: MockDialogProps) => <div aria-label="dialog">{props.children}</div>,
DialogContent: (props: MockDialogProps) => <div aria-label="dialog-content">{props.children}</div>,
DialogContent: (props: MockDialogProps) => (
<div aria-label="dialog-content">{props.children}</div>
),
}))

const defaultProps = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ export const CookieBanner = ({

<div className="pt-1.5 flex flex-col md:flex-row gap-8">
<p className="text-base md:w-9/12">
We use essential cookies to ensure the website functions properly. With your permission, we’ll also use
optional cookies to analyze site usage and improve the user experience. For details of how we use
cookies and your personal data, please read our{' '}
We use essential cookies to ensure the website functions properly. With your
permission, we’ll also use optional cookies to analyze site usage and improve the user
experience. For details of how we use cookies and your personal data, please read our{' '}
<a
className="font-semibold hover:underline underline-offset-4 underline"
href="https://www.quantinuum.com/cookie-notice"
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from './CookieConditional'
export * from './CookieConditional'
Loading