App.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <template>
  2. <div id="root">
  3. <!-- <header role="banner">
  4. <div class="wrapper">
  5. <h1
  6. class="site-title"
  7. tabindex="0"
  8. >
  9. </h1>
  10. </div>
  11. </header> -->
  12. <section role="main-content">
  13. <div class="wrapper">
  14. <renderer :size="size">
  15. <scene>
  16. <orbit-controls :position="{x:0,y:50,z:0}" :rotation="{ x: 2, y: 0, z: 3 }">
  17. <camera />
  18. </orbit-controls>
  19. <!-- <camera :position="{x:0,y:50,z:0}" :lookat="{x:0,y:0,z:0}" /> -->
  20. <!-- <light :hex="0xff0000" :intensity="10" :position="{x:-100}" /> -->
  21. <!-- <mesh :obj="mesh" :position="{ y: -200 }" /> -->
  22. <!-- <animation :fn="animate" :speed="3" /> -->
  23. <cube :size="10" :position="{x:0,y:0,z:0}" :color="0xFFFF00" />
  24. </scene>
  25. </renderer>
  26. </div>
  27. </section>
  28. <footer />
  29. </div>
  30. </template>
  31. <script>
  32. // import { mapState } from 'vuex'
  33. import Cube from './components/objects/Cube'
  34. export default {
  35. metaInfo: {
  36. // if no subcomponents specify a metaInfo.title, this title will be used
  37. title: 'Home',
  38. // all titles will be injected into this template
  39. titleTemplate: '%s | Muntadas'
  40. },
  41. components: {
  42. Cube
  43. // History,
  44. // Results,
  45. // Search,
  46. // FooterTabs
  47. },
  48. computed: {
  49. size () {
  50. return {
  51. w: window.innerWidth,
  52. h: window.innerHeight
  53. }
  54. }
  55. // ...mapState({
  56. // resultsOpened: state => state.Search.opened
  57. // })
  58. }
  59. }
  60. </script>
  61. <style lang="scss" scoped>
  62. .container{
  63. // font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  64. max-width: 1200px;
  65. }
  66. </style>