Skip to content

Commit b80ed0b

Browse files
authored
Implement support for Forums and overhaul the UI.
Merging despite the failure, as it seems to just not be using the latest ref to Limhamn.
1 parent f9eae95 commit b80ed0b

35 files changed

+3320
-599
lines changed

.gitignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1+
*DS_Store*
12
*.log
23
*.db
34
*.yaml
4-
audio/
55
data/
66
sessions/
7-
img/
8-
fonts/
97
tmp/
108
cmake-*
119
*build*

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ set(PROJECT_SOURCE_FILES
2424
src/av_io.cpp
2525
src/wadinfo.cpp
2626
src/dol.cpp
27+
src/post_handlers.cpp
2728
)
2829

2930
include_directories(include)

audio/click.wav

89.7 KB
Binary file not shown.

css/ff.css

Lines changed: 118 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,39 @@
33
src: url('../fonts/font.woff2') format('woff2');
44
}
55

6+
.floating_window {
7+
position: fixed;
8+
min-width: 300px;
9+
min-height: 100px;
10+
max-width: 90vw;
11+
max-height: 90vh;
12+
13+
top: 50%;
14+
left: 50%;
15+
transform: translate(-50%, -50%);
16+
17+
border-radius: 10px;
18+
padding: 10px;
19+
z-index: 9999;
20+
text-align: center;
21+
22+
overflow-y: auto;
23+
overflow-x: hidden;
24+
25+
box-sizing: border-box;
26+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
27+
}
28+
629
/* buttons */
7-
#login-button, #login-window {
30+
#login-button, #login-window, #tos-window {
831
background-color: #a9def9;
932
color: #000;
1033
}
1134
#register-button, #register-window {
1235
background-color: #ff99c8;
1336
color: #000;
1437
}
15-
#logout-button {
38+
#logout-button, #logout-window {
1639
background-color: #f08080;
1740
color: #000;
1841
}
@@ -36,7 +59,11 @@
3659
background-color: #000000;
3760
color: #fff;
3861
}
39-
#forum-button, #forum-window {
62+
#forum-button {
63+
background-color: #f0f0f0;
64+
color: #000;
65+
}
66+
.forum_window {
4067
background-color: #f0f0f0;
4168
color: #000;
4269
}
@@ -56,6 +83,25 @@
5683
background-color: #fcf6bd;
5784
color: #000;
5885
}
86+
#browse-window, #sandbox-window {
87+
min-width: 90%;
88+
min-height: 90%;
89+
}
90+
91+
#announcements-window, #announcement-window, #create-announcement-window {
92+
min-width: 60%;
93+
min-height: 60%;
94+
}
95+
96+
#view-window, #file-window, .forum_window {
97+
min-width: 70%;
98+
min-height: 70%;
99+
}
100+
101+
#profile-window, #edit-profile-window, #terms-window {
102+
min-width: 50%;
103+
min-height: 50%;
104+
}
59105
.announcement_div {
60106
background-color: #fff;
61107
color: #000;
@@ -110,16 +156,6 @@ body {
110156
overflow: auto;
111157
}
112158

113-
.link_box {
114-
background-color: #f0f0f0; /* default, if you don't override through classes or IDs */
115-
color: #000000; /* default, if you don't override through classes or IDs */
116-
border-radius: 10px;
117-
padding: 10px;
118-
margin-top: 10px;
119-
min-width: 300px;
120-
text-align: center;
121-
}
122-
123159
.link_box_container {
124160
display: flex;
125161
flex-direction: column;
@@ -136,14 +172,29 @@ body {
136172
}
137173

138174
.link_box {
175+
background-color: #f0f0f0; /* default, if you don't override through classes or IDs */
176+
color: #000000; /* default, if you don't override through classes or IDs */
177+
margin-top: 10px;
178+
min-width: 300px;
179+
text-align: center;
139180
flex: 1 1 calc(50% - 1rem);
181+
140182
box-sizing: border-box;
141183
padding: 1rem;
142184
border: 1px solid #ccc;
143185
border-radius: 8px;
144186
cursor: pointer;
145187
transition: background 0.3s;
146188
max-width: 100%;
189+
190+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
191+
192+
position: relative;
193+
194+
width: 250px;
195+
height: 100px;
196+
197+
overflow: hidden;
147198
}
148199

149200
@media (max-width: 768px) {
@@ -162,32 +213,6 @@ body {
162213
font-size: 1rem;
163214
}
164215

165-
166-
.floating_window {
167-
position: fixed;
168-
min-width: 300px;
169-
min-height: 100px;
170-
max-width: 90vw;
171-
max-height: 90vh;
172-
173-
top: 50%;
174-
left: 50%;
175-
transform: translate(-50%, -50%);
176-
177-
border-radius: 10px;
178-
padding: 10px;
179-
z-index: 9999;
180-
text-align: center;
181-
182-
overflow-y: auto;
183-
overflow-x: hidden;
184-
185-
background-color: #70d6ff;
186-
color: #000000;
187-
188-
box-sizing: border-box;
189-
}
190-
191216
.file_div {
192217
background-color: #fafafa;
193218
color: #000000;
@@ -197,26 +222,6 @@ body {
197222
margin: 10px auto;
198223
}
199224

200-
#browse-window, #sandbox-window {
201-
min-width: 90%;
202-
min-height: 90%;
203-
}
204-
205-
#announcements-window, #announcement-window, #create-announcement-window {
206-
min-width: 60%;
207-
min-height: 60%;
208-
}
209-
210-
#view-window, #file-window, #forum-window {
211-
min-width: 70%;
212-
min-height: 70%;
213-
}
214-
215-
#profile-window, #edit-profile-window, #terms-window {
216-
min-width: 50%;
217-
min-height: 50%;
218-
}
219-
220225
.view_floating_window_comment_meta {
221226
display: flex;
222227
align-items: center;
@@ -235,7 +240,6 @@ body {
235240
}
236241
}
237242

