-
Notifications
You must be signed in to change notification settings - Fork 1
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
9 changed files
with
236 additions
and
125 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,22 +1,25 @@ | ||
{{define "base"}} | ||
<!DOCTYPE html> | ||
<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.0"> | ||
<title>{{ .Title }}</title> | ||
<link rel="stylesheet" href="/static/styles/app.css"> | ||
</head> | ||
<body> | ||
|
||
<body class="bg-white dark:bg-black text-gray-900 dark:text-gray-100"> | ||
<div class="flex flex-col min-h-screen justify-between"> | ||
<div class="antialiased px-6 flex-1 flex flex-col"> | ||
{{template "body" .}} | ||
</div> | ||
{{template "footer" .}} | ||
</div> | ||
|
||
{{block "scripts" .}}{{end}} | ||
</body> | ||
|
||
</html> | ||
{{end}} |
4 changes: 2 additions & 2 deletions
4
internal/server/http/frontend/templates/components/footer.gohtml
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
41 changes: 21 additions & 20 deletions
41
internal/server/http/frontend/templates/views/admin_main.gohtml
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,25 +1,26 @@ | ||
{{template "base" .}} | ||
|
||
{{define "body"}} | ||
<div class="section"> | ||
<h1 class="h1">{{.Title}} | Administration</h1> | ||
</div> | ||
<div class="section my-12"> | ||
<h2 class="h2">Users</h2> | ||
{{range .Page.Users}} | ||
<div class="bg-gray-100 p-4 flex flex-col mb-3 md:flex-row"> | ||
<img class="w-32 h-32 rounded-full mr-3 mb-3 md:mb-0" src="{{ sizeImage .PictureURL 128 }}" alt="Profile Picture" referrerpolicy="no-referrer"> | ||
<div> | ||
<p class="text-xl font-bold">{{.Name}}</p> | ||
<p><span class="font-bold">Email: </span>{{.Email}}</p> | ||
<p><span class="font-bold">ID: </span>{{.ID}}</p> | ||
<p><span class="font-bold">Joined on: </span>{{.Created}}</p> | ||
<p><span class="font-bold">Quiz: </span> | ||
{{if .QuizPassed}}Passed{{else}}Not Passed{{end}} | ||
({{.QuizAttempts}} attempts) | ||
</p> | ||
</div> | ||
</div> | ||
{{end}} | ||
<div class="section"> | ||
<h1 class="h1">{{.Title}} | Administration</h1> | ||
</div> | ||
<div class="section my-12"> | ||
<h2 class="h2">Users</h2> | ||
{{range .Page.Users}} | ||
<div class="bg-gray-100 dark:bg-gray-900 p-4 flex flex-col mb-3 md:flex-row"> | ||
<img class="w-32 h-32 rounded-full mr-3 mb-3 md:mb-0" src="{{ sizeImage .PictureURL 128 }}" | ||
alt="Profile Picture" referrerpolicy="no-referrer"> | ||
<div> | ||
<p class="text-xl font-bold">{{.Name}}</p> | ||
<p><span class="font-bold">Email: </span>{{ .Email }}</p> | ||
<p><span class="font-bold">ID: </span>{{ .ID }}</p> | ||
<p><span class="font-bold">Joined on: </span>{{ .Created }}</p> | ||
<p><span class="font-bold">Quiz: </span> | ||
{{if .QuizPassed}}Passed{{else}}Not Passed{{end}} | ||
({{.QuizAttempts}} attempts) | ||
</p> | ||
</div> | ||
</div> | ||
{{end}} | ||
</div> | ||
{{end}} |
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,10 +1,10 @@ | ||
{{template "base" .}} | ||
|
||
{{define "body"}} | ||
<div class="section text-center flex-1 flex flex-col justify-center"> | ||
<p class="text-5xl">💬</p> | ||
<h1 class="h1">Welcome to {{.Title}}!</h1> | ||
<p class="text-2xl mb-6">{{ .Description }}</p> | ||
<a href="{{.Paths.Login}}" class="button text-2xl px-10 mx-auto">Login</a> | ||
</div> | ||
<div class="section text-center flex-1 flex flex-col justify-center"> | ||
<p class="text-5xl">💬</p> | ||
<h1 class="h1">Welcome to {{.Title}}!</h1> | ||
<p class="text-2xl mb-6">{{ .Description }}</p> | ||
<a href="{{.Paths.Login}}" class="button text-2xl px-10 mx-auto">Login</a> | ||
</div> | ||
{{end}} |
Oops, something went wrong.