Skip to content

Commit

Permalink
Adds links to logos in used-by section (#3202)
Browse files Browse the repository at this point in the history
  • Loading branch information
scottyeck authored and KyleAMathews committed Dec 13, 2017
1 parent 2bb3890 commit 7dade1e
Showing 1 changed file with 42 additions and 14 deletions.
56 changes: 42 additions & 14 deletions www/src/components/used-by.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import presets from "../utils/presets"
import { vP, vPHd, vPVHd, vPVVHd } from "../components/gutters"
import { FormidableIcon, FabricIcon, SegmentIcon } from "../assets/logos"

const Icon = ({ icon, alt }) => (
const Icon = ({ icon, alt, href }) => (
<li
css={{
marginRight: rhythm(3 / 4),
Expand All @@ -18,20 +18,40 @@ const Icon = ({ icon, alt }) => (
},
}}
>
<img
src={icon}
alt={alt}
<a
href={href}
target="_blank"
css={{
margin: 0,
height: `calc(14px + 1vw)`,
[presets.Phablet]: {
height: `calc(9px + 1vw)`,
borderBottom: `0 !important`,
boxShadow: `none !important`,
background: `none !important`,
transition: `opacity ${presets.animation.speedFast} ${
presets.animation.curveDefault
}`,
opacity: 0.9,
":hover": {
opacity: 1,
},
[presets.Tablet]: {
height: `calc(12px + 1vw)`,
":active": {
opacity: 0.8,
},
}}
/>
>
<img
src={icon}
alt={alt}
css={{
margin: 0,
height: `calc(14px + 1vw)`,
[presets.Phablet]: {
height: `calc(9px + 1vw)`,
},
[presets.Tablet]: {
height: `calc(12px + 1vw)`,
},
}}
/>
</a>
</li>
)

Expand Down Expand Up @@ -111,9 +131,17 @@ const UsedBy = () => (
opacity: 0.75,
}}
>
<Icon icon={FabricIcon} alt="Fabric" />
<Icon icon={SegmentIcon} alt="Segment" />
<Icon icon={FormidableIcon} alt="Formidable" />
<Icon
icon={FabricIcon}
alt="Fabric"
href="https://meetfabric.com/careers"
/>
<Icon icon={SegmentIcon} alt="Segment" href="https://segment.com" />
<Icon
icon={FormidableIcon}
alt="Formidable"
href="https://formidable.com"
/>
</ul>
</div>
</div>
Expand Down

0 comments on commit 7dade1e

Please sign in to comment.