Skip to content

React-based component to display banners at the top and bottom of the page, following IC-defined rules.

License

Notifications You must be signed in to change notification settings

OOCAZ/classification-banner

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

REACT-CLASSIFIACTION-BANNER

Basic Component for rendering a classification banner in react as a header and a footer that floats over everything.

Basic Use

Use like a normal React Component with the only specifier needed being the classifiaction variable set to the text values of "unclassified", "confidential", "cui", "secret", "topsecret", or "topsecret_sci".

Install

npm install --save 'react-classification-banner'

Basic Usage (usually in your index.js, then it renders over everything)

import React from "react";
import ClassificationBanner from "react-classification-banner";

function myCoolExample(){
    return(
        <ClassificationBanner classification="unclassified" />
    )
}

export default myCoolExample;

The colors are automatic and if you enter an invalid value the banner will be black with red text

! Please note ! The Banner will float over your other content and you will need to add a spacer of 25 pixels if you want all of your content to be seen!

Please feel free to comment of go to the Github Repo and submit an issue if you have a question or would like to see additional functionality.

Additional info, the build will only work on windows rn, working on fix

Github Link:

(https://github.com/OOCAZ/react-classification-banner)

I Take big inspiration and a lot of the base code from @mobdata

Go check out their stuff: https://github.com/mobdata# classification-banner

License

react-classification-banner is released under the MIT license.

About

React-based component to display banners at the top and bottom of the page, following IC-defined rules.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 98.0%
  • Shell 2.0%