Skip to content
Snippets Groups Projects
Commit fbb1f675 authored by HyeonJu Kong's avatar HyeonJu Kong
Browse files

Merge branch 'YG' into 'master'

전공도서 검색 UI 완료

See merge request !5
parents 8e164614 a7398474
No related branches found
No related tags found
1 merge request!5전공도서 검색 UI 완료
<template>
<!DOCTYPE html>
<html lang="en">
<head>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<title>Majorbook</title>
</head>
<body>
<header class='header'>
<h1>Majorbook</h1>
<div align='right'>
<template v-if='logged_io'>
ID : <input v-model='id' placeholder="ID" type='text' required>
PASSWORD : <input v-model='pwd' placeholder='password' type='password' required>
<button v-on:click='login' class='btn'>Login</button>
<button class='btn'><a href='/signup'>Sign up</a></button>
</template>
<template v-else>
<button class='btn'>거래현황</button>
<button v-on:click='logout' class='btn'>Logout</button>
</template>
</div>
</header>
<nav class='nav'>
<router-link to="/myPage">my Page</router-link>
<router-link to="/buy">buy</router-link>
<router-link to="/sell">sell</router-link>
<a href="/BookSearchPage">전공서적보기</a>
</nav>
<section class='section'>
<img src='../../static/img/img1.jpg'/>
</section>
<aside class='aside'> 이용방법
</aside>
<footer class='footer'>Implemented by 202-WebSysDesign</footer>
</body>
</html>
</template>
<script>
export default{
data() {
return{
id : '',
pwd : '',
flag : false
}
},
computed:{
changeID(){
this.id = `${this.id}`
},
changePWD() {
this.pwd = `${this.pwd}`
},
logged_io() {
if(!this.flag) return true;
else return false;
}
},
methods:{
login: function(){
if(this.id!='' && this.pwd!=''){
alert(this.id+" login!!")
this.flag = !this.flag
this.id = ''
this.pwd = ''
}else alert('ID/PASSWORD를 입력하세요')
},
logout: function(){
this.flag = !this.flag
},
}
}
</script>
<style lang='css'>
html,body {
text-align: center;
margin:0;
width:100%;
font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;
}
.nav a {
color: #00B7FF;
text-align: center;
padding-right: 8%;
padding-left: 8%;
font-size: 18px;
text-decoration: none;
}
.nav {
background-color:#333;
overflow:hidden;
}
.header{
margin: 15px;
height: 12%;
font-size: 10px;
}
.btn{
color: #00B7FF;
background-color: #333;
border-radius: 15%;
}
h1{
text-align: left;
font-size: 35px;
}
.section{
height: 500px;
}
img{
height: 100%;
width: 100%;
}
.aside{
height: 40px;
background-color:rgb(255, 220, 123);
}
.footer{
height: 20px;
color:white;
background-color:#333;
}
.myPage{
display: block;
margin-left: auto;
margin-right: auto;
height: 400px;
}
</style>
<template>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<title>Majorbook-My Page</title>
</head>
<body>
<h1>My Page</h1>
<button>수정하기</button>
</body>
</html>
</template>
\ No newline at end of file
<template>
<h1> sell </h1>
</template>
<script>
export default{
data() {
return{
name : '',
univ : '',
email : ''
}
},
computed:{
},
methods:{
}
}
</script>
<style lang='css'>
</style>
<template>
<h1> 회원가입 </h1>
</template>
<script>
export default{
data() {
return{
name : '',
univ : '',
email : ''
}
},
computed:{
},
methods:{
}
}
</script>
<style lang='css'>
</style>
...@@ -4,14 +4,16 @@ import Vue from 'vue' ...@@ -4,14 +4,16 @@ import Vue from 'vue'
import App from './App' import App from './App'
import router from './router' import router from './router'
import axios from 'axios' import axios from 'axios'
import Vuetify from 'vuetify'
import 'vuetify/dist/vuetify.min.css'
Vue.use(Vuetify)
Vue.prototype.$http = axios Vue.prototype.$http = axios
Vue.config.productionTip = false Vue.config.productionTip = false
/* eslint-disable no-new */ /* eslint-disable no-new */
new Vue({ new Vue({
el: '#app', el: '#app',
router, router,
components: { App }, components: { App },
template: '<App/>' template: '<App/>',
render: h => h(App)
}) })
import Vue from 'vue' import Vue from 'vue'
import Router from 'vue-router' import Router from 'vue-router';
Vue.use(Router) Vue.use(Router)
import home from '@/components/home'
//import IndexPage from '@/components/IndexPage' import myPage from '@/components/myPage'
import BookIndexPage from '@/components/BookIndexPage' import buy from '@/components/buy'
import BookShowPage from '@/components/BookShowPage' import sell from '@/components/sell'
import signup from '@/components/signup'
import BookSearchPage from '@/components/BookSearchPage'
export default new Router({ export default new Router({
mode: 'history', mode: 'history',
routes: [ routes: [
// {
// path: '/',
// name: 'IndexPage',
// component: IndexPage
// },
{ {
path: '/', path: '/',
name: 'bookindex', name: 'home',
component: BookIndexPage component: home
},
{
path: '/myPage',
name : 'myPage',
component: myPage
}, },
{ {
path: '/:id', path: '/buy',
name: 'bookdetail', name: 'buy',
component: BookShowPage component: buy
},
{
path: '/sell',
name: 'sell',
component: sell
},
{
path: '/signup',
name: 'signup',
component: signup
},
{
path: '/BookSearchPage',
name: 'bookindex',
component: BookSearchPage
} }
] ]
}) })
frontend/static/img/img1.jpg

1.89 MiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment