Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add header to logos section; link each logo to website #917

Merged
merged 3 commits into from
Jun 29, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
18 changes: 12 additions & 6 deletions website/src/icons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,20 @@ import YogaLegGrabStretch from "./yoga-leg-grab-stretch.svg";
import ZipFile from "./zip-file.svg";

const LightModeLogos = [
AndurilLight,
CocoLight,
NorLabLight,
ROSLight,
TangramLight,
{ href: "https://www.anduril.com/", Logo: AndurilLight },
{ href: "https://cocodelivery.com/", Logo: CocoLight },
{ href: "https://norlab.ulaval.ca/", Logo: NorLabLight },
{ href: "https://ros.org/", Logo: ROSLight },
{ href: "https://www.tangramvision.com/", Logo: TangramLight },
];

const DarkModeLogos = [AndurilDark, CocoDark, NorlabDark, ROSDark, TangramDark];
const DarkModeLogos = [
{ href: "https://www.anduril.com/", Logo: AndurilDark },
{ href: "https://cocodelivery.com/", Logo: CocoDark },
{ href: "https://norlab.ulaval.ca/", Logo: NorlabDark },
{ href: "https://ros.org/", Logo: ROSDark },
{ href: "https://www.tangramvision.com/", Logo: TangramDark },
];
esthersweon marked this conversation as resolved.
Show resolved Hide resolved

export {
ArmyWoman1,
Expand Down
13 changes: 13 additions & 0 deletions website/src/pages/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,23 @@
height: auto;
}

.logosHeader {
text-align: center;
margin-bottom: 3rem;
}

.logosSection {
padding: 4rem 2rem;
}

.logosSection a {
display: flex;
}

.logosSection a svg {
align-self: center;
}

[data-theme="light"] .logosSection {
background-color: rgba(148, 101, 222, 0.06);
}
Expand Down
27 changes: 14 additions & 13 deletions website/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,20 +135,21 @@ export default function Home(): JSX.Element {

<div className={`${styles.section ?? ""} ${styles.logosSection ?? ""}`}>
<div className="container">
<div className={styles.logoGrid}>
{LightModeLogos.map((Logo, idx) => (
<Logo
key={idx}
role="img"
className={`${styles.lightMode ?? ""} ${styles.logoIcon ?? ""}`}
/>
<h2 className={styles.logosHeader}>
Trusted by leading robotics teams
</h2>
<div className={`${styles.logoGrid ?? ""} ${styles.lightMode ?? ""}`}>
{LightModeLogos.map(({ href, Logo }, idx) => (
<a key={idx} href={href}>
<Logo role="img" className={styles.logoIcon} />
</a>
))}
{DarkModeLogos.map((Logo, idx) => (
<Logo
key={idx}
role="img"
className={`${styles.darkMode ?? ""} ${styles.logoIcon ?? ""}`}
/>
</div>
<div className={`${styles.logoGrid ?? ""} ${styles.darkMode ?? ""}`}>
{DarkModeLogos.map(({ href, Logo }, idx) => (
<a key={idx} href={href}>
<Logo role="img" className={styles.logoIcon} />
</a>
))}
</div>
</div>
Expand Down
Loading