Skip to content

Commit

Permalink
Merge pull request #59 from everfu/main
Browse files Browse the repository at this point in the history
fix: Spelling error in the square background and failed to load
  • Loading branch information
eggsy authored Feb 15, 2025
2 parents c731565 + e040bb4 commit b46eeda
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions components/SquaresBackground.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const props = withDefaults(
)
const gridOffset = ref({ x: 0, y: 0 })
const requestRef = ref<number | null>(0)
const requestRef = ref<number | null>(null)
const numSquaresX = ref(0)
const numSquaresY = ref(0)
const canvas = ref<HTMLCanvasElement>()
Expand Down Expand Up @@ -84,7 +84,7 @@ const drawGrid = () => {
0,
canvas.value.width / 2,
canvas.value.height / 2,
Math.sqrt(canvas.value.width ** 2 + canvas.value.height ** 2) / 2,
Math.hypot(canvas.value.width / 2, canvas.value.height / 2),
)
gradient.addColorStop(0, "rgba(0, 0, 0, 0)")
Expand Down
4 changes: 2 additions & 2 deletions pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ useHead({
>
<div class="flex items-center gap-8">
<div
class="hidden dark:block absolute inset-0 pointer-events-none overflow-hidden z-0 opacity-5"
class="absolute inset-0 pointer-events-none overflow-hidden z-50 opacity-5"
>
<SquaresBackground
:speed="0.3"
:sqaure-size="5"
:squareSize="40"
class="w-full h-full"
/>
</div>
Expand Down

0 comments on commit b46eeda

Please sign in to comment.