diff --git a/WebHostLib/static/styles/userContent.css b/WebHostLib/static/styles/userContent.css new file mode 100644 index 00000000..40fdc7da --- /dev/null +++ b/WebHostLib/static/styles/userContent.css @@ -0,0 +1,33 @@ +#user-content-wrapper{ + display: flex; + flex-direction: row; + justify-content: center; + flex-wrap: wrap; +} + +#user-content{ + min-width: 900px; + text-align: center; +} + +#user-content h1, #user-content h2{ + margin-bottom: 6px; +} + +#user-content h2{ + margin-top: 10px; +} + +#user-content table{ + margin-left: auto; + margin-right: auto; + text-align: left; +} + +#user-content table th, #user-content table td{ + padding-right: 20px; +} + +#user-content .center{ + text-align: center; +} diff --git a/WebHostLib/templates/hostGame.html b/WebHostLib/templates/hostGame.html index 59bd55c0..9e4eff80 100644 --- a/WebHostLib/templates/hostGame.html +++ b/WebHostLib/templates/hostGame.html @@ -23,62 +23,6 @@ - - {% if rooms %} -
Seed | -Room | -Players | -Created (UTC) | -Last Activity (UTC) | - -
---|---|---|---|---|
{{ room.seed.id|suuid }} | -{{ room.id|suuid }} | -{{ room.seed.multidata.names[0]|length }} | -{{ room.creation_time.strftime("%Y-%m-%d %H:%M") }} | -{{ room.last_activity.strftime("%Y-%m-%d %H:%M") }} | -
Seed | -Players | -Created (UTC) | -
---|---|---|
{{ seed.id|suuid }} | -{% if seed.multidata %}{{ seed.multidata.names[0]|length }}{% else %}1{% endif %} - | -{{ seed.creation_time.strftime("%Y-%m-%d %H:%M") }} | -
Seed | +Room | +Players | +Created (UTC) | +Last Activity (UTC) | +
---|---|---|---|---|
{{ room.seed.id|suuid }} | +{{ room.id|suuid }} | +{{ room.seed.multidata.names[0]|length }} | +{{ room.creation_time.strftime("%Y-%m-%d %H:%M") }} | +{{ room.last_activity.strftime("%Y-%m-%d %H:%M") }} | +
Seed | +Players | +Created (UTC) | +
---|---|---|
{{ seed.id|suuid }} | +{% if seed.multidata %}{{ seed.multidata.names[0]|length }}{% else %}1{% endif %} + | +{{ seed.creation_time.strftime("%Y-%m-%d %H:%M") }} | +