0.0.2 • Published 6 years ago

react-welcome-screen-dev v0.0.2

Weekly downloads
2
License
MIT
Repository
-
Last release
6 years ago

REACT WELCOME PAGE

Simple beautiful welcome screen for your react apps.

Example

Example Screen

<Welcome
	data={
		[
			{
				"backgroundColor":  "rgb(73, 49, 91)",
				"textColor":  "#EE79EA",
				"imageAnimation":  "flipInX",
				"image":  require('./images/1.png')
			},
			{
				"backgroundColor":  "rgb(252, 187, 19)",
				"textColor":  "#754600",
				"text":  "My App",
				"imageAnimation":  "slideInUp",
				"textAnimation":  "slideInLeft",
				"image":  require('./images/2.png')
			},
			{
				"backgroundColor":  "rgb(156, 196, 76)",
				"textColor":  "#344115",
				"text":  "Green Elephant",
				"image":  require('./images/3.png')
			},
			{
				"backgroundColor":  "rgb(4, 116, 188)",
				"textColor":  "#FFFFFF",
				"text":  "Save the World",
				"textAnimation":  "fadeInUp",
				"image":  require('./images/4.png')
			}
		]
	}
/>

Installing

npm install --save react-welcome-page

Using

import Welcome from 'react-welcome-page'

...

render(){

return(
<div id='my-container'>
	<Welcome
		loopDuration={1100}
		
		data={[
			{
				image: require('./images/mypic1.png),
				text: 'My Quote',
				imageAnimation: 'flipInX',
				textAnimation: 'bounce',
				backgroundColor: '#FF3354',
				textColor: '#002134'
			},
			{
				image: require('./images/mypic2.png),
				text: 'My Quote',
			},
			{
				image: require('./images/mypic3.png),
				textAnimation: 'rotateIn'
			}
		]}
	/>

	...Rest of the app

</div>
)
}

Table of Contents

PropRequirementDefaultType
loopDurationnot required1000 (ms)number
imagerequired-require('path of image') or 'http:// imageurl.png' (I suggest using a local image)
textnot required''string
imageAnimationnot required'rotateIn'string*
textAnimationnot required'fadeInDown'string*
backgroundColornot required'whitesmoke'string as HEX ('#123456') or RGB ('rgb(219, 123, 97)')
textColornot required'whitesmoke'string as HEX ('#123456') or RGB ('rgb(219, 123, 97)')

*Animations taken from animate.css (https://daneden.github.io/animate.css/), you can only use these animations.

Smart Color Picking Tool

To ease your work, you can use this tool to generate your <Welcome ... /> component easily.

https://utarit.github.io/react-welcome-page-color-form/