登录页面 + 发表页面 修正
This commit is contained in:
parent
53f36433d7
commit
a84fe2dbbf
@ -107,7 +107,9 @@ export default {
|
|||||||
height: 24px
|
height: 24px
|
||||||
border-radius: 50%
|
border-radius: 50%
|
||||||
margin-right: .5rem
|
margin-right: .5rem
|
||||||
|
.navbar-sign
|
||||||
|
a.button
|
||||||
|
margin-right: .5rem
|
||||||
footer.footer
|
footer.footer
|
||||||
text-align: center
|
text-align: center
|
||||||
padding: 4rem
|
padding: 4rem
|
||||||
|
41
pages/account/create.vue
Normal file
41
pages/account/create.vue
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
<template lang="pug">
|
||||||
|
.account-create.circumscription
|
||||||
|
div.card
|
||||||
|
.left CREATE
|
||||||
|
.right
|
||||||
|
input(placeholder="account")
|
||||||
|
input(placeholder="password")
|
||||||
|
button Submit
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style lang="sass">
|
||||||
|
.account-create
|
||||||
|
padding-top: 6rem
|
||||||
|
.card
|
||||||
|
display: flex
|
||||||
|
width: 48rem
|
||||||
|
margin: auto
|
||||||
|
background-color: var(--background-main)
|
||||||
|
margin-top: 6rem
|
||||||
|
padding: 6rem 4rem
|
||||||
|
border-radius: 1rem
|
||||||
|
box-sizing: border-box
|
||||||
|
.left
|
||||||
|
flex: 1
|
||||||
|
font-size: 4rem
|
||||||
|
font-weight: bold
|
||||||
|
color: #ff8888
|
||||||
|
display: flex
|
||||||
|
justify-content: center
|
||||||
|
align-items: center
|
||||||
|
.right
|
||||||
|
width: 18rem
|
||||||
|
display: flex
|
||||||
|
flex-direction: column
|
||||||
|
input, button
|
||||||
|
margin-bottom: 1rem
|
||||||
|
font-size: 1.2rem
|
||||||
|
padding: .75rem
|
||||||
|
border: none
|
||||||
|
border-radius: .5rem
|
||||||
|
</style>
|
@ -1,16 +1,11 @@
|
|||||||
<template lang="pug">
|
<template lang="pug">
|
||||||
.page-signin
|
.account-signin.circumscription
|
||||||
.contenter
|
div.card
|
||||||
Card
|
.left SIGN IN
|
||||||
template(#header)
|
.right
|
||||||
.column
|
input(v-model="account.name", type="text", placeholder="account")
|
||||||
input(v-model="account.name", type="text", placeholder="请输入账号")
|
input(v-model="account.password", type="password", placeholder="password")
|
||||||
input(v-model="account.password", type="password", placeholder="请输入密码")
|
button(@click="signin") Signin
|
||||||
button(@click="signin") signin
|
|
||||||
template(#footer)
|
|
||||||
p
|
|
||||||
span 还没有账号?
|
|
||||||
NuxtLink(to="/account/create") 注册一个
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@ -38,19 +33,51 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="sass">
|
<style lang="sass">
|
||||||
.page-signin
|
.account-signin
|
||||||
.contenter
|
padding-top: 6rem
|
||||||
.column
|
.card
|
||||||
|
display: flex
|
||||||
|
width: 48rem
|
||||||
|
margin: auto
|
||||||
|
background-color: var(--background-main)
|
||||||
|
margin-top: 6rem
|
||||||
|
padding: 6rem 4rem
|
||||||
|
border-radius: 1rem
|
||||||
|
box-sizing: border-box
|
||||||
|
.left
|
||||||
|
flex: 1
|
||||||
|
font-size: 4rem
|
||||||
|
font-weight: bold
|
||||||
|
color: #ff8888
|
||||||
|
display: flex
|
||||||
|
justify-content: center
|
||||||
|
align-items: center
|
||||||
|
.right
|
||||||
|
width: 18rem
|
||||||
display: flex
|
display: flex
|
||||||
flex-direction: column
|
flex-direction: column
|
||||||
background: #f5f5f5
|
|
||||||
padding: 6rem 0
|
|
||||||
input, button
|
input, button
|
||||||
width: 16rem
|
margin-bottom: 1rem
|
||||||
height: 3rem
|
font-size: 1.2rem
|
||||||
line-height: 3rem
|
padding: .75rem
|
||||||
border: 1px solid #ccc
|
border: none
|
||||||
border-radius: .5rem
|
border-radius: .5rem
|
||||||
padding: 0 1rem
|
//.page-signin
|
||||||
margin: .5rem auto
|
//.contenter
|
||||||
|
// background: #f5f5f5
|
||||||
|
// .column
|
||||||
|
// display: flex
|
||||||
|
// flex-direction: column
|
||||||
|
// padding: 6rem 0
|
||||||
|
// input, button
|
||||||
|
// width: 16rem
|
||||||
|
// height: 3rem
|
||||||
|
// line-height: 3rem
|
||||||
|
// border: 1px solid #ccc
|
||||||
|
// border-radius: .5rem
|
||||||
|
// padding: 0 1rem
|
||||||
|
// margin: .5rem auto
|
||||||
|
// p
|
||||||
|
// width: 16rem
|
||||||
|
// margin: .5rem auto
|
||||||
</style>
|
</style>
|
||||||
|
@ -1,18 +1,19 @@
|
|||||||
<template lang="pug">
|
<template lang="pug">
|
||||||
.thread-create
|
Drawer
|
||||||
.header
|
.thread-create
|
||||||
h1.title {{ thread.title }}
|
.header
|
||||||
.info info
|
h1.title {{ thread.title }}
|
||||||
//span.user {{ thread.user.name }}
|
.info info
|
||||||
//span.date {{ rwdate(thread.createdAt) }}
|
//span.user {{ thread.user.name }}
|
||||||
//span.view {{ thread.views }}
|
//span.date {{ rwdate(thread.createdAt) }}
|
||||||
.tags
|
//span.view {{ thread.views }}
|
||||||
span.tag test
|
.tags
|
||||||
span.tag demo
|
span.tag test
|
||||||
.content.circumscription
|
span.tag demo
|
||||||
input.title(v-model="thread.title")
|
.content.circumscription
|
||||||
textarea.data(v-model="thread.data", rows="32")
|
input.title(v-model="thread.title")
|
||||||
button.submit(@click="submit") 发表
|
textarea.data(v-model="thread.data", rows="32")
|
||||||
|
button.submit(@click="submit") 发表
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
Loading…
Reference in New Issue
Block a user