Skip to content

Commit 0af63d3

Browse files
committed
Merge branch 'feat/ui-design'
2 parents 9a9f58c + 7f3ecb0 commit 0af63d3

7 files changed

Lines changed: 34 additions & 43 deletions

File tree

client/assets/css/history.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#history{
2+
display: block;
3+
position: relative;
4+
width: 80%;
5+
height: fit-content;
6+
margin: 10px auto;
7+
}

client/assets/css/index.css

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,15 @@
1111
border-radius: 15px;
1212
background-color: rgba(255, 255, 255, 0.438);
1313
width: 100%;
14-
height: 40vh;
14+
height: fit-content;
1515
}
1616

1717
#dropHints{
1818
display: block;
1919
position: relative;
2020
width: 70%;
2121
height: 70%;
22-
top: 50%;
23-
left: 50%;
24-
transform: translate(-50%, -50%);
22+
margin: 15px auto;
2523
font-size: 1.5rem;
2624
}
2725

@@ -32,14 +30,13 @@
3230

3331
#dropHints button{
3432
display: block;
35-
position: absolute;
33+
position: relative;
3634
width: fit-content;
3735
max-width: 70%;
3836
height: fit-content;
3937
padding: 0.4em 1em 0.4em 1em;
40-
left: 50%;
41-
bottom: 15%;
42-
transform: translateX(-50%);
38+
39+
margin: 20px auto;
4340
font-size: 100%;
4441
}
4542

@@ -108,13 +105,6 @@
108105
max-width: 90%;
109106
}
110107

111-
/*#fileStats .fileControl{
112-
display: flex;
113-
justify-content: space-between;
114-
flex-wrap: wrap;
115-
min-width: 50%;
116-
}*/
117-
118108
#fileStats div{
119109
display: flex;
120110
}
@@ -136,10 +126,6 @@
136126
border: none;
137127
}
138128

139-
/*#fileStats button:hover{
140-
141-
}*/
142-
143129
#fileStats>p, .folderStats>p{
144130
word-break: break-all;
145131
white-space: normal;

client/assets/css/main.css

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ body{
1010
width: 100%;
1111
min-width: fit-content;
1212
box-sizing: border-box;
13+
word-wrap: break-word;
1314
}
1415

15-
1616
#header {
1717
-webkit-appearance: none;
1818
display: flex;
@@ -26,16 +26,12 @@ body{
2626
border-bottom-width: 5px;
2727
border-style: solid;
2828
border-color: rgba(16, 14, 54, 0.9);
29-
/*width: 90%;*/
30-
min-width: 500px;
3129
height: fit-content;
3230
margin: 0 auto;
3331
}
3432

3533
.headerContainer{
3634
display: block;
37-
width:50%;
38-
min-width: 500px;
3935
text-align: center;
4036
}
4137

@@ -50,8 +46,7 @@ body{
5046
font-weight: 5px;
5147
font-family: 'Times New Roman', Times, serif;
5248
border: 2px solid #202020;
53-
padding-top: 0.2rem;
54-
padding-bottom: 0.2rem;
49+
padding: .2rem 2rem;
5550
margin-top: 0.3rem;
5651
margin-bottom: 0.3rem;
5752
}
@@ -65,31 +60,31 @@ body{
6560
position: relative;
6661
flex-wrap: wrap;
6762
justify-content: center;
63+
align-items: center;
6864
/*margin: 5px auto;*/
6965
width: fit-content;
70-
min-width: 500px;
66+
min-width: 400px;
7167
height: 35%;
7268
min-height: 50px;
7369
font-size: 1.5rem;
7470
}
7571

7672
.profileField input {
77-
display: flexbox;
78-
margin: auto;
73+
display: block;
74+
margin: 5px;
7975
background-color: rgba(255, 255, 255, 0.438);
8076
border-radius: 5px;
81-
width: 60%;
8277
min-width: 230px;
8378
height: 90%;
8479
text-align: center;
8580
font-size: 100%;
8681
}
8782

8883
#profile h3 {
89-
display: flexbox;
84+
display: block;
9085
border-bottom: 2px solid blue;
91-
margin: auto;
92-
width: 60%;
86+
margin: 5px;
87+
/*width: 60%;*/
9388
min-width: 230px;
9489
height: 90%;
9590
text-align: center;
@@ -99,10 +94,10 @@ body{
9994
}
10095

10196
.profileField button {
102-
display: flexbox;
97+
display: block;
10398
margin: auto;
10499
border-radius: 5px;
105-
width: 35%;
100+
/*width: 35%;*/
106101
min-width: 150px;
107102
height: 90%;
108103
font-size: 100%;
@@ -128,11 +123,13 @@ button:hover {
128123
align-items: center;
129124
flex-direction: row;
130125
flex-wrap: wrap;
126+
justify-content: stretch;
131127
}
132128

133129
.nav li{
134130
display: block;
135-
width: calc(100%/3);
131+
min-width: 150px;
132+
flex-grow: 1;
136133
list-style: none;
137134
height: 2.3rem;
138135
margin: auto;

client/history.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
<title>Network file manager</title>
55

66
<link rel="stylesheet" type="text/css" href="./assets/css/main.css">
7-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
8-
7+
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, target-densityDpi=device-dpi">
98
<script type="text/javascript" src="/socket.io/socket.io.js"></script>
109
<script type="text/javascript" src="./assets/js/jquery.min.js"></script>
1110
<script type="text/javascript" src="./assets/js/jszip.min.js"></script>
@@ -41,11 +40,13 @@ <h3 name="profileName" id="profileName"></h3>
4140
<li><a onclick="redirect('/history');"><button active><i class="fa-solid fa-clock-rotate-left"></i> History</button></a></li>
4241
</nav>
4342

44-
<p id="test"></p>
43+
<section id="history">
44+
45+
</section>
4546

4647
<script>
4748
function print(data){
48-
document.getElementById("test").innerHTML = data;
49+
document.getElementById("history").innerHTML = data;
4950
}
5051

5152
fetch(window.location+"get-history")

client/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title>Network file manager</title>
55
<link rel="stylesheet" type="text/css" href="./assets/css/main.css">
66
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
7-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<meta name="viewport" content="width=device-width, initial-scale=1.0, target-densityDpi=device-dpi">
88

99
<script src="https://kit.fontawesome.com/138f40277e.js" crossorigin="anonymous"></script>
1010
<script type="text/javascript" src="/socket.io/socket.io.js"></script>

client/sent.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<title>Network file manager</title>
55
<link rel="stylesheet" type="text/css" href="./assets/css/main.css">
6-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, target-densityDpi=device-dpi">
77

88
<script type="text/javascript" src="/socket.io/socket.io.js" defer></script>
99
<script type="text/javascript" src="./assets/js/jquery.min.js" defer></script>

db/logs/log_history.dat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"logs":[0]}
1+
{"logs":[{"id":"192.168.1.8-192.168.1.3","from":"192.168.1.8","path":"./db/sent.html","filename":"sent.html","time":"9/5/2022, 22:39:16:463"},{"id":"192.168.1.8-192.168.1.3","from":"192.168.1.8","path":"./db/history.html","filename":"history.html","time":"9/5/2022, 22:39:16:609"},{"id":"192.168.1.8-192.168.1.3","from":"192.168.1.8","path":"./db/index.html","filename":"index.html","time":"9/5/2022, 22:39:16:659"},0]}

0 commit comments

Comments
 (0)