@parsifal-m/plugin-dev-quotes-homepage
TypeScript icon, indicating that this package has built-in type declarations

3.0.7 • Public • Published

dev-quotes-homepage

Hello! 👋

This is just a fun little plugin that I made to display some random coding/programming related quotes on the Backstage homepage. Although to be honest the card can be used anywhere you like! I hope you enjoy it!

If you want to leave a star, that would be awesome! ⭐

I don't expect much work to be done on this plugin as it was just a fun little project I made. But if you would like to contribute, please do! See Would you like to contribute? or add more quotes? for more information.

Pre-requisites (if you want to use it on the homepage)

If you do want to use it on the homepage, first make sure you look over the official docs on how to configure the homepage here. There is also the homepage plugin which might be better to read first.

Installation

yarn add --cwd packages/app @parsifal-m/plugin-dev-quotes-homepage

Then all you need to do is import the card as below, anywhere you like!

import { DevQuote } from '@parsifal-m/plugin-dev-quotes-homepage';

const overviewContent = (
  <Grid container spacing={3} alignItems="stretch">
    {entityWarningContent}
    <Grid item md={6}>
      <EntityAboutCard variant="gridItem" />
    </Grid>
    <Grid item md={6} xs={12}>
      <EntityCatalogGraphCard variant="gridItem" height={400} />
    </Grid>
    <Grid item md={4} xs={12}>
      <DevQuote />
    </Grid>

    <Grid item md={6} xs={12}>
      <OpaMetadataAnalysisCard />
    </Grid>

    <Grid item md={4} xs={12}>
      <EntityLinksCard />
    </Grid>
    <Grid item md={8} xs={12}>
      <EntityHasSubcomponentsCard variant="gridItem" />
    </Grid>
  </Grid>
);

Example

An example quote

Quote Image

An example quote on an entity page:

Quote Entity Page

Would you like to contribute? or add more quotes?

Please do! I would love to see more quotes added to this plugin. If you would like to add some quotes, please open a pull request with your changes. If you would like to add a lot of quotes, please open an issue first so we can discuss it. And please keep them programming related, and keep it safe for work! Here is a short example of how to add a quote:

  • Clone the repository and run yarn install --immutable
  • Add the quote to the quotes.ts file in the src folder.
  • Run yarn prettier:write
  • Make sure to sign your commit with git commit -s -m "Added quote by <someone>"

When will my quote be added to the plugin?

I will try and release a new version with the new quotes as soon as possible. Keep in mind this is a side project I made for fun!

License

This project is released under the Apache 2.0 License.

Package Sidebar

Install

npm i @parsifal-m/plugin-dev-quotes-homepage

Weekly Downloads

224

Version

3.0.7

License

Apache-2.0

Unpacked Size

50.3 kB

Total Files

10

Last publish

Collaborators

  • parsifal-m