Skip to content

Commit

Permalink
Merge pull request #15 from study2895/main
Browse files Browse the repository at this point in the history
[Feature] ์บ˜๋ฆฐ๋”, ๋งˆ์ดํŽ˜์ด์ง€ ์ˆ˜์ •, ๋กœ๊ณ  ๋กœ๋”ฉ ํŽ˜์ด์ง€ ๊ตฌํ˜„
  • Loading branch information
study2895 authored Oct 26, 2024
2 parents f3cdbb2 + c071b93 commit 86db4c5
Show file tree
Hide file tree
Showing 6 changed files with 276 additions and 95 deletions.
9 changes: 9 additions & 0 deletions src/assets/Icons/akoming/Akoming-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
68 changes: 68 additions & 0 deletions src/components/LogoLoading.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
<!-- src/components/LogoLoading.vue -->
<template>
<transition name="fade" @after-leave="afterLeave">
<div v-if="show" class="loading-screen">
<img
src="@/assets/Icons/akoming/Akoming-logo.svg"
alt="๋กœ๊ณ "
class="loading-logo"
/>
</div>
</transition>
</template>

<script>
import { ref, onMounted } from 'vue'

export default {
props: {
duration: {
type: Number,
default: 1000 // 1์ดˆ ๋™์•ˆ ๋กœ๊ณ  ํ‘œ์‹œ
}
},
setup(props, { emit }) {
const show = ref(true)

onMounted(() => {
setTimeout(() => {
show.value = false
}, props.duration)
})

const afterLeave = () => {
emit('fade-complete')
}

return { show, afterLeave }
}
}
</script>

<style scoped>
.loading-screen {
position: absolute; /* ๋กœ๊ทธ์ธ ํŽ˜์ด์ง€ ์œ„์— ๊ฒน์น˜๋„๋ก ์„ค์ • */
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
background-color: #fff9f2; /* ๋กœ๊ทธ์ธ ํŽ˜์ด์ง€ ๋ฐฐ๊ฒฝ๊ณผ ์ผ์น˜ */
z-index: 50; /* ๋กœ๊ทธ์ธ ํŽ˜์ด์ง€ ์œ„๋กœ ๋ฐฐ์น˜ */
}

.loading-logo {
width: 100px;
}

.fade-enter-active,
.fade-leave-active {
transition: opacity 0.5s ease;
}
.fade-enter,
.fade-leave-to {
opacity: 0;
}
</style>
6 changes: 6 additions & 0 deletions src/views/calendar/CalendarMainView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@
</template>

<script setup>
import { onMounted } from 'vue'
import {
DAY_LIST,
currentDate,
Expand All @@ -152,6 +153,11 @@ import {
} from './CalendarMainScript.js'
import MainHeader from '@/components/layout/Header.vue'
import MainFooter from '@/components/layout/Footer.vue'
// ํŽ˜์ด์ง€ ๋กœ๋“œ ์‹œ ์ด๋ฒˆ ๋‹ฌ๋กœ ์ดˆ๊ธฐํ™”
onMounted(() => {
currentDate.value = new Date()
})
</script>

<style scoped>
Expand Down
Loading

0 comments on commit 86db4c5

Please sign in to comment.