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>
|
||||
<HeaderNav/>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<HelloWorld msg="VueJS with Bootstrap"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<Colors/>
|
||||
<buttonPrimary/>
|
||||
<buttonSecondary/>
|
||||
<buttonFunnel/>
|
||||
<textInput/>
|
||||
<vehicleImage/>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import HelloWorld from './components/HelloWorld.vue';
|
||||
import HeaderNav from './components/HeaderNav';
|
||||
import Colors from './components/Colors';
|
||||
|
||||
import buttonPrimary from './components/buttons/buttonPrimary';
|
||||
import buttonSecondary from './components/buttons/buttonSecondary';
|
||||
import buttonFunnel from './components/buttons/buttonFunnel';
|
||||
import textInput from './components/forms/textInput';
|
||||
import vehicleImage from './components/vehicleImage';
|
||||
export default {
|
||||
name: 'App',
|
||||
components: {
|
||||
HelloWorld,
|
||||
HeaderNav,
|
||||
Colors
|
||||
buttonPrimary,
|
||||
buttonSecondary,
|
||||
buttonFunnel,
|
||||
textInput,
|
||||
vehicleImage
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
//Custom button styles
|
||||
.btn {
|
||||
&.btn-secondary {
|
||||
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
|
||||
@import "./components/_navbar";
|
||||
@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