2021-09-20 17:31:41 +02:00
|
|
|
<html lang="en"><head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
<link href="https://unpkg.com/tailwindcss@1.0.4/dist/tailwind.min.css" rel="stylesheet">
|
|
|
|
</head>
|
|
|
|
<body class="h-screen overflow-hidden flex items-center justify-center" style="background: #edf2f7;">
|
2021-09-20 17:43:54 +02:00
|
|
|
<section class="container mx-auto px-8 my-1 flex flex-wrap -m-4">
|
2021-09-22 14:12:49 +02:00
|
|
|
<div class="p-2 md:w-40">
|
|
|
|
<a href="/" class="flex items-center p-4 bg-blue-200 rounded-lg shadow-xs cursor-pointer hover:bg-blue-500 hover:text-gray-100">
|
|
|
|
<div>
|
|
|
|
<p class=" text-xs font-medium ">All Regions</p>
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
</div>
|
2021-09-20 17:43:54 +02:00
|
|
|
<div class="p-2 md:w-40">
|
2021-09-20 22:55:12 +02:00
|
|
|
<a href="/america" class="flex items-center p-4 bg-blue-200 rounded-lg shadow-xs cursor-pointer hover:bg-blue-500 hover:text-gray-100">
|
2021-09-20 17:43:54 +02:00
|
|
|
<div>
|
|
|
|
<p class=" text-xs font-medium ">North America</p>
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="p-2 md:w-40">
|
2021-09-20 22:55:12 +02:00
|
|
|
<a href="/europe" class="flex items-center p-4 bg-blue-200 rounded-lg shadow-xs cursor-pointer hover:bg-blue-500 hover:text-gray-100">
|
2021-09-20 17:43:54 +02:00
|
|
|
<div>
|
|
|
|
<p class=" text-xs font-medium ">Europe</p>
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="p-2 md:w-40">
|
|
|
|
<a href="#" class="flex items-center p-4 bg-blue-200 rounded-lg shadow-xs cursor-pointer hover:bg-blue-500 hover:text-gray-100">
|
|
|
|
<div>
|
|
|
|
<p class=" text-xs font-medium ">Australia</p>
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="p-2 md:w-40">
|
|
|
|
<a href="#" class="flex items-center p-4 bg-blue-200 rounded-lg shadow-xs cursor-pointer hover:bg-blue-500 hover:text-gray-100">
|
|
|
|
<div>
|
|
|
|
<p class=" text-xs font-medium ">Asia</p>
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
|
2021-09-22 14:12:49 +02:00
|
|
|
{{ $gamemodes := .Gamemodes}}
|
|
|
|
{{ $servers := .Servers}}
|
2021-09-20 17:31:41 +02:00
|
|
|
<div class="container mx-auto px-4 sm:px-8">
|
|
|
|
<div class="py-8">
|
|
|
|
<div>
|
|
|
|
<h2 class="text-2xl font-semibold leading-tight">Serverlist</h2>
|
|
|
|
</div>
|
2021-09-22 14:12:49 +02:00
|
|
|
{{range $gamemode := $gamemodes}}
|
2021-09-20 17:31:41 +02:00
|
|
|
<div class="-mx-4 sm:-mx-8 px-4 sm:px-8 py-4 overflow-x-auto">
|
|
|
|
<div class="inline-block min-w-full shadow rounded-lg overflow-hidden">
|
|
|
|
<table class="min-w-full leading-normal">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th class="px-5 py-3 border-b-2 border-gray-200 bg-gray-100 text-left text-xs font-semibold text-gray-600 uppercase tracking-wider">
|
2021-09-22 14:12:49 +02:00
|
|
|
{{$gamemode.Name}}
|
2021-09-20 17:31:41 +02:00
|
|
|
</th>
|
|
|
|
<th class="px-5 py-3 border-b-2 border-gray-200 bg-gray-100 text-left text-xs font-semibold text-gray-600 uppercase tracking-wider">
|
|
|
|
Map
|
|
|
|
</th>
|
|
|
|
<th class="px-5 py-3 border-b-2 border-gray-200 bg-gray-100 text-left text-xs font-semibold text-gray-600 uppercase tracking-wider">
|
|
|
|
Players
|
|
|
|
</th>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2021-09-22 14:12:49 +02:00
|
|
|
{{range $server := $servers}}
|
|
|
|
{{if eq $gamemode.ID $server.GamemodeID}}
|
2021-09-20 17:31:41 +02:00
|
|
|
<tr>
|
|
|
|
<td class="px-5 py-5 border-b border-gray-200 bg-white text-sm">
|
|
|
|
<div class="flex items-center">
|
|
|
|
<div class="ml-3">
|
2021-09-22 14:12:49 +02:00
|
|
|
<a href="steam://connect/{{$server.ServerIP}}" class="text-gray-900 whitespace-no-wrap">{{$server.Name}}</a>
|
2021-09-20 17:31:41 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td class="px-5 py-5 border-b border-gray-200 bg-white text-sm">
|
2021-09-22 14:12:49 +02:00
|
|
|
<p class="text-gray-900 whitespace-no-wrap">{{$server.Map}}</p>
|
2021-09-20 17:31:41 +02:00
|
|
|
</td>
|
|
|
|
<td class="px-5 py-5 border-b border-gray-200 bg-white text-sm">
|
2021-09-22 14:12:49 +02:00
|
|
|
<p class="text-gray-900 whitespace-no-wrap">{{$server.Players}}/{{$server.MaxPlayers}}</p>
|
2021-09-20 17:31:41 +02:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{end}}
|
2021-09-22 14:12:49 +02:00
|
|
|
{{end}}
|
2021-09-20 17:31:41 +02:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-09-22 14:12:49 +02:00
|
|
|
{{end}}
|
2021-09-20 17:31:41 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|