238-
239243
.view_floating_window_comment_logo {
240244
width: 24px;
241245
height: 24px;
@@ -317,6 +321,60 @@ body {
317321
color: #000;
318322
}
319323

324+
.post-file {
325+
background-color: #fafafa;
326+
color: #000000;
327+
border-radius: 10px;
328+
padding: 10px;
329+
width: 80%;
330+
margin: 10px auto;
331+
overflow: hidden;
332+
}
333+
334+
.forum-topic {
335+
background-color: #fafafa;
336+
color: #000000;
337+
border-radius: 10px;
338+
width: 80%;
339+
margin: 10px auto;
340+
}
341+
342+
.forum-post {
343+
background-color: aliceblue;
344+
color: #000000;
345+
border-radius: 10px;
346+
width: 80%;
347+
margin: 10px auto;
348+
}
349+
350+
.post-comment {
351+
background-color: aliceblue;
352+
border-radius: 5px;
353+
padding: 5px;
354+
margin-bottom: 10px;
355+
}
356+
357+
#comments_div {
358+
max-height: 500px;
359+
overflow-y: auto;
360+
}
361+
362+
.post-comment-file {
363+
background-color: #fafafa;
364+
color: #7289da;
365+
padding: 5px;
366+
}
367+
368+
.forum-topic:hover, .forum-post:hover, .post-file:hover {
369+
transform: scale(1.025);
370+
transition: transform 0.3s ease;
371+
}
372+
373+
button:hover {
374+
transform: scale(1.025);
375+
transition: transform 0.3s ease;
376+
}
377+
320378
input, button, select, textarea {
321379
background-color: #fafafa;
322380
color: #000000;

fonts/font.woff2

1.51 MB
Binary file not shown.

img/announcements.svg

Lines changed: 4 additions & 0 deletions
Loading

img/background-logo-1.png

2.99 KB
Loading

img/coin.svg

Lines changed: 1 addition & 0 deletions
Loading

img/discord.svg

Lines changed: 7 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)