diff --git a/src/main/java/com/game/config/WebConfig.java b/src/main/java/com/game/config/WebConfig.java index 7a324807..758a7688 100644 --- a/src/main/java/com/game/config/WebConfig.java +++ b/src/main/java/com/game/config/WebConfig.java @@ -49,6 +49,7 @@ public void addResourceHandlers(ResourceHandlerRegistry registry) { registry.addResourceHandler("/html/**").addResourceLocations("/html/"); registry.addResourceHandler("/css/**").addResourceLocations("/css/"); registry.addResourceHandler("/img/**").addResourceLocations("/img/"); + registry.addResourceHandler("/script/**").addResourceLocations("/script/"); } @Bean diff --git a/src/main/webapp/css/my.css b/src/main/webapp/css/my.css index e69de29b..8438ab14 100644 --- a/src/main/webapp/css/my.css +++ b/src/main/webapp/css/my.css @@ -0,0 +1,45 @@ + +.table { + border-collapse: collapse; + border: 1px solid black; +} + +th, td { + border: 1px solid black; +} + +tr:first-child th { + border-top: none; +} + +tr:last-child td { + border-bottom: none; +} + +tr td:first-child { + border-left: none; +} + +tr td:last-child { + border-right: none; +} + +td.edit { + background-image: url("/img/edit.png"); + background-position: center center; + background-repeat: no-repeat; + background-size: 25px 25px; +} + +td.delete { + background-image: url("/img/delete.png"); + background-position: center center; + background-repeat: no-repeat; + background-size: 25px 25px; +} + +.active-page { + color: red; +} + + diff --git a/src/main/webapp/html/my.html b/src/main/webapp/html/my.html index eb66ac55..0cbab7f2 100644 --- a/src/main/webapp/html/my.html +++ b/src/main/webapp/html/my.html @@ -2,10 +2,95 @@
| # | +Name | +Title | +Race | +Profession | +Level | +Birthday | +Banned | +Edit | +Delete | +
|---|