Skip to content

Commit

Permalink
Add header to logos section; link each logo to website (#917)
Browse files Browse the repository at this point in the history
* Add header to logos section; link each logo to website

* Implement feedback

* Fix prettier issues
  • Loading branch information
esthersweon authored Jun 29, 2023
1 parent dc0384d commit db7675f
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 26 deletions.
37 changes: 27 additions & 10 deletions website/src/icons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,34 @@ import Turntable from "./turntable.svg";
import YogaLegGrabStretch from "./yoga-leg-grab-stretch.svg";
import ZipFile from "./zip-file.svg";

const LightModeLogos = [
AndurilLight,
CocoLight,
NorLabLight,
ROSLight,
TangramLight,
const Logos = [
{
href: "https://www.anduril.com/",
LightModeLogo: AndurilLight,
DarkModeLogo: AndurilDark,
},
{
href: "https://cocodelivery.com/",
LightModeLogo: CocoLight,
DarkModeLogo: CocoDark,
},
{
href: "https://norlab.ulaval.ca/",
LightModeLogo: NorLabLight,
DarkModeLogo: NorlabDark,
},
{
href: "https://ros.org/",
LightModeLogo: ROSLight,
DarkModeLogo: ROSDark,
},
{
href: "https://www.tangramvision.com/",
LightModeLogo: TangramLight,
DarkModeLogo: TangramDark,
},
];

const DarkModeLogos = [AndurilDark, CocoDark, NorlabDark, ROSDark, TangramDark];

export {
ArmyWoman1,
ChatTranslate,
Expand All @@ -38,6 +56,5 @@ export {
Turntable,
YogaLegGrabStretch,
ZipFile,
LightModeLogos,
DarkModeLogos,
Logos,
};
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
34 changes: 18 additions & 16 deletions website/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,6 @@ const FeatureList: FeatureItem[] = [
},
];

const LightModeLogos = icons.LightModeLogos;
const DarkModeLogos = icons.DarkModeLogos;

function Feature({ title, Icon, description }: FeatureItem) {
return (
<div>
Expand Down Expand Up @@ -135,20 +132,25 @@ export default function Home(): JSX.Element {

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

0 comments on commit db7675f

Please sign in to comment.