mirror of
https://git.maid.zone/stuff/soundcloak.git
synced 2026-01-01 00:19:38 +05:00
28 lines
621 B
Plaintext
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) };
|
|
} |