Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/main/java/com/game/config/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public void setApplicationContext(@Autowired ApplicationContext applicationConte
public ThymeleafViewResolver viewResolver() {
ThymeleafViewResolver viewResolver = new ThymeleafViewResolver();
viewResolver.setTemplateEngine(templateEngine());
viewResolver.setCharacterEncoding("UTF-8");
return viewResolver;
}

Expand All @@ -59,6 +60,7 @@ public SpringResourceTemplateResolver templateResolver() {
templateResolver.setSuffix(".html");
templateResolver.setTemplateMode(TemplateMode.HTML);
templateResolver.setCacheable(false);
templateResolver.setCharacterEncoding("UTF-8");
return templateResolver;
}

Expand Down
158 changes: 158 additions & 0 deletions src/main/webapp/css/my.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
/* ID */
#pagination {
display: flex;
align-items: center;
justify-content: left;
margin-top: 0.5em;
}

/* TAGS */
table {
border: 2px solid gray;
width: auto;
align-items: center;
}

td, th {
border: 1px solid gray;
padding: 10px;
text-align: left;
}

/* Classes */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.2em 0.5em;
margin: 0.1em;
border: 1px solid #9CA3AF;
border-radius: 8px;
background: #D1D5DB;
color: #111827;
font: inherit;
cursor: pointer;
width: fit-content;
white-space: nowrap;
transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}

.btn.active {
color: red;
background: #D1D5DB;
border: 2px solid #9CA3AF;
font-weight: 600;
}

.btn.active:hover {
background: #BCC5CC;
border-color: #78716C;
}

.btn:hover {
background: #BCC5CC;
border-color: #8A939C;
}

.dropdown-list {
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
padding: 4px;
width: 200px;
height: 34px;
background: #FFFFFF;
border: 1px solid black;
border-radius: 4px;
box-sizing: border-box;
font-size: 13px;
margin-bottom: 5px;
}

.hidden {
display: none;
}

.inline-edit-input {
width: 100%;
padding: 4px 6px;
margin: 0;
border: 1px solid #9CA3AF;
border-radius: 4px;
font-size: inherit;
font-family: inherit;
box-sizing: border-box;
background: #fff;
}

.inline-edit-input[type="checkbox"] {
width: auto;
border: none;
background: none;
padding: 0;
justify-content: center;
display: block;
margin: 0 auto;
}

h3 {
margin: 0 0 1em 0;
font-size: 1.1em;
}

/* Create from */
.create-form {
display: grid;
grid-template-columns: max-content 1fr;
gap: 0.8em 1em;
align-items: start;
width: 30%;
}

.form-field {
display: contents;
}

.form-field label {
grid-column: 1;
text-align: right;
font-size: 0.9em;
font-weight: 500;
color: #374151;
white-space: nowrap;
}

.form-field input {
grid-column: 2;
width: 100%;
}

/* Messages under form */
#create-message {
padding: 0.5em 1em;
border-radius: 4px;
font-weight: 500;
}

#create-message.success {
background: #d1fae5;
color: #065f46;
border: 1px solid #a7f3d0;
}

#create-message.error {
background: #fee2e2;
color: #991b1b;
border: 1px solid #fecaca;
}

.error-list {
margin: 0.5em 0;
padding-left: 1.2em;
list-style-type: disc;
}

.error-list li {
margin-bottom: 0.2em;
}
Loading