
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
<template>
<div class="wrap">
<div class="tab-wrap">
<ul>
<li>
<a href="" class="tab active">사용자 관리</a>
</li>
<li>
<a href="" class="tab">접속기록 조회</a>
</li>
</ul>
</div>
<div>
<div>
<h2 class="page-title">횡단보도 유지보수 담당자</h2>
</div>
<hr class="margin">
<div class="form-wrap">
<form action="">
<div class="flex m-b">
<span>이름 : </span>
<input type="text" name="" id="" placeholder="Name">
</div>
<div class="flex m-b">
<span>전화번호 : </span>
<input type="text" name="" id="" placeholder="Phone Number">
</div>
<div class="flex m-b">
<span>이메일 : </span>
<input type="text" name="" id="" placeholder="E-Mail">
</div>
<div class="btn-wrap">
<button type="button" class="green-btn" @click="modal_1 = true">등록</button>
<router-link to="/UserManagement.page">
<span class="btn-2 gray-btn">취소</span>
</router-link>
</div>
</form>
</div>
</div>
</div>
<div class="modal-wrap" v-if="modal_1 == true">
<div class="modal-bg">
</div>
<div class="modal">
<p>사용자를 <span class="txt-point">등록</span>하시겠습니까?</p>
<div class="btn-wrap">
<button type="button" class="green-btn">확인</button>
<button type="button" class="gray-btn" @click="modal_1 = false">취소</button>
</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {
modal_1: false,
};
},
methods: {},
watch: {},
computed: {},
mounted() {
console.log("Main4 mounted");
},
};
</script>
<style scoped>
.wrap {
width: 155rem;
margin: 100px auto;
}
.tab-wrap {
margin-bottom: 30px;
}
.tab-wrap ul {
display: flex;
gap: 2rem;
}
.tab {
display: inline-block;
width: 20rem;
height: 3rem;
line-height: 3rem;
text-align: center;
border-radius: 5px;
background: #fff;
color: #949292;
border: 1px solid #949292;
}
.tab.active {
background: #13833b;
color: #fff;
border-color: #13833b;
}
h2.page-title {
font-size: 24px;
}
hr.margin {
margin: 30px 0;
}
.form-wrap {
width: 52rem;
margin: 0 auto;
}
.idchk {
margin-left: 1rem;
}
.btn-wrap {
margin-top: 30px;
text-align: center;
}
.btn-2 {
display: inline-block;
padding: 0.3rem 2rem;
font-size: 13.333px;
color: #000;
}
.btn-wrap>*:not(:last-child) {
margin-right: 2rem;
}
.form-wrap .flex span {
display: inline-block;
width: 10rem;
padding: 0 5px;
}
.form-wrap input:not([type="radio"]) {
min-width: 30rem;
}
.form-wrap select {
min-width: 9rem;
}
.form-wrap select:not(:last-child) {
margin-right: 1.5rem;
}
.form-wrap input[type="radio"] {
vertical-align: middle;
}
.form-wrap label:not(:last-child) {
margin-right: 2rem;
}
.modal-wrap {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
.modal-bg {
position: absolute;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, .6);
}
.modal {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
max-width: 350px;
padding: 5rem;
z-index: 2;
background-color: #fff;
border-radius: 1rem;
text-align: center;
}
.modal .btn-wrap {
margin-top: 15px;
text-align: center;
}
.txt-point {
color: #13833b;
}
</style>