Files
soundcloak/templates/base.templ
2024-09-19 18:18:04 +03:00

28 lines
621 B
Plaintext

package templates
templ Base(title string, content templ.Component, head templ.Component) {
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link rel="stylesheet" href="/global.css"/>
if title != "" {
<title>{ title } ~ soundcloak</title>
} else {
<title>soundcloak</title>
}
if head != nil {
@head
}
</head>
<body>
<a href="/" id="sc"><h1>soundcloak</h1></a>
@content
</body>
</html>
}
css ViewTransition(name string) {
view-transition-name: { templ.SafeCSSProperty(name) };
}