-
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
accd293
commit a8a83ec
Showing
15 changed files
with
142 additions
and
81 deletions.
There are no files selected for viewing
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
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
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
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
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 |
---|---|---|
|
@@ -8,18 +8,18 @@ | |
<script src="https://unpkg.com/[email protected]"></script> | ||
</head> | ||
|
||
<body class="bg-gray-100 text-gray-900 font-sans min-h-screen flex flex-col"> | ||
{{> admin_head}} | ||
<body> | ||
<div class="bg-gray-100 text-gray-900 font-sans min-h-screen flex flex-col" id="#root"> | ||
{{> admin_head}} | ||
|
||
<div class="container max-w-screen-xl mx-auto flex-grow"> | ||
{{{ content }}} | ||
</div> | ||
|
||
<div id="dialog-container"></div> | ||
<div class="container max-w-screen-xl mx-auto flex-grow"> | ||
{{{ content }}} | ||
</div> | ||
|
||
<footer class="bg-black p-4 text-center mt-auto"> | ||
<p class="text-white">© 2024 DIY podcast hosting</p> | ||
</footer> | ||
<footer class="bg-black p-4 text-center mt-auto"> | ||
<p class="text-white">© 2024 DIY podcast hosting</p> | ||
</footer> | ||
</div> | ||
</body> | ||
|
||
</html> |
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,9 +1,11 @@ | ||
{{> btn_create_podcast createPodcastButton}} | ||
<div class="p-2" id="adminPodcastList"> | ||
{{> btn_create_podcast createPodcastButton}} | ||
|
||
<div class="grid grid-cols-1 gap-4"> | ||
{{#each posts}} | ||
<a href="{{detailUrl}}" class="no-underline bg-white p-8 rounded shadow-md"> | ||
<h2 class="text-xl font-bold line-clamp-3">{{title}}</h2> | ||
</a> | ||
{{/each}} | ||
<div class="grid grid-cols-1 gap-4"> | ||
{{#each posts}} | ||
<a href="{{detailUrl}}" class="no-underline bg-white p-8 rounded shadow-md"> | ||
<h2 class="text-xl font-bold line-clamp-3">{{title}}</h2> | ||
</a> | ||
{{/each}} | ||
</div> | ||
</div> |
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,57 +1,57 @@ | ||
<div> | ||
<div class="flex flex-col md:flex-row w-full"> | ||
<div class="hidden md:block md:w-3/10 py-2"> | ||
<img src="{{imageUrl}}" alt="Logo" class="w-64 aspect-square"> | ||
</div> | ||
<div class="w-full md:w-7/10 bg-random2 p-4"> | ||
<h2 class="text-xl font-bold mb-2 text-green-500">{{ title }}</h2> | ||
<ul class="space-y-4"> | ||
{{#each chapters}} | ||
<li class="flex items-start"> | ||
<button class="inline-block px-4 py-2 text-white bg-green-500 rounded mr-4 w-24 text-center"> | ||
<span class="text-white chapter-time" data-time="{{timeInSeconds}}">{{time}}</span> | ||
</button> | ||
<p class=" flex-1 text-black text-lg">{{title}}</p> | ||
</li> | ||
{{/each}} | ||
</ul> | ||
</div> | ||
<div class="flex flex-col md:flex-row w-full"> | ||
<div class="hidden md:block md:w-3/10 py-2"> | ||
<img src="{{imageUrl}}" alt="Logo" class="w-64 aspect-square"> | ||
</div> | ||
<div class="w-full md:w-7/10 bg-random2 p-4"> | ||
<h2 class="text-xl font-bold mb-2 text-green-500">{{ title }}</h2> | ||
<ul class="space-y-4"> | ||
{{#each chapters}} | ||
<li class="flex items-start"> | ||
<button class="inline-block px-4 py-2 text-white bg-green-500 rounded mr-4 w-24 text-center"> | ||
<span class="text-white chapter-time" data-time="{{timeInSeconds}}">{{time}}</span> | ||
</button> | ||
<p class=" flex-1 text-black text-lg">{{title}}</p> | ||
</li> | ||
{{/each}} | ||
</ul> | ||
</div> | ||
</div> | ||
|
||
<div class="w-full sm:p-0 sm:m-0 mx-auto-2 lg:px-0"> | ||
<div id="audio-player-container"> | ||
<audio id="audio-player" controls class="w-full"> | ||
<source src="{{audioUrl}}" type="audio/mpeg"> | ||
Your browser does not support the audio element. | ||
</audio> | ||
</div> | ||
<div class="w-full sm:p-0 sm:m-0 mx-auto-2 lg:px-0"> | ||
<div id="audio-player-container"> | ||
<audio id="audio-player" controls class="w-full"> | ||
<source src="{{audioUrl}}" type="audio/mpeg"> | ||
Your browser does not support the audio element. | ||
</audio> | ||
</div> | ||
|
||
<div class="w-full sm:w-9/12 sm:p-0 sm:m-0 mx-auto-2 lg:px-0"> | ||
<h2 class="text-xl font-bold mb-2 text-green-500">Корисні посилання з цього випуску</h2> | ||
<ul class="space-y-4"> | ||
{{#each links}} | ||
<li class="flex items-start"> | ||
<a href="{{link}}" target="_blank" | ||
class="inline-block px-4 py-2 text-white bg-green-500 rounded mr-4 text-center"> | ||
<span class="text-white">{{title}}</span> | ||
</a> | ||
</li> | ||
{{/each}} | ||
</ul> | ||
</div> | ||
<div class="w-full sm:w-9/12 sm:p-0 sm:m-0 mx-auto-2 lg:px-0"> | ||
<h2 class="text-xl font-bold mb-2 text-green-500">Корисні посилання з цього випуску</h2> | ||
<ul class="space-y-4"> | ||
{{#each links}} | ||
<li class="flex items-start"> | ||
<a href="{{link}}" target="_blank" | ||
class="inline-block px-4 py-2 text-white bg-green-500 rounded mr-4 text-center"> | ||
<span class="text-white">{{text}}</span> | ||
</a> | ||
</li> | ||
{{/each}} | ||
</ul> | ||
</div> | ||
</div> | ||
|
||
<script> | ||
document.addEventListener('DOMContentLoaded', function () { | ||
let chapterTimes = document.querySelectorAll('.chapter-time'); | ||
let audioPlayer = document.getElementById('audio-player'); | ||
<script> | ||
document.addEventListener('DOMContentLoaded', function () { | ||
let chapterTimes = document.querySelectorAll('.chapter-time'); | ||
let audioPlayer = document.getElementById('audio-player'); | ||
|
||
chapterTimes.forEach(function (chapterTime) { | ||
chapterTime.addEventListener('click', function () { | ||
audioPlayer.currentTime = parseFloat(this.getAttribute('data-time')); | ||
audioPlayer.play(); | ||
}); | ||
chapterTimes.forEach(function (chapterTime) { | ||
chapterTime.addEventListener('click', function () { | ||
audioPlayer.currentTime = parseFloat(this.getAttribute('data-time')); | ||
audioPlayer.play(); | ||
}); | ||
}); | ||
</script> | ||
}); | ||
</script> | ||
</div> |
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,4 +1,8 @@ | ||
<button hx-swap="#dialog-container" hx-post="/admin/show/{{showSlug}}/episode-new" | ||
class="common-button w-full px-4 py-2 my-2 transition-all duration-300 ease-in-out"> | ||
{{title}} | ||
</button> | ||
<div class="flex flex-col"> | ||
<input type="text" id="episodeName" name="episodeName" class="max-full px-2 py-1 border focus:border-black rounded" | ||
placeholder="Enter episode name" /> | ||
<button hx-post="/admin/show/{{showSlug}}/episode" hx-include="[name=episodeName]" hx-target="#adminPodcastList" | ||
class="common-button w-full px-4 py-2 my-2 transition-all duration-300 ease-in-out"> | ||
{{title}} | ||
</button> | ||
</div> |