Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
},
"dependencies": {
"core-js": "^3.6.5",
"tailwindcss": "^1.8.10",
"three": "^0.120.1",
"three-orbitcontrols": "^2.110.3",
"vue": "^3.0.0-0"
},
"devDependencies": {
Expand Down
9 changes: 9 additions & 0 deletions client/postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const autoprefixer = require('autoprefixer');
const tailwindcss = require('tailwindcss');

module.exports = {
plugins: [
tailwindcss,
autoprefixer,
],
};
10 changes: 6 additions & 4 deletions client/src/App.vue
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
<template>
<Model />
<div>
<Nav />
<Model />
</div>
</template>

<script>
import Model from "./components/Model.vue";
import Nav from "./components/Nav.vue";

export default {
name: "App",
components: {
Model,
Nav,
},
};
</script>
<style>
body {
margin: 0;
}
</style>
Binary file added client/src/assets/images/doors/double_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/src/assets/images/doors/single_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/src/assets/images/doors/single_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/src/assets/images/doors/single_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/src/assets/images/doors/single_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/src/assets/images/doors/single_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/src/assets/images/doors/single_6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/src/assets/images/doors/single_7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/src/assets/images/floors/cotto_floor.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/src/assets/images/floors/cotto_floor_1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/src/assets/images/floors/cream_floor.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/src/assets/images/icons/door_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/src/assets/images/icons/floor_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/src/assets/images/icons/plus_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/src/assets/images/icons/wall_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/src/assets/images/icons/window_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/src/assets/images/wallpapers/color_5F9EA0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/src/assets/images/wallpapers/color_e587a0.png
Binary file added client/src/assets/images/windows/single_1.png
Binary file added client/src/assets/images/windows/single_2.png
Binary file added client/src/assets/images/windows/single_3.png
Binary file added client/src/assets/images/windows/single_4.png
Binary file added client/src/assets/images/windows/single_5.png
Binary file added client/src/assets/images/windows/single_6.png
Binary file added client/src/assets/images/windows/single_7.png
Binary file added client/src/assets/images/windows/single_8.png
3 changes: 3 additions & 0 deletions client/src/assets/styles/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
34 changes: 34 additions & 0 deletions client/src/components/3DObject.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<template>
<div class="fix-object plus-btn">
<img class="bar-img" src="../assets/images/icons/plus_icon.png" />
</div>
</template>
<script>
export default {
name: "Object3D",
};
</script>
<style scoped>
.fix-object {
@apply fixed;
top: 80%;
right: 10%;
}

.plus-btn {
@apply p-3;
@apply cursor-pointer;
@apply border-solid;
@apply border-2;
@apply border-white;
@apply bg-white;
@apply w-16;
@apply h-16;
@apply rounded-full;
}

.plus-btn:hover {
@apply border-teal-600;
@apply bg-gray-400;
}
</style>
71 changes: 71 additions & 0 deletions client/src/components/ColorPalette.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
<template>
<div class="space-x-1 bar-center">
<div
v-for="colorItem in colorItemList"
:key="colorItem.id"
class="inline-block bar-btn"
:style="[!colorItem.texture ? { background: `#${colorItem.color}` } : {}]"
@click="clickColor(colorItem)"
>
<img
v-if="colorItem.texture"
class="bar-img"
:src="getSrc(colorItem.texture)"
/>
</div>
</div>
</template>
<script>
export default {
name: "ColorPalette",
props: ["colorItemList"],
computed: {
/**
* This is to get image source.
* @param {string} imgPath image path
* @returns image
*/
getSrc() {
return (imgPath) => require("../assets/" + imgPath);
},
},
methods: {
/**
* This is to handle click event for color.
* This will alert to parent Model component for color picking up.
* @param {object} colorItem color item
* @returns void
*/
clickColor(colorItem) {
this.$emit("get-color", colorItem);
},
},
};
</script>

<style scoped>
.bar-center {
@apply absolute;
@apply bottom-0;
left: 50%;
transform: translateX(-50%);
}
.bar-img {
@apply w-full;
@apply h-full;
@apply object-cover;
}
.bar-btn {
@apply cursor-pointer;
@apply border-solid;
@apply border-2;
@apply border-white;
@apply bg-white;
@apply w-20;
@apply h-20;
}
.bar-btn:hover {
@apply border-teal-600;
@apply bg-gray-400;
}
</style>
Loading