Add Assets

This commit is contained in:
Dzejkobik007
2023-06-05 23:40:28 +02:00
parent 6e3d6b45ac
commit 21693e8fe4
5 changed files with 169 additions and 2 deletions

View File

@@ -9,10 +9,10 @@
"author": "Dzejkobik", "author": "Dzejkobik",
"license": "", "license": "",
"dependencies": { "dependencies": {
"better-sqlite3": "^8.4.0",
"express": "^4.18.2", "express": "^4.18.2",
"multer": "^1.4.5-lts.1", "multer": "^1.4.5-lts.1",
"socket.io": "^4.6.2", "socket.io": "^4.6.2",
"socketio-file-upload": "^0.7.3", "socketio-file-upload": "^0.7.3"
"sqlite3": "^5.1.6"
} }
} }

164
public/css/style.css Normal file
View File

@@ -0,0 +1,164 @@
html,
body {
padding: 0;
margin: 0;
border: none;
}
body {
background-color: #1b1b1b;
}
canvas {
display: block;
}
.box__dragndrop,
.box__uploading,
.box__success,
.box__error {
display: none;
}
.flex-container {
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
}
.container {
font-family: 'Geologica', sans-serif;
border-radius: 4px;
border-color: black;
border-width: 2px;
border-style: solid;
background-color: #f16d01;
padding: 20px;
display: flex;
text-align: center;
}
.vertical {
flex-direction: column;
justify-content: center;
align-items: center;
}
.list {
margin-top: 30px;
}
.filelist {
display: flex;
flex-direction: column;
row-gap: 0;
}
.filelist p {
color:#FFFFFF;
}
.list p {
color:#FFFFFF;
}
#select {
flex-direction: column;
}
.button {
display: inline-block;
border-radius: 4px;
background-color: #e42200;
border: none;
color: #FFFFFF;
text-align: center;
font-size: 28px;
padding: 20px;
width: 200px;
transition: all 0.5s;
cursor: pointer;
margin: 5px;
}
.button span {
cursor: pointer;
display: inline-block;
position: relative;
transition: 0.5s;
}
.button span:after {
content: '\00bb';
position: absolute;
opacity: 0;
top: 0;
right: -20px;
transition: 0.5s;
}
.button:hover span {
padding-right: 25px;
}
.button:hover span:after {
opacity: 1;
right: 0;
}
.card-button-box {
display: flex;
justify-content: center;
gap: 50px;
}
.card-button {
background-color: rgba(88, 88, 88, 0.2);
text-align: center;
padding: 5px;
width: 200px;
border-radius: 15px;
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
transition: 0.3s;
}
.card-button:hover {
transform: scale(1.02);
box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
}
.card-button p {
position: absolute;
color:#FFFFFF;
font-size: x-large;
}
.dropZoneContainer {
display: grid;
margin-left: 100px;
margin-right: 100px;
width: 100%;
height: 100px;
}
.dropZoneOverlay, .FileUpload {
height: 100%;
width: 100%;
grid-column: 1;
grid-row: 1;
}
.dropZoneOverlay {
margin-top: -3px;
margin-left: -3px;
border: dotted 3px;
font-size: 110%;
color: #FFFFFF;
text-align: center;
vertical-align: middle;
}
.FileUpload {
opacity: 0;
}

1
public/img/add-sharp.svg Normal file
View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" class="ionicon" viewBox="0 0 512 512"><path fill="none" stroke="currentColor" stroke-linecap="square" stroke-linejoin="round" stroke-width="32" d="M256 112v288M400 256H112"/></svg>

After

Width:  |  Height:  |  Size: 220 B

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" class="ionicon" viewBox="0 0 512 512"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="48" d="M112 268l144 144 144-144M256 392V100"/></svg>

After

Width:  |  Height:  |  Size: 231 B

1
public/script.js Normal file
View File

@@ -0,0 +1 @@
// script.js