Skip to content

Commit

Permalink
Add wall color picker demo
Browse files Browse the repository at this point in the history
  • Loading branch information
cagataycivici committed May 9, 2022
1 parent 3542cd4 commit 22e4d68
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
Binary file added public/demo/images/interior.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 19 additions & 1 deletion src/views/colorpicker/ColorPickerDemo.vue
Expand Up @@ -16,6 +16,16 @@
<h5>Overlay</h5>
<ColorPicker v-model="color2" />
</div>

<div class="card">
<h5>Wall Color</h5>
<div class="flex flex-column align-items-center md:flex-row md:align-items-start">
<ColorPicker v-model="color3" :inline="true" />
<div :style="wallStyle" class="mt-5 md:mt-0 md:ml-5 inline-flex">
<img alt="room" src="demo/images/interior.png" class="w-full md:auto">
</div>
</div>
</div>
</div>

<ColorPickerDoc />
Expand All @@ -29,7 +39,15 @@ export default {
data() {
return {
color1: null,
color2: '1976D2'
color2: '1976D2',
color3: '474747'
}
},
computed: {
wallStyle() {
return {
backgroundColor: '#' + this.color3
}
}
},
components: {
Expand Down

0 comments on commit 22e4d68

Please sign in to comment.