diff --git a/docs/components/home/HomeTetris.vue b/docs/components/home/HomeTetris.vue
index e5c25594..10332c24 100644
--- a/docs/components/home/HomeTetris.vue
+++ b/docs/components/home/HomeTetris.vue
@@ -8,13 +8,19 @@
>
@@ -28,13 +34,8 @@ const grid = ref([])
const rows = ref(0)
const cols = ref(0)
-const colors = useAppConfig()?.ui.colors
const { width, height } = useElementSize(el)
-function getRandomColor () {
- return colors[Math.floor(Math.random() * (colors.length - 1))]
-}
-
function createGrid () {
grid.value = []
@@ -44,10 +45,9 @@ function createGrid () {
}
function createNewCell () {
- const color = getRandomColor()
const x = Math.floor(Math.random() * cols.value)
- grid.value[0][x] = color
+ grid.value[0][x] = true
}
function moveCellsDown () {