Some cleaning...

This commit is contained in:
Nicolò P. 2024-05-31 08:13:10 +02:00
parent d4eda16b59
commit 872f9ebe0b
3 changed files with 12 additions and 31 deletions

View File

@ -1,22 +1,14 @@
@import url('../vendor/fontawesome-free/css/all.min.css');
@import url('../vendor/bulma/css/bulma.min.css');
/*
input[type="file"] {
opacity: 0;
}
label[for="load-ifc"] {
padding: 10px;
cursor: pointer;
position: absolute;
top: 0;
right: 4rem;
background-color: #ddd;
border: 1px #333 solid;
border-radius: 5px;
}
*/
#scene {
min-height: 100vh;
overflow: hidden;
}
#ui {
position: absolute;
top: 2rem;
min-width: 100vw;
min-height: 100vh;
z-index: 5;
}

View File

@ -20,7 +20,7 @@
</head>
<body>
<div id="scene"></div>
<div id="ui" style="position: absolute; top: 2rem; min-width: 100vw; z-index: 5;" data-theme="light">
<div id="ui" data-theme="light">
<div class="file ml-4">
<label class="file-label">
<input class="file-input"
@ -36,6 +36,9 @@
</span>
</label>
</div>
<div class="container p-3" style="min-height: 200px;">
<span class="is-large"></span>
</div>
</div>
</body>
</html>

16
main.js
View File

@ -3,20 +3,6 @@
import UI from './ui.js';
document.addEventListener('DOMContentLoaded', () => {
const container = document.querySelector('#scene');
UI.setScene(container);
UI.setScene(document.querySelector('#scene'));
UI.ifcLoader();
// Creates a cube with three.js
/*
const material = new THREE.MeshLambertMaterial({ color: "#6528D7" });
const geometry = new THREE.BoxGeometry();
const cube = new THREE.Mesh(geometry, material);
world.scene.three.add(cube);
world.scene.setup();
world.camera.controls.setLookAt(3, 3, 3, 0, 0, 0);
*/
});