add(web): basic layout and ui
This commit is contained in:
parent
fd14d22fed
commit
80df48284c
17 changed files with 9288 additions and 4 deletions
29
web/templates/layouts/main.templ
Normal file
29
web/templates/layouts/main.templ
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
package layouts
|
||||
|
||||
import (
|
||||
"maot-shortner/web/templates/components/input"
|
||||
"maot-shortner/web/templates/components/label"
|
||||
"maot-shortner/web/templates/modules"
|
||||
)
|
||||
|
||||
templ MainLayout() {
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" class="h-full dark">
|
||||
<head>
|
||||
<meta charset="UTF-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
<link href="/static/css/output.css" rel="stylesheet"/>
|
||||
<link rel="icon" type="image/x-icon" href="/static/img/favicon.ico"/>
|
||||
@input.Script()
|
||||
@label.Script()
|
||||
</head>
|
||||
<body class="h-full">
|
||||
<div class="h-full flex flex-col">
|
||||
@modules.Navbar()
|
||||
<main class="flex-1">
|
||||
{ children... }
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue