mirror of https://github.com/dirtbags/moth.git
Actually implement login, LOL
This commit is contained in:
parent
6ff379e0f4
commit
0abb44c48c
|
@ -52,6 +52,12 @@ input {
|
||||||
background-color: #ccc4;
|
background-color: #ccc4;
|
||||||
color: inherit;
|
color: inherit;
|
||||||
}
|
}
|
||||||
|
input:hover {
|
||||||
|
background-color: #8884;
|
||||||
|
}
|
||||||
|
input:active {
|
||||||
|
background-color: inherit;
|
||||||
|
}
|
||||||
.notification, .error {
|
.notification, .error {
|
||||||
padding: 0 1em;
|
padding: 0 1em;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
<script src="background.mjs" type="module" async></script>
|
<script src="background.mjs" type="module" async></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1 class="title">MOTH</h1>
|
<h1 class="title" title="Monarch Of The Hill">MOTH</h1>
|
||||||
<main>
|
<main>
|
||||||
<div class="messages notification">
|
<div class="messages notification">
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -26,7 +26,8 @@ class App {
|
||||||
|
|
||||||
handleLoginSubmit(event) {
|
handleLoginSubmit(event) {
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
console.log(event)
|
let f = new FormData(event.target)
|
||||||
|
this.Login(f.get("id"), f.get("name"))
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue