-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Export Featured Project Badges (#93)
* Add named featured project badge components * Add Stories and change casing on CloudSplice and FigLog * Add top level export * Add change set * Update README to include featured project badges
- Loading branch information
1 parent
9caf006
commit ae131c5
Showing
15 changed files
with
433 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"formidable-oss-badges": minor | ||
--- | ||
|
||
Add featured project badge exports for improved tree shaking |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import clsx from "clsx" | ||
import { CSSProperties, SVGProps } from "react" | ||
import CloudSplice from "../assets/featuredLogos/cloudsplice.svg" | ||
import CloudSpliceSimple from "../assets/featuredLogos/cloudsplice-simple.svg" | ||
import styles from "../styles.module.css" | ||
|
||
type Props = SVGProps<SVGElement> & { | ||
className?: string | ||
isHoverable?: boolean | ||
style?: CSSProperties | ||
simple?: boolean | ||
} | ||
|
||
export const CloudSpliceBadge = ({ | ||
className, | ||
style, | ||
isHoverable = true, | ||
simple = false, | ||
...rest | ||
}: Props) => { | ||
const Logo = simple ? CloudSpliceSimple : CloudSplice | ||
|
||
return ( | ||
<Logo | ||
className={clsx(isHoverable && styles.hoverableLogo, className)} | ||
style={style} | ||
{...rest} | ||
/> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import clsx from "clsx" | ||
import { CSSProperties, SVGProps } from "react" | ||
import Envy from "../assets/featuredLogos/envy.svg" | ||
import EnvySimple from "../assets/featuredLogos/envy-simple.svg" | ||
import styles from "../styles.module.css" | ||
|
||
type Props = SVGProps<SVGElement> & { | ||
className?: string | ||
isHoverable?: boolean | ||
style?: CSSProperties | ||
simple?: boolean | ||
} | ||
|
||
export const EnvyBadge = ({ | ||
className, | ||
style, | ||
isHoverable = true, | ||
simple = false, | ||
...rest | ||
}: Props) => { | ||
const Logo = simple ? EnvySimple : Envy | ||
|
||
return ( | ||
<Logo | ||
className={clsx(isHoverable && styles.hoverableLogo, className)} | ||
style={style} | ||
{...rest} | ||
/> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import clsx from "clsx" | ||
import { CSSProperties, SVGProps } from "react" | ||
import FigLog from "../assets/featuredLogos/figlog.svg" | ||
import FigLogSimple from "../assets/featuredLogos/figlog-simple.svg" | ||
import styles from "../styles.module.css" | ||
|
||
type Props = SVGProps<SVGElement> & { | ||
className?: string | ||
isHoverable?: boolean | ||
style?: CSSProperties | ||
simple?: boolean | ||
} | ||
|
||
export const FigLogBadge = ({ | ||
className, | ||
style, | ||
isHoverable = true, | ||
simple = false, | ||
...rest | ||
}: Props) => { | ||
const Logo = simple ? FigLogSimple : FigLog | ||
|
||
return ( | ||
<Logo | ||
className={clsx(isHoverable && styles.hoverableLogo, className)} | ||
style={style} | ||
{...rest} | ||
/> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import clsx from "clsx" | ||
import { CSSProperties, SVGProps } from "react" | ||
import Groqd from "../assets/featuredLogos/groqd.svg" | ||
import GroqdSimple from "../assets/featuredLogos/groqd-simple.svg" | ||
import styles from "../styles.module.css" | ||
|
||
type Props = SVGProps<SVGElement> & { | ||
className?: string | ||
isHoverable?: boolean | ||
style?: CSSProperties | ||
simple?: boolean | ||
} | ||
|
||
export const GroqdBadge = ({ | ||
className, | ||
style, | ||
isHoverable = true, | ||
simple = false, | ||
...rest | ||
}: Props) => { | ||
const Logo = simple ? GroqdSimple : Groqd | ||
|
||
return ( | ||
<Logo | ||
className={clsx(isHoverable && styles.hoverableLogo, className)} | ||
style={style} | ||
{...rest} | ||
/> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import clsx from "clsx" | ||
import { CSSProperties, SVGProps } from "react" | ||
import Nuka from "../assets/featuredLogos/nuka.svg" | ||
import NukaSimple from "../assets/featuredLogos/nuka-simple.svg" | ||
import styles from "../styles.module.css" | ||
|
||
type Props = SVGProps<SVGElement> & { | ||
className?: string | ||
isHoverable?: boolean | ||
style?: CSSProperties | ||
simple?: boolean | ||
} | ||
|
||
export const NukaBadge = ({ | ||
className, | ||
style, | ||
isHoverable = true, | ||
simple = false, | ||
...rest | ||
}: Props) => { | ||
const Logo = simple ? NukaSimple : Nuka | ||
|
||
return ( | ||
<Logo | ||
className={clsx(isHoverable && styles.hoverableLogo, className)} | ||
style={style} | ||
{...rest} | ||
/> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import clsx from "clsx" | ||
import { CSSProperties, SVGProps } from "react" | ||
import Owl from "../assets/featuredLogos/owl.svg" | ||
import OwlSimple from "../assets/featuredLogos/owl-simple.svg" | ||
import styles from "../styles.module.css" | ||
|
||
type Props = SVGProps<SVGElement> & { | ||
className?: string | ||
isHoverable?: boolean | ||
style?: CSSProperties | ||
simple?: boolean | ||
} | ||
|
||
export const OwlBadge = ({ | ||
className, | ||
style, | ||
isHoverable = true, | ||
simple = false, | ||
...rest | ||
}: Props) => { | ||
const Logo = simple ? OwlSimple : Owl | ||
|
||
return ( | ||
<Logo | ||
className={clsx(isHoverable && styles.hoverableLogo, className)} | ||
style={style} | ||
{...rest} | ||
/> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import clsx from "clsx" | ||
import { CSSProperties, SVGProps } from "react" | ||
import Renature from "../assets/featuredLogos/renature.svg" | ||
import RenatureSimple from "../assets/featuredLogos/renature-simple.svg" | ||
import styles from "../styles.module.css" | ||
|
||
type Props = SVGProps<SVGElement> & { | ||
className?: string | ||
isHoverable?: boolean | ||
style?: CSSProperties | ||
simple?: boolean | ||
} | ||
|
||
export const RenatureBadge = ({ | ||
className, | ||
style, | ||
isHoverable = true, | ||
simple = false, | ||
...rest | ||
}: Props) => { | ||
const Logo = simple ? RenatureSimple : Renature | ||
|
||
return ( | ||
<Logo | ||
className={clsx(isHoverable && styles.hoverableLogo, className)} | ||
style={style} | ||
{...rest} | ||
/> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import clsx from "clsx" | ||
import { CSSProperties, SVGProps } from "react" | ||
import Spectacle from "../assets/featuredLogos/spectacle.svg" | ||
import SpectacleSimple from "../assets/featuredLogos/spectacle-simple.svg" | ||
import styles from "../styles.module.css" | ||
|
||
type Props = SVGProps<SVGElement> & { | ||
className?: string | ||
isHoverable?: boolean | ||
style?: CSSProperties | ||
simple?: boolean | ||
} | ||
|
||
export const SpectacleBadge = ({ | ||
className, | ||
style, | ||
isHoverable = true, | ||
simple = false, | ||
...rest | ||
}: Props) => { | ||
const Logo = simple ? SpectacleSimple : Spectacle | ||
|
||
return ( | ||
<Logo | ||
className={clsx(isHoverable && styles.hoverableLogo, className)} | ||
style={style} | ||
{...rest} | ||
/> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import clsx from "clsx" | ||
import { CSSProperties, SVGProps } from "react" | ||
import Urql from "../assets/featuredLogos/urql.svg" | ||
import UrqlSimple from "../assets/featuredLogos/urql-simple.svg" | ||
import styles from "../styles.module.css" | ||
|
||
type Props = SVGProps<SVGElement> & { | ||
className?: string | ||
isHoverable?: boolean | ||
style?: CSSProperties | ||
simple?: boolean | ||
} | ||
|
||
export const UrqlBadge = ({ | ||
className, | ||
style, | ||
isHoverable = true, | ||
simple = false, | ||
...rest | ||
}: Props) => { | ||
const Logo = simple ? UrqlSimple : Urql | ||
|
||
return ( | ||
<Logo | ||
className={clsx(isHoverable && styles.hoverableLogo, className)} | ||
style={style} | ||
{...rest} | ||
/> | ||
) | ||
} |
Oops, something went wrong.