Add buttons, text input, vehicle image components.

Test for usability.
This commit is contained in:
bmauger 2021-10-05 19:32:23 -04:00
parent bbb45294d9
commit 6be5eca970
9 changed files with 42 additions and 16 deletions

View file

@ -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>

View file

@ -1,3 +1,4 @@
//Custom button styles
.btn {
&.btn-secondary {
position: relative;//Required for :after pseduo to position correctly

View file

@ -0,0 +1,6 @@
.vehicle-image {
padding: 6px;
&.blur {
filter: blur(6px);
}
}

View file

@ -19,3 +19,4 @@
//Custom Components CSS
@import "./components/_navbar";
@import "./components/_buttons";
@import "./components/_vehicle-image";

View file

@ -0,0 +1,3 @@
<template>
<button type="button" class="btn btn-funnel border rounded w-100 text-start">2021</button>
</template>

View file

@ -0,0 +1,3 @@
<template>
<button type="button" class="btn btn-primary">Primary</button>
</template>

View file

@ -0,0 +1,3 @@
<template>
<button type="button" class="btn btn-secondary">Secondary</button>
</template>

View 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>

View file

@ -0,0 +1,3 @@
<template>
<img class="vehicle-image blur img-fluid" src="https://placekitten.com/600/300" />
</template>