Add buttons, text input, vehicle image components.
Test for usability.
This commit is contained in:
parent
bbb45294d9
commit
6be5eca970
9 changed files with 42 additions and 16 deletions
31
src/App.vue
31
src/App.vue
|
|
@ -1,26 +1,25 @@
|
||||||
<template>
|
<template>
|
||||||
<HeaderNav/>
|
<buttonPrimary/>
|
||||||
<div class="container">
|
<buttonSecondary/>
|
||||||
<div class="row">
|
<buttonFunnel/>
|
||||||
<div class="col">
|
<textInput/>
|
||||||
<HelloWorld msg="VueJS with Bootstrap"/>
|
<vehicleImage/>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<Colors/>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import HelloWorld from './components/HelloWorld.vue';
|
import buttonPrimary from './components/buttons/buttonPrimary';
|
||||||
import HeaderNav from './components/HeaderNav';
|
import buttonSecondary from './components/buttons/buttonSecondary';
|
||||||
import Colors from './components/Colors';
|
import buttonFunnel from './components/buttons/buttonFunnel';
|
||||||
|
import textInput from './components/forms/textInput';
|
||||||
|
import vehicleImage from './components/vehicleImage';
|
||||||
export default {
|
export default {
|
||||||
name: 'App',
|
name: 'App',
|
||||||
components: {
|
components: {
|
||||||
HelloWorld,
|
buttonPrimary,
|
||||||
HeaderNav,
|
buttonSecondary,
|
||||||
Colors
|
buttonFunnel,
|
||||||
|
textInput,
|
||||||
|
vehicleImage
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
//Custom button styles
|
||||||
.btn {
|
.btn {
|
||||||
&.btn-secondary {
|
&.btn-secondary {
|
||||||
position: relative;//Required for :after pseduo to position correctly
|
position: relative;//Required for :after pseduo to position correctly
|
||||||
|
|
|
||||||
6
src/assets/scss/components/_vehicle-image.scss
Normal file
6
src/assets/scss/components/_vehicle-image.scss
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
.vehicle-image {
|
||||||
|
padding: 6px;
|
||||||
|
&.blur {
|
||||||
|
filter: blur(6px);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -19,3 +19,4 @@
|
||||||
//Custom Components CSS
|
//Custom Components CSS
|
||||||
@import "./components/_navbar";
|
@import "./components/_navbar";
|
||||||
@import "./components/_buttons";
|
@import "./components/_buttons";
|
||||||
|
@import "./components/_vehicle-image";
|
||||||
|
|
|
||||||
3
src/components/buttons/buttonFunnel.vue
Normal file
3
src/components/buttons/buttonFunnel.vue
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
<template>
|
||||||
|
<button type="button" class="btn btn-funnel border rounded w-100 text-start">2021</button>
|
||||||
|
</template>
|
||||||
3
src/components/buttons/buttonPrimary.vue
Normal file
3
src/components/buttons/buttonPrimary.vue
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
<template>
|
||||||
|
<button type="button" class="btn btn-primary">Primary</button>
|
||||||
|
</template>
|
||||||
3
src/components/buttons/buttonSecondary.vue
Normal file
3
src/components/buttons/buttonSecondary.vue
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
<template>
|
||||||
|
<button type="button" class="btn btn-secondary">Secondary</button>
|
||||||
|
</template>
|
||||||
7
src/components/forms/textInput.vue
Normal file
7
src/components/forms/textInput.vue
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
<template>
|
||||||
|
<div><!-- Add helper classes to wrapper div if margin is needed -->
|
||||||
|
<!-- Hide label but still accessible to screen reader with .visually-hidden -->
|
||||||
|
<label for="exampleFormControlInput1" class="form-label visually-hidden">Email address</label>
|
||||||
|
<input type="email" class="form-control" id="exampleFormControlInput1" placeholder="name@example.com">
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
3
src/components/vehicleImage.vue
Normal file
3
src/components/vehicleImage.vue
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
<template>
|
||||||
|
<img class="vehicle-image blur img-fluid" src="https://placekitten.com/600/300" />
|
||||||
|
</template>
|
||||||
Loading…
Reference in a new issue