-
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
1 parent
2dfe76c
commit cba9622
Showing
11 changed files
with
103 additions
and
108 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,44 @@ | ||
<div class="container mx-auto p-4"> | ||
<form hx-post="/login" hx-target="#login-form-error" class="bg-white shadow-md rounded px-8 pt-6 pb-8 mb-4"> | ||
<div class="mb-4"> | ||
<label class="block text-gray-700 text-sm font-bold mb-2" for="username"> | ||
Username | ||
</label> | ||
<input class="input-field focus:outline-none focus:shadow-outline" | ||
id="username" name="username" type="text" placeholder="Username" required> | ||
</div> | ||
<div class="mb-6"> | ||
<label class="block text-gray-700 text-sm font-bold mb-2" for="password"> | ||
Password | ||
</label> | ||
<input class="input-field focus:outline-none focus:shadow-outline" | ||
id="password" name="password" type="password" placeholder="******************" required> | ||
</div> | ||
<div id="login-form-error"></div> | ||
<div class="flex items-center justify-between"> | ||
<button class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline" | ||
type="submit"> | ||
Sign In | ||
</button> | ||
</div> | ||
</form> | ||
</div> | ||
<form | ||
hx-post="/login" | ||
hx-target="#login-form-error" | ||
class="bg-white shadow-md rounded px-8 pt-6 pb-8 mb-4" | ||
> | ||
<div class="mb-4"> | ||
<label class="block text-gray-700 text-sm font-bold mb-2" for="username"> | ||
Username | ||
</label> | ||
<input | ||
class="input-field focus:outline-none focus:shadow-outline" | ||
id="username" | ||
name="username" | ||
type="text" | ||
placeholder="Username" | ||
required | ||
/> | ||
</div> | ||
<div class="mb-6"> | ||
<label class="block text-gray-700 text-sm font-bold mb-2" for="password"> | ||
Password | ||
</label> | ||
<input | ||
class="input-field focus:outline-none focus:shadow-outline" | ||
id="password" | ||
name="password" | ||
type="password" | ||
placeholder="******************" | ||
required | ||
/> | ||
</div> | ||
<div id="login-form-error"></div> | ||
<div class="flex items-center justify-between"> | ||
<button | ||
class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline" | ||
type="submit" | ||
> | ||
Sign In | ||
</button> | ||
</div> | ||
</form> | ||
</div> | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
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,27 +1,44 @@ | ||
<div class="flex justify-center"> | ||
<div id="tabs" hx-target="#tab-contents" role="tablist"> | ||
<button role="tab" aria-controls="tab-contents" aria-selected="true" hx-get="/tab-podcast-list" | ||
class="px-4 py-2 font-semibold text-black bg-gray-200 rounded-t-md focus:outline-none selected"> | ||
<button | ||
role="tab" | ||
aria-controls="tab-contents" | ||
aria-selected="true" | ||
hx-get="/tab-podcast-list" | ||
class="px-4 py-2 font-semibold text-black bg-gray-200 rounded-t-md focus:outline-none selected" | ||
> | ||
Podcasts | ||
</button> | ||
<button role="tab" aria-controls="tab-contents" aria-selected="false" hx-get="/tab-about" | ||
class="px-4 py-2 font-semibold text-black bg-gray-200 rounded-t-md focus:outline-none"> | ||
<button | ||
role="tab" | ||
aria-controls="tab-contents" | ||
aria-selected="false" | ||
hx-get="/tab-about" | ||
class="px-4 py-2 font-semibold text-black bg-gray-200 rounded-t-md focus:outline-none" | ||
> | ||
About | ||
</button> | ||
</div> | ||
<script> | ||
document.addEventListener('DOMContentLoaded', function () { | ||
document.getElementById('tabs').addEventListener('click', function (event) { | ||
if (event.target.tagName !== 'BUTTON') return | ||
let currentTab = document.querySelector('[aria-selected=true]'); | ||
currentTab.setAttribute('aria-selected', 'false') | ||
currentTab.classList.remove('selected') | ||
let newTab = event.target | ||
newTab.setAttribute('aria-selected', 'true') | ||
newTab.classList.add('selected') | ||
}) | ||
}) | ||
document.addEventListener("DOMContentLoaded", function () { | ||
document | ||
.getElementById("tabs") | ||
.addEventListener("click", function (event) { | ||
if (event.target.tagName !== "BUTTON") return; | ||
let currentTab = document.querySelector("[aria-selected=true]"); | ||
currentTab.setAttribute("aria-selected", "false"); | ||
currentTab.classList.remove("selected"); | ||
let newTab = event.target; | ||
newTab.setAttribute("aria-selected", "true"); | ||
newTab.classList.add("selected"); | ||
}); | ||
}); | ||
</script> | ||
</div> | ||
<div id="tab-contents" role="tabpanel" hx-get="/tab-podcast-list" hx-trigger="load" class="p-4"> | ||
</div> | ||
<div | ||
id="tab-contents" | ||
role="tabpanel" | ||
hx-get="/tab-podcast-list" | ||
hx-trigger="load" | ||
class="p-4" | ||
></div> |
This file was deleted.
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,11 +1,13 @@ | ||
<div> | ||
<div class="bg-gray-200 p-6 rounded-lg text-center cursor-pointer" id="header"> | ||
<h1 class="text-3xl md:text-4xl font-bold mb-4">Podcast admin</h1> | ||
</div> | ||
<script> | ||
document.getElementById('header') | ||
.addEventListener('click', function () { | ||
window.location.href = '/admin/dashboard'; | ||
}); | ||
</script> | ||
<div | ||
class="bg-gray-200 p-6 rounded-lg text-center cursor-pointer" | ||
id="header" | ||
> | ||
<h1 class="text-3xl md:text-4xl font-bold mb-4">Podcast admin</h1> | ||
</div> | ||
<script> | ||
document.getElementById("header").addEventListener("click", function () { | ||
window.location.href = "/admin/dashboard"; | ||
}); | ||
</script> | ||
</div> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
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,18 +1,26 @@ | ||
<div> | ||
<div class="bg-gray-200 p-6 rounded-lg mb-8 text-center cursor-pointer" id="header"> | ||
<div | ||
class="bg-gray-200 p-6 rounded-lg mb-8 text-center cursor-pointer" | ||
id="header" | ||
> | ||
<h1 class="text-3xl md:text-4xl font-bold mb-4">{{showName}}</h1> | ||
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 container max-w-screen-xl mx-auto"> | ||
<div | ||
class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 container max-w-screen-xl mx-auto" | ||
> | ||
{{#each header_links}} | ||
<a href="{{link}}"> | ||
<button class="bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 rounded w-full">{{text}}</button> | ||
<button | ||
class="bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 rounded w-full" | ||
> | ||
{{text}} | ||
</button> | ||
</a> | ||
{{/each}} | ||
</div> | ||
</div> | ||
<script> | ||
document.getElementById('header') | ||
.addEventListener('click', function () { | ||
window.location.href = '/'; | ||
}); | ||
document.getElementById("header").addEventListener("click", function () { | ||
window.location.href = "/"; | ||
}); | ||
</script> | ||
</div> |