0.0.2 • Published 4 years ago

vue-enjay-design v0.0.2

Weekly downloads
11
License
-
Repository
-
Last release
4 years ago

🎨 Vue-EnJay-Design 1.0.0

Hi! I am a beginner web developer.I would like to present you my first module for quick layout and design your application.

I made:

  • Beautiful buttons
  • Cards (example for news)
  • Animations for blocks
  • Fast modal window generation
  • Own system for display image
  • Rows (using flex) Example(done in 2 minutes): N|Solid

The overriding design goal for Markdown's formatting syntax is to make it as readable as possible. The idea is that a

📦 Installation

npm i vue-enjay-design

🔧 Connection in you app.vue

import Components from 'vue-enjay-design'
import 'vue-enjay-design/dist/enjay-design.css';

Description components

I try to do all components so simply in using. So, i hope, it's will be useful for you :>


EAnimate - cycling animation for your element. Example:

<EAnimate name="skewX">
	<EImg circle w300 src="https://enjay.ru/assets/image/myVk/8.jpg" />
</EAnimate>

API:

NameParams
namefloating-circular, scalePlus, scaleMinus, translateX, translateY, skewX, skewY
speedSeconds (Example from 0.1 to ♾️)

EButton - create buttons with superb style. Example:

<EButton orange radius20>orange radius20</EButton>
<EButton pink radius50 disabled>pink radius50</EButton>

API:

NameTypeParams
radius5Booleanmake border-radius 5
radius10Booleanmake border-radius 10
radius15Booleanmake border-radius 15
radius20Booleanmake border-radius 15
radius50Booleanmake border-radius 50em
blueBooleanset gradient, you can use darkBlue too for darkest gradient
greenBooleanset gradient, you can use darkGreen too for darkest gradient
orangeBooleanset gradient, you can use darkOrange too for darkest gradient
violetBooleanset gradient, you can use darkViolet too for darkest gradient
pinkBooleanset gradient, you can use darkPink too for darkest gradient
hoverSizeBooleanbutton has glow by default and animations (you can experiment)
disabledBooleanmake your button inaccessible
linkStringOpen url
targetStringlike default html , for example target="_target" to open in new window
fontSizeStringset font size example fontSize="30px"

ECard - for quickly creating news or card with something in your app. Example:

<ECard name="This is name" image="https://cubixworld.ru/uploads/news/16.png">
	This is a text simple card
	<EHr/>
	<ERows>
		<EButton green radius50>Open</EButton>
		<EButton green disabled radius50>Like (disabled)</EButton>
	</ERows>
</ECard>

API:

NameTypeParams
nameStringset name card
iamgeStringset url for head image in card
radius5Booleanmake border-radius 5
radius10Booleanmake border-radius 10
radius15Booleanmake border-radius 15
radius20Booleanmake border-radius 15

EEmpty - For set new line. Example:

<EEmpty />

EHr - For creating dividing line. Example:

<EHr />

API:

NameTypeParams
sizeStringheight-size, example size="10"

EImg - simple inserting and styling image. Example:

<EImg circle w300 src="https://enjay.ru/assets/image/myVk/8.jpg" />

API:

NameTypeParams
srcStringurl your image
widthStringset width for image, example width="50%"
shadowBooleanset default shadow for image
circleBooleanmake your image circle ⚽️
Quick way to set the size: you can use a boolean variables, like: w50, w100, w150, w200, w250, w300, they set width: *wNUM*px or of course use default width from API.

ERows - Flex marvel 🤣. Made auto-rows with flex help. Example:

<ERows>
	<h1>EnJay</h1>
	<h1>EnJay</h1>
	<h1>EnJay</h1>
</ERows>

API:

NameTypeParams
centerBooleanset all your child elements to center

EModal - create simple modal window. Example:

<EModal yesNo v-if="modal" name="PRIVET!" yes="YEAH!" no="NOOOPE">
	Information info and inf, kek xD
</EModal>

API:

NameTypeParams
nameStringset title for modal
yesNoBooleanif you want use confirmations buttons
yesStringif you want change text in button
noStringlike previous

For use you should create method and set variable in your component.vue:

data() {
	return {
		modal: false
	};
},
methods: {
	modalResult(result){
		if(result=='yes'){
			this.modal=true
			//or do smth...
		}else(
			this.modal=false //close modal
			//or do smth...
		)
	}
}
After that, call opening modal
<EButton @click="modal = true">violet radius10</EButton>

Contacts

See my personal site-blog Email: enjay240@gmail.com

License

MIT