main_templ.go
4075 bytes
1// Code generated by templ - DO NOT EDIT.
2
3// templ: version: v0.3.1020
4package pages
5
6//lint:file-ignore SA4006 This context is only used if a nested component is present.
7
8import "github.com/a-h/templ"
9import templruntime "github.com/a-h/templ/runtime"
10
11func BaseLayout(title string, route string) templ.Component {
12 return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) {
13 templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context
14 if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil {
15 return templ_7745c5c3_CtxErr
16 }
17 templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W)
18 if !templ_7745c5c3_IsBuffer {
19 defer func() {
20 templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer)
21 if templ_7745c5c3_Err == nil {
22 templ_7745c5c3_Err = templ_7745c5c3_BufErr
23 }
24 }()
25 }
26 ctx = templ.InitializeContext(ctx)
27 templ_7745c5c3_Var1 := templ.GetChildren(ctx)
28 if templ_7745c5c3_Var1 == nil {
29 templ_7745c5c3_Var1 = templ.NopComponent
30 }
31 ctx = templ.ClearChildren(ctx)
32 templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "<!doctype html><html lang=\"en\" data-bs-theme=\"dark\"><head><title>")
33 if templ_7745c5c3_Err != nil {
34 return templ_7745c5c3_Err
35 }
36 var templ_7745c5c3_Var2 string
37 templ_7745c5c3_Var2, templ_7745c5c3_Err = templ.JoinStringErrs(title)
38 if templ_7745c5c3_Err != nil {
39 return templ.Error{Err: templ_7745c5c3_Err, FileName: `pages/main.templ`, Line: 7, Col: 17}
40 }
41 _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var2))
42 if templ_7745c5c3_Err != nil {
43 return templ_7745c5c3_Err
44 }
45 templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 2, "</title><meta charset=\"utf-8\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"><meta name=\"description\" content=\"YouTube RSS subscription feed app\"><meta name=\"theme-color\" content=\"#212529\"><link rel=\"icon\" type=\"image/png\" href=\"/assets/simple.png\"><link rel=\"apple-touch-icon\" href=\"/assets/ytrssil.png\"><link rel=\"manifest\" href=\"/assets/manifest.json\"><link rel=\"stylesheet\" href=\"/assets/vendor/bootstrap.min.css\"><link rel=\"stylesheet\" href=\"/assets/vendor/bootstrap-icons.min.css\"><style>\n\t\t\t\t.pillarbox { position: relative; }\n\t\t\t\t.pillarbox::after { right: 0; }\n\t\t\t\t.pillarbox::before,\n\t\t\t\t.pillarbox::after { content: ''; position: absolute; top: 0; bottom: 0%; width: 36%; background: black; z-index: 1; }\n\t\t\t</style><script src=\"/assets/vendor/bootstrap.bundle.min.js\"></script><script type=\"module\" src=\"/assets/vendor/datastar.js\"></script><script src=\"/assets/vendor/fuse.js\"></script><script src=\"/assets/index.js\"></script></head><body>")
46 if templ_7745c5c3_Err != nil {
47 return templ_7745c5c3_Err
48 }
49 templ_7745c5c3_Err = subscriptionModal().Render(ctx, templ_7745c5c3_Buffer)
50 if templ_7745c5c3_Err != nil {
51 return templ_7745c5c3_Err
52 }
53 templ_7745c5c3_Err = addVideoModal().Render(ctx, templ_7745c5c3_Buffer)
54 if templ_7745c5c3_Err != nil {
55 return templ_7745c5c3_Err
56 }
57 templ_7745c5c3_Err = resolutionModal().Render(ctx, templ_7745c5c3_Buffer)
58 if templ_7745c5c3_Err != nil {
59 return templ_7745c5c3_Err
60 }
61 templ_7745c5c3_Err = navbar(route).Render(ctx, templ_7745c5c3_Buffer)
62 if templ_7745c5c3_Err != nil {
63 return templ_7745c5c3_Err
64 }
65 templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 3, "<div class=\"container-fluid\">")
66 if templ_7745c5c3_Err != nil {
67 return templ_7745c5c3_Err
68 }
69 templ_7745c5c3_Err = templ_7745c5c3_Var1.Render(ctx, templ_7745c5c3_Buffer)
70 if templ_7745c5c3_Err != nil {
71 return templ_7745c5c3_Err
72 }
73 templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 4, "</div></body></html>")
74 if templ_7745c5c3_Err != nil {
75 return templ_7745c5c3_Err
76 }
77 return nil
78 })
79}
80
81var _ = templruntime.GeneratedTemplate