Skip to content

Commit

Permalink
Improve footer link wrapping.
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanCQ committed Oct 3, 2024
1 parent f982431 commit 21aa2c9
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions src/custom/docs/components/footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,13 @@ const footerConfig = {
],
}

const Divider = () => {
return <div className="text-xs text-muted-foreground hidden md:block">/</div>
}

export const Footer = () => {


return (
<div className="mb-24">

Expand All @@ -58,7 +64,7 @@ export const Footer = () => {
<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 md:mb-0">
<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/>
Expand All @@ -67,18 +73,16 @@ export const Footer = () => {
<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'>
<div className='flex md:items-center gap-2 mt-4 flex-col md:flex-row'>
<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> <Divider></Divider>
<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>
</div>
<div className='flex items-center gap-2 mt-2'>
</a><Divider></Divider>
<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>
</a><Divider></Divider>
<a target="_blank" href="https://cdn.prod.website-files.com/669960f53cd73aedb80c8eea/66d87306d9caeeb12196f409_666c39372d2febd0b0bedf71_Quantinuum%20Trademark%20Guidelines%20v1.1%20June%202024.pdf" className='font-medium text-xs tracking-tight text-blue-600 dark:text-blue-300'>
Trademark Guidelines
</a>
Expand All @@ -87,11 +91,11 @@ export const Footer = () => {
<div className="grid grid-cols-1 gap-16 md:grid-cols-3 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">
<div key={col.name} className="flex flex-col lg:items-end">
<span className="text-foreground text-left text-[0.675rem] font-semibold uppercase tracking-wide lg:text-right">
{col.name}
</span>
<ul className="mt-3 flex flex-col gap-2 md:text-right">
<ul className="mt-3 flex flex-col gap-2 lg:text-right">
{col.items.map((item) => {
return (
<li key={item.name}>
Expand Down

0 comments on commit 21aa2c9

Please sign in to comment.