-
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
Mar 8, 2024
1 parent
c3d45bc
commit 1702b87
Showing
16 changed files
with
406 additions
and
24 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,5 +1,5 @@ | ||
<template> | ||
<div class="relative my-0 mx-auto w-full min-[500px]:w-[500px] " > | ||
<div class="relative flex flex-col my-0 mx-auto w-full h-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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,34 @@ | ||
<template> | ||
<button class="w-full bg-[#FCBF31] rounded-[16px] border-2 border-black px-6 py-[12px] text-base"> | ||
<button :class="style({disabled, color})" :disabled="disabled"> | ||
<slot/> | ||
</button> | ||
</template> | ||
<script setup lang="ts"> | ||
import {cva} from 'class-variance-authority' | ||
import {PropType} from 'vue' | ||
defineProps({ | ||
disabled: {type: Boolean, default: false}, | ||
color: {type: String as PropType<ButtonColor>, default: 'primary'} | ||
}) | ||
type ButtonColor = 'primary' | 'secondary' | ||
const style = cva( | ||
[ | ||
'text-black text-subtitle', | ||
'w-full rounded-[8px] px-[12px] py-[12px] border-2' | ||
] | ||
, { | ||
variants: { | ||
disabled: { | ||
true: 'border-dark-green text-dark-green bg-green', | ||
false: 'border-black' | ||
}, | ||
color: { | ||
'primary': 'bg-[#FCBF31]', | ||
'secondary': 'bg-green' | ||
} | ||
}, | ||
}) | ||
</script> |
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,9 @@ | ||
<template> | ||
<div> | ||
<slot name="left" /> | ||
<slot /> | ||
<slot name="right" /> | ||
</div> | ||
</template> | ||
<script setup lang="ts"> | ||
</script> |
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,41 @@ | ||
<template> | ||
<input | ||
:value="modelValue" | ||
@input="onInupt" | ||
placeholder="닉네임을 입력하세요" | ||
:class="style({filled})" | ||
:maxlength="max" | ||
> | ||
</template> | ||
<script setup lang="ts"> | ||
import {computed} from 'vue' | ||
import {cva} from 'class-variance-authority' | ||
const props = defineProps({ | ||
max: {type: Number, default: 8}, | ||
modelValue: {type: String, default: ''} | ||
}) | ||
const emit = defineEmits(['update:model-value']) | ||
const filled = computed(() => props.modelValue.length > 0) | ||
const onInupt = (event: Event) => { | ||
const target = event.target as HTMLInputElement | ||
target.value = target.value.slice(0, 8) | ||
emit('update:model-value', target.value) | ||
} | ||
const style = cva([ | ||
'w-full text-subtitle text-center p-4', | ||
'rounded-[8px] px-[12px] py-[12px] border-2' | ||
], { | ||
variants: { | ||
filled: { | ||
true: '', | ||
false: 'border-dark-green' | ||
} | ||
} | ||
}) | ||
</script> |
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,62 @@ | ||
<template> | ||
<div class="flex flex-col flex-1 justify-center items-center px-6"> | ||
<img :src="zzioGame" alt="zzio game"/> | ||
<img :src="title" alt="황금 찌오를 찾아라 beta" class="my-8"/> | ||
<img :src="illustration" alt="찌오 이미지" class="mb-6"/> | ||
<div v-if="closedRef" class="flex flex-col items-center w-full"> | ||
<ZButton color="secondary" :disabled="true">3월 말 오픈 예정</ZButton> | ||
</div> | ||
<div v-else class="flex flex-col items-center w-full"> | ||
<ZInput v-model="nicknameRef"/> | ||
<ZButton @click="onClickPlay" color="primary" :disabled="!nicknameRef" class="mt-2">게임 시작</ZButton> | ||
<ZButton | ||
@click="onClickRank" | ||
color="secondary" | ||
:disabled="false" | ||
class="mt-6" | ||
> | ||
실시간 랭킹 | ||
</ZButton> | ||
</div> | ||
<Notice :closed="closedRef"/> | ||
</div> | ||
<Footer/> | ||
</template> | ||
<script setup lang="ts"> | ||
import zzioGame from '../../assets/zzio-game.svg' | ||
import title from '../../assets/title-beta.svg' | ||
import illustration from '../../assets/illustration.svg' | ||
import ZButton from '../../components/ZButton.vue' | ||
import Footer from '../../components/Footer.vue' | ||
import {onBeforeUnmount, ref, watch} from 'vue' | ||
import Notice from './_components/Notice.vue' | ||
import ZInput from '../../components/ZInput.vue' | ||
import {useRouter} from 'vue-router' | ||
const router = useRouter() | ||
const nicknameRef = ref('') | ||
const closedRef = ref(false) | ||
const currentTime = ref(new Date()) | ||
const targetTime = new Date('2024-03-17T19:00:00+09:00') | ||
const interval = setInterval(() => { | ||
currentTime.value = new Date() | ||
}, 1000) | ||
watch(currentTime, () => { | ||
if (currentTime.value > targetTime) { | ||
closedRef.value = true | ||
} | ||
}) | ||
onBeforeUnmount(() => clearInterval(interval)) | ||
const onClickPlay = () => { | ||
router.push('/play') | ||
} | ||
const onClickRank = () => { | ||
router.push('/rank') | ||
} | ||
</script> |
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,23 @@ | ||
<template> | ||
<div class="text-dark-green mt-6 mb-2"> | ||
<img :src="beta" class="inline mr-1" alt="beta"/> | ||
<h3 class="text-caption-b inline">{{ titleRef }}</h3> | ||
</div> | ||
<ul class="text-caption-r text-dark-green list-disc ml-4"> | ||
<li v-for="text in textRef" v-bind:key="text">{{ text }}</li> | ||
</ul> | ||
</template> | ||
<script setup lang="ts"> | ||
import beta from '@/assets/beta.svg' | ||
import {computed} from 'vue' | ||
defineProps({ | ||
closed: {type: Boolean, default: false}, | ||
}) | ||
const titleRef = computed(() => closed ? '운영 종료 안내' : '운영 안내') | ||
const textRef = computed(() => closed ? | ||
['현재 찌오 게임 베타 버전은 종료 되었으며, 정식 버전은 24.03.24(일) 이후 오픈 예정입니다.'] : | ||
['베타 버전은 24.03.17 (일) 19시 까지만 시범 운영 예정이며, 정식 버전은 24.03.24 (일) 이후 오픈 예정입니다.', | ||
'베타 버전이 종료된 이후에는 모든 랭킹이 초기화 됩니다.']) | ||
</script> |
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,3 @@ | ||
<template> | ||
ranking | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,38 +5,55 @@ | |
@tailwind utilities; | ||
|
||
@font-face { | ||
font-family: 'GangwonEduHyeonokT_OTFMediumA'; | ||
src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/[email protected]/GangwonEduHyeonokT_OTFMediumA.woff') format('woff'); | ||
font-weight: normal; | ||
font-style: normal; | ||
font-family: 'GangwonEduHyeonokT_OTFMediumA'; | ||
src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/[email protected]/GangwonEduHyeonokT_OTFMediumA.woff') format('woff'); | ||
font-weight: normal; | ||
font-style: normal; | ||
} | ||
|
||
:root { | ||
font-family: 'Noto Sans KR', Inter, system-ui, Avenir, Helvetica, Arial, sans-serif; | ||
font-synthesis: none; | ||
text-rendering: optimizeLegibility; | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
font-family: 'Noto Sans KR', Inter, system-ui, Avenir, Helvetica, Arial, sans-serif; | ||
font-synthesis: none; | ||
text-rendering: optimizeLegibility; | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
} | ||
|
||
body { | ||
display: flex; | ||
position: fixed; | ||
margin: 0; | ||
width: 100%; | ||
height: 100%; | ||
min-width: 320px; | ||
min-height: 100vh; | ||
background-color: #8ACFA7; | ||
display: flex; | ||
position: fixed; | ||
margin: 0; | ||
width: 100%; | ||
height: 100%; | ||
min-width: 320px; | ||
min-height: 100vh; | ||
background-color: #8ACFA7; | ||
} | ||
|
||
textarea:focus, input:focus { | ||
outline: none; | ||
} | ||
|
||
input::placeholder { | ||
color: #ccc; | ||
} | ||
|
||
input::-webkit-input-placeholder { | ||
color: #ccc; | ||
} | ||
|
||
input:-ms-input-placeholder { | ||
color: #ccc; | ||
} | ||
|
||
|
||
#app { | ||
width: 100%; | ||
height: 100%; | ||
width: 100%; | ||
height: 100%; | ||
} | ||
|
||
img, canvas, span, div { | ||
user-select: none; | ||
-webkit-user-select: none; | ||
-moz-user-select: none; | ||
user-select: none; | ||
-webkit-user-select: none; | ||
-moz-user-select: none; | ||
} |
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