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

Export SVGs #99

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
5 changes: 5 additions & 0 deletions .changeset/famous-bobcats-listen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"formidable-oss-badges": patch
---

Export SVGs as featuredLogos
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,18 @@ for the latest available lineup.
- `FigLogBadge`
- `CloudSpliceBadge`

### FeaturedBadge props
### Featured Project Badge props

| Prop | Type | Description | Default |
| ----------- | ------- | --------------------------------------------------------------------------------- | ------- |
| className | String | Additional class names | `''` |
| isHoverable | Boolean | Add hover style effects | `true` |
| simple | Boolean | Hides the description and enlarges the abbreviation - use for small badge display | `false` |

## Featured Logos SVGs

All featured logos are available as SVGs and can be imported as `featuredLogos`

## Examples (with Images)

### ProjectBadge Usage
Expand Down
43 changes: 43 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,50 @@
import * as featuredLogos from "./assets/featuredLogos"
import renatureSVG from "./assets/featuredLogos/renature.svg"
import renatureSimpleSVG from "./assets/featuredLogos/renature-simple.svg"
import victorySVG from "./assets/featuredLogos/victory.svg"
import victorySimpleSVG from "./assets/featuredLogos/victory-simple.svg"
import spectacleSVG from "./assets/featuredLogos/spectacle.svg"
import spectacleSimpleSVG from "./assets/featuredLogos/spectacle-simple.svg"
import urqlSVG from "./assets/featuredLogos/urql.svg"
import urqlSimpleSVG from "./assets/featuredLogos/urql-simple.svg"
import nukaSVG from "./assets/featuredLogos/nuka.svg"
import nukaSimpleSVG from "./assets/featuredLogos/nuka-simple.svg"
import owlSVG from "./assets/featuredLogos/owl.svg"
import owlSimpleSVG from "./assets/featuredLogos/owl-simple.svg"
import groqdSVG from "./assets/featuredLogos/groqd.svg"
import groqdSimpleSVG from "./assets/featuredLogos/groqd-simple.svg"
import envySVG from "./assets/featuredLogos/envy.svg"
import envySimpleSVG from "./assets/featuredLogos/envy-simple.svg"
import figlogSVG from "./assets/featuredLogos/figlog.svg"
import figlogSimpleSVG from "./assets/featuredLogos/figlog-simple.svg"
import cloudspliceSVG from "./assets/featuredLogos/cloudsplice.svg"
import cloudspliceSimpleSVG from "./assets/featuredLogos/cloudsplice-simple.svg"

export { default as ProjectBadge } from "./ProjectBadge"
export { default as FeaturedBadge } from "./FeaturedBadge"
export * from "./featuredProjectBadges"

export type FeaturedBadgeNames = keyof typeof featuredLogos.default

export {
renatureSVG,
renatureSimpleSVG,
victorySVG,
victorySimpleSVG,
spectacleSVG,
spectacleSimpleSVG,
urqlSVG,
urqlSimpleSVG,
nukaSVG,
nukaSimpleSVG,
owlSVG,
owlSimpleSVG,
groqdSVG,
groqdSimpleSVG,
envySVG,
envySimpleSVG,
figlogSVG,
figlogSimpleSVG,
cloudspliceSVG,
cloudspliceSimpleSVG,
}
Loading