32 lines
888 B
HTML
32 lines
888 B
HTML
{{define "editor-dashboard"}} {{template "layout-base"}}
|
|
<body class="bg-gray-900 text-gray-50 has-[#first-publication]:h-svw">
|
|
<main class="has-[#first-publication]:h-full flex flex-col">
|
|
{{if .Publications}}
|
|
<p>Publications</p>
|
|
{{else}}
|
|
<h1>Create your first publication</h1>
|
|
<form method="post" action="/publication/" id="first-publication">
|
|
<input
|
|
id="title"
|
|
type="text"
|
|
name="title"
|
|
value="{{if .RandTitle}}{{.RandTitle}}{{end}}"
|
|
/><button type="submit">Create</button>
|
|
</form>
|
|
<style>
|
|
body:has(:is(#first-publication)) {
|
|
height: 100svh;
|
|
& > main {
|
|
height: 100%;
|
|
width: 100%;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
}
|
|
</style>
|
|
{{end}}
|
|
</main>
|
|
</body>
|
|
{{template "layout-base-end"}} {{end}}
|