login styling

HomeChats
adb 4 years ago
parent d18ceaa7a7
commit 6ad113327d

@ -18,11 +18,12 @@ export default {
cursor: pointer; cursor: pointer;
border: none; border: none;
height: 2.5rem; height: 2.5rem;
padding-left: 1.5rem; padding-left: 2rem;
padding-right: 1.5rem; padding-right: 2rem;
background-color: #00BCD4; background-color: #00BCD4;
box-shadow: 3px 3px 10px #222; box-shadow: 3px 3px 10px #222;
border-radius: 1.25rem; border-radius: 1.25rem;
margin: 1rem;
} }
.btnText { .btnText {
position: relative; position: relative;

@ -1,9 +1,9 @@
<template> <template>
<div id="login"> <div id="login">
<h1 class="title">short your url</h1> <h1 class="title">open chat</h1>
<div class="input-field" id="longurl"> <div class="input-field" id="longurl">
<label for="longurl-input"></label> <label for="longurl-input"></label>
<input class="input" id="longurl-input" type="text" autocomplete="off" maxlength="20" placeholder="chose nickname"> <input v-model="session.content.user" class="input" id="longurl-input" type="text" autocomplete="off" maxlength="20" placeholder="chose nickname">
</div> </div>
<input type="hidden" value="search" name="login"> <input type="hidden" value="search" name="login">
<textbtn text="login" /> <textbtn text="login" />
@ -17,12 +17,50 @@ export default {
name: "login.vue", name: "login.vue",
components: { components: {
textbtn textbtn
},
data(){
return {
session: {
type: "session",
time: Date.now(),
content: {
user: ""
}
}
}
} }
} }
</script> </script>
<style scoped> <style scoped>
#login{ #login{
position: absolute;
top: 40%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center; text-align: center;
height: min-content;
width: 100%;
}
input{
padding: 0 2rem 0 2rem;
height: 2.5rem;
color: #fff;
background-color: #1d1d1d;
border-radius: 1.25rem;
border: 1px solid #fff;
text-align: center;
font-size: 1.1rem;
}
input:focus{
color: #000;
background-color: #fff;
}
@media (max-width: 35rem) {
input {
width: calc(100% - 8rem);
}
} }
</style> </style>
Loading…
Cancel
Save