-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
da-in
committed
Jan 20, 2024
1 parent
241b2cd
commit 02b2d07
Showing
7 changed files
with
93 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<template> | ||
<div class="my-0 mx-auto w-full min-[500px]:w-[500px] " > | ||
<slot/> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<template> | ||
<div class="text-[30px] font-black text-[#FEBE31] text-shadow">{{score}}</div> | ||
</template> | ||
<script setup lang="ts"> | ||
defineProps({ | ||
score: { | ||
type:Number, | ||
default: 0 | ||
} | ||
}) | ||
</script> | ||
<style scoped> | ||
.text-shadow { | ||
text-shadow: 2px 0 #1E1E1E, -2px 0 #1E1E1E, 0 2px #1E1E1E, 0 -2px #1E1E1E, 1px 1px #1E1E1E, -1px -1px #1E1E1E, 1px -1px #1E1E1E, -1px 1px #1E1E1E; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
const RATIO = 584/360 | ||
|
||
export const getDynamicCanvasSize = () => { | ||
const width = window.innerWidth | ||
const height = width * RATIO | ||
return {width, height} | ||
export const getDynamicCanvasHeight = (width: number) => { | ||
return width * RATIO | ||
} |