-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
51 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package templatedata | ||
|
||
type IndexData struct { | ||
Main string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,16 @@ | ||
{{ define "logged" }} | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>RCP Game</title> | ||
<link rel="icon" href="/assets/images/logo_transparent.svg"> | ||
|
||
<link rel="stylesheet" href="/styles/output.css"> | ||
|
||
</head> | ||
|
||
<script src="https://unpkg.com/[email protected]"></script> | ||
|
||
<body class="bg-primary-light flex h-full w-full items-center flex-col gap-5" hx-ws="connect:/ws"> | ||
|
||
{{ template "home" . }} | ||
|
||
</body> | ||
|
||
</html> | ||
<div id="main" class="flex h-full w-full items-center flex-col gap-5"> | ||
<div class="h-36 w-auto max-h-1/4"> | ||
<img class="h-full w-full" src="/assets/images/logo_transparent.svg" alt="logo" /> | ||
</div> | ||
|
||
<form id="username-form" class="flex flex-col gap-2" hx-ws="send:submit" hx-vals='{"type": "game-search"}'> | ||
<label class="font-semibold h-fit" for="username">Username:</label> | ||
<input readonly class="py-1 px-2 rounded-lg border-primary border-2" id="username" name="username" type="text" | ||
maxlength="15" placeholder="Your best username" /> | ||
|
||
<button class="py-1 px-2 bg-primary rounded-lg font-semibold mt-2 hover-bg-secondary transition-all" | ||
type="submit">Play</button> | ||
</form> | ||
</div> | ||
{{ end }} |