bx-1316-refactoring #14

Merged
ksenia_mikhailova merged 46 commits from bx-1316-refactoring into dev 2024-08-28 15:06:52 +03:00
2 changed files with 9 additions and 10 deletions
Showing only changes of commit 26d342b8e0 - Show all commits

View File

@ -8,11 +8,10 @@ const props = defineProps(['files'])
onMounted(async () => {
const files = props.files
const width = 1920
const height = 1080
// const width = window.innerWidth
// const height = window.innerHeight
const radius = 10
// const width = 1920
// const height = 1080
const width = window.innerWidth
const height = window.innerHeight
const svg = d3.select('#gallery').append("svg")
.attr("viewBox", [0, 0, width, height])
@ -38,8 +37,8 @@ onMounted(async () => {
});
const range = files.length + 2
const circles = d3.range(range).map(() => ({
x: Math.random() * (width - radius * 2) + radius,
y: Math.random() * (height - radius * 2) + radius,
x: Math.random() * width,
y: Math.random() * height,
}));
let voronoi = d3.Delaunay

View File

@ -37,7 +37,7 @@ const page = Array.isArray(pageArray) ? pageArray[0] : pageArray
background-image: url(../../assets/promo/map.png);
background-position: 50% 100%;
background-repeat: no-repeat;
background-size: auto 100%;
}
.pin {
@ -47,8 +47,8 @@ const page = Array.isArray(pageArray) ? pageArray[0] : pageArray
overflow: hidden;
position: absolute;
bottom: 300px;
left: calc(50% - 80px);
bottom: 20vh;
left: calc(50% - 1vw);
color: white;