FEAT: Initial Upload Page
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package views
|
||||
|
||||
import "thamanyah/cms/v2/internal/views/layouts"
|
||||
|
||||
templ Home() {
|
||||
@layouts.Layout("Thamanyah CMS") {
|
||||
<h1>Thamanyah CMS</h1>
|
||||
<p>htmx is wired up and ready to go.</p>
|
||||
<button hx-get="/api/hello" hx-target="#greeting" hx-swap="innerHTML">
|
||||
Say hello
|
||||
</button>
|
||||
<div id="greeting"></div>
|
||||
<p><a href="/videos/new">Upload a video</a></p>
|
||||
}
|
||||
}
|
||||
|
||||
templ Greeting(name string) {
|
||||
<p>Hello, { name }! This fragment was swapped in by htmx.</p>
|
||||
}
|
||||
Reference in New Issue
Block a user