forked from mns/mini-skamja
Compare commits
5 Commits
main
...
trainee_ur
Author | SHA1 | Date |
---|---|---|
|
e4e8a5e386 | |
|
c46fca3c44 | |
|
72189d8158 | |
|
56626ee947 | |
|
08f52010c6 |
|
@ -23,7 +23,7 @@ const toggle_menu = () => {
|
|||
<div class="logo">
|
||||
<NuxtLink to="/">
|
||||
<k_logo />
|
||||
<span class="logo_text">Купи Скамейку!</span>
|
||||
<span class="logo_text">Купи Урну!</span>
|
||||
</NuxtLink>
|
||||
</div>
|
||||
<div class="menu-toggle">
|
||||
|
|
|
@ -4,8 +4,8 @@ import { Vector3 } from "three";
|
|||
const { openModal } = useModalState();
|
||||
|
||||
const types = {
|
||||
bench: defineAsyncComponent(() => import("./bench.vue")),
|
||||
table: defineAsyncComponent(() => import("./bench-table.vue")),
|
||||
bench: defineAsyncComponent(() => import("./urna1.vue")),
|
||||
table: defineAsyncComponent(() => import("./urna2.vue")),
|
||||
};
|
||||
|
||||
const props = defineProps({
|
||||
|
@ -21,10 +21,10 @@ const controls = ref();
|
|||
|
||||
const controlsState = reactive({
|
||||
minDistance: 0.5,
|
||||
maxDistance: 5,
|
||||
maxDistance: 5.0,
|
||||
enablePan: false,
|
||||
enableZoom: false,
|
||||
// maxPolarAngle: Math.PI / 2 - 0.2
|
||||
//maxPolarAngle: Math.PI / 5 - 0.5
|
||||
});
|
||||
|
||||
const changeDistance = (v = 1) => {
|
||||
|
@ -82,7 +82,7 @@ const changeDistance = (v = 1) => {
|
|||
</div>
|
||||
</ClientOnly>
|
||||
<div class="absolute bottom-4 left-1/2 -translate-x-1/2">
|
||||
<button @click.prevent="openModal">Рассчитать</button>
|
||||
<button @click.prevent="openModal">Заказать</button>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
@ -6,14 +6,14 @@ import { degToRad } from 'three/src/math/MathUtils.js'
|
|||
|
||||
const { camera, controls } = useTresContext()
|
||||
|
||||
const { scene } = await useGLTF('/models/bench.glb')
|
||||
const { scene } = await useGLTF('/models/urna1.glb')
|
||||
const object = calculateScaleToFit(
|
||||
scene,
|
||||
camera,
|
||||
controls,
|
||||
2,
|
||||
{
|
||||
x: Math.sin(degToRad(30)), // Смещение по оси X
|
||||
x: Math.sin(degToRad(0)), // Смещение по оси X
|
||||
y: 1, // Нет смещения по оси Y
|
||||
z: -Math.cos(degToRad(0)) // Смещение по оси Z
|
||||
}
|
|
@ -6,7 +6,7 @@ import { degToRad } from 'three/src/math/MathUtils.js'
|
|||
|
||||
const { camera, controls } = useTresContext()
|
||||
|
||||
const { scene } = await useGLTF('/models/table.glb')
|
||||
const { scene } = await useGLTF('/models/urna2.glb')
|
||||
const object = calculateScaleToFit(
|
||||
scene,
|
||||
camera,
|
|
@ -32,7 +32,7 @@ if (route.path !== '/404') {
|
|||
<div class="col-span-full">
|
||||
<h1>Вы ищете страницу, которой не существует. Вернитесь на главную страницу сайта</h1>
|
||||
<p>Извините, но мы не можем найти запрашиваемую страницу. К сожалению, мы не можем помочь вам с
|
||||
покупкой забора здесь.</p>
|
||||
покупкой урны здесь.</p>
|
||||
<p class="hidden">
|
||||
<code>
|
||||
{{ error?.message }}
|
||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue