dev #10

Merged
ksenia_mikhailova merged 46 commits from dev into main 2024-07-24 12:58:58 +03:00
1 changed files with 15 additions and 1 deletions
Showing only changes of commit 5a3046eee0 - Show all commits

View File

@ -1,7 +1,7 @@
<script setup lang="ts"> <script setup lang="ts">
import { reactive, ref, watch } from 'vue'; import { reactive, ref, watch } from 'vue';
import type { Ref } from 'vue' import type { Ref } from 'vue'
import { useRoute } from 'vue-router'; import { RouterLink, useRoute } from 'vue-router';
import { Vector3 } from 'three'; import { Vector3 } from 'three';
import { TresCanvas } from '@tresjs/core'; import { TresCanvas } from '@tresjs/core';
@ -73,6 +73,9 @@ watch(() => route.params.target, () => {
<TresShadowMaterial :opacity="0.2" /> <TresShadowMaterial :opacity="0.2" />
</TresMesh> </TresMesh>
</TresCanvas> </TresCanvas>
<RouterLink to="/promo/main/" class="homelink">
<i-mdi-home />
</RouterLink>
</div> </div>
<Sidebar /> <Sidebar />
</div> </div>
@ -93,4 +96,15 @@ watch(() => route.params.target, () => {
filter: blur(10px); filter: blur(10px);
transition: all 300ms linear; transition: all 300ms linear;
} }
.homelink {
position: absolute;
right: 0;
bottom: 0;
font-size: 5rem;
border-radius: 50%;
border: 1px solid white;
background: white;
padding: 0.5rem;
line-height: 1;
}
</style> </style>