-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: JYeonKim <[email protected]>
- Loading branch information
Showing
3 changed files
with
128 additions
and
10 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,106 @@ | ||
<template> | ||
<transition name="modal"> | ||
<div class="modal-mask"> | ||
<div class="modal-wrapper"> | ||
<div class="modal-container"> | ||
|
||
<div class="modal-header"> | ||
<slot name="header"> | ||
<strong>파일 형식과 내용을 확인해주세요</strong> | ||
<b-button-close @click="$emit('close')"></b-button-close> | ||
</slot> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</transition> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
props: ['problemID', 'problemPassword'], | ||
data () { | ||
return { | ||
passwordFromUser: '' | ||
} | ||
}, | ||
methods: { | ||
goProblem () { | ||
if (this.passwordFromUser === this.problemPassword) { | ||
this.$router.push({name: 'aiproblem-class-details', params: {problemID: this.problemID}}) | ||
console.log('p-id', this.problemID) | ||
console.log('p-pwd', this.problemPassword) | ||
console.log('pwd', this.passwordFromUser) | ||
} | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style> | ||
.modal-mask { | ||
position: fixed; | ||
z-index: 9998; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
height: 100%; | ||
background-color: rgba(0, 0, 0, .5); | ||
display: table; | ||
transition: opacity .3s ease; | ||
} | ||
.modal-wrapper { | ||
display: table-cell; | ||
vertical-align: middle; | ||
} | ||
.modal-container { | ||
width: 500px; | ||
margin: 0px auto; | ||
padding: 20px 30px; | ||
background-color: #fff; | ||
border-radius: 20px 20px 20px 20px; | ||
box-shadow: 0 2px 8px rgba(0, 0, 0, .33); | ||
transition: all .3s ease; | ||
font-family: Helvetica, Arial, sans-serif; | ||
} | ||
.modal-header { | ||
margin-top: 0; | ||
color: #3399ff; | ||
font-size: 18px; | ||
font-weight: bold; | ||
} | ||
.modal-body { | ||
margin: 20px 0; | ||
} | ||
.modal-default-button { | ||
float: right; | ||
} | ||
/* | ||
* The following styles are auto-applied to elements with | ||
* transition="modal" when their visibility is toggled | ||
* by Vue.js. | ||
* | ||
* You can easily play with the modal transition by editing | ||
* these styles. | ||
*/ | ||
.modal-enter { | ||
opacity: 0; | ||
} | ||
.modal-leave-active { | ||
opacity: 0; | ||
} | ||
.modal-enter .modal-container, | ||
.modal-leave-active .modal-container { | ||
-webkit-transform: scale(1.1); | ||
transform: scale(1.1); | ||
} | ||
</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