AppToDoList
This commit is contained in:
194
client/main.css
Normal file
194
client/main.css
Normal file
@@ -0,0 +1,194 @@
|
||||
body {
|
||||
font-family: sans-serif;
|
||||
background-color: #315481;
|
||||
background-image: linear-gradient(to bottom, #315481, #918e82 100%);
|
||||
background-attachment: fixed;
|
||||
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
button {
|
||||
font-weight: bold;
|
||||
font-size: 1em;
|
||||
border: none;
|
||||
color: white;
|
||||
box-shadow: 0 3px 3px rgba(34, 25, 25, 0.4);
|
||||
padding: 5px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
button:focus {
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
.app {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
.app-header {
|
||||
flex-grow: 1;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.main {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-grow: 1;
|
||||
overflow: auto;
|
||||
background: white;
|
||||
}
|
||||
|
||||
.main::-webkit-scrollbar {
|
||||
width: 0;
|
||||
height: 0;
|
||||
background: inherit;
|
||||
}
|
||||
|
||||
header {
|
||||
background: #d2edf4;
|
||||
background-image: linear-gradient(to bottom, #d0edf5, #e1e5f0 100%);
|
||||
padding: 20px 15px 15px 15px;
|
||||
position: relative;
|
||||
box-shadow: 0 3px 3px rgba(34, 25, 25, 0.4);
|
||||
}
|
||||
|
||||
.app-bar {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.app-bar h1 {
|
||||
font-size: 1.5em;
|
||||
margin: 0;
|
||||
display: inline-block;
|
||||
margin-right: 1em;
|
||||
}
|
||||
|
||||
.task-form {
|
||||
display: flex;
|
||||
margin: 16px;
|
||||
}
|
||||
|
||||
.task-form > input {
|
||||
flex-grow: 1;
|
||||
box-sizing: border-box;
|
||||
padding: 10px 6px;
|
||||
background: transparent;
|
||||
border: 1px solid #aaa;
|
||||
width: 100%;
|
||||
font-size: 1em;
|
||||
margin-right: 16px;
|
||||
}
|
||||
|
||||
.task-form > input:focus {
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
.task-form > button {
|
||||
min-width: 100px;
|
||||
height: 95%;
|
||||
background-color: #315481;
|
||||
}
|
||||
|
||||
.tasks {
|
||||
list-style-type: none;
|
||||
padding-inline-start: 0;
|
||||
padding-left: 16px;
|
||||
padding-right: 16px;
|
||||
margin-block-start: 0;
|
||||
margin-block-end: 0;
|
||||
}
|
||||
|
||||
.tasks > li {
|
||||
display: flex;
|
||||
padding: 16px;
|
||||
border-bottom: #eee solid 1px;
|
||||
}
|
||||
|
||||
.tasks > li > span {
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.tasks > li > button {
|
||||
justify-self: flex-end;
|
||||
background-color: #ff3046;
|
||||
}
|
||||
|
||||
.filter {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.filter > button {
|
||||
background-color: #62807e;
|
||||
}
|
||||
|
||||
.login-form {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.login-form > div {
|
||||
margin: 8px;
|
||||
}
|
||||
|
||||
.login-form > div > label {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.login-form > div > input {
|
||||
flex-grow: 1;
|
||||
box-sizing: border-box;
|
||||
padding: 10px 6px;
|
||||
background: transparent;
|
||||
border: 1px solid #aaa;
|
||||
width: 100%;
|
||||
font-size: 1em;
|
||||
margin-right: 16px;
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
.login-form > div > input:focus {
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
.login-form > div > button {
|
||||
background-color: #62807e;
|
||||
}
|
||||
|
||||
.user {
|
||||
display: flex;
|
||||
|
||||
align-self: flex-end;
|
||||
|
||||
margin: 8px 16px 0;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.loading {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
||||
font-weight: bold;
|
||||
}
|
||||
11
client/main.html
Normal file
11
client/main.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge"/>
|
||||
<meta
|
||||
name="viewport"
|
||||
content="width=device-width, height=device-height, viewport-fit=cover, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"
|
||||
/>
|
||||
<meta name="mobile-web-app-capable" content="yes"/>
|
||||
<meta name="apple-mobile-web-app-capable" content="yes"/>
|
||||
<title>Simple todo</title>
|
||||
</head>
|
||||
1
client/main.js
Normal file
1
client/main.js
Normal file
@@ -0,0 +1 @@
|
||||
import '../imports/ui/App.js';
|
||||
Reference in New Issue
Block a user