Compare commits
5 Commits
Author | SHA1 | Date |
---|---|---|
DutchEllie | 6b1e61d622 | |
DutchEllie | 1358f117b6 | |
DutchEllie | 4017094a66 | |
DutchEllie | 184c2c0f9f | |
DutchEllie | 093cfebebf |
|
@ -65,6 +65,10 @@ func main() {
|
|||
Title: "Internetica Galactica",
|
||||
Description: "A 1990's style PWA!",
|
||||
Author: "Quenten",
|
||||
Scripts: []string{
|
||||
"https://cdn.tailwindcss.com",
|
||||
"/web/static/tailwind.config.js",
|
||||
},
|
||||
Keywords: []string{
|
||||
"Based website",
|
||||
"Cool website",
|
||||
|
|
34
src/page.go
34
src/page.go
|
@ -87,26 +87,30 @@ func (p *page) Render() app.UI {
|
|||
p.IbackgroundClass = app.AppendClass(p.IbackgroundClass, "background")
|
||||
}
|
||||
return app.Div().
|
||||
Class("main").
|
||||
Class("flex flex-col").
|
||||
Body(
|
||||
// Header and navbar
|
||||
&header{},
|
||||
app.Div().
|
||||
Class("left").
|
||||
Class("flex flex-row").
|
||||
Body(
|
||||
&navbar{},
|
||||
app.Range(p.IleftBar).Slice(func(i int) app.UI {
|
||||
return p.IleftBar[i]
|
||||
}),
|
||||
),
|
||||
app.Div().
|
||||
Style("display", visible(p.hideRightContent)).
|
||||
Class("right").
|
||||
ID("right").
|
||||
Body(
|
||||
app.Range(p.Imain).Slice(func(i int) app.UI {
|
||||
return p.Imain[i]
|
||||
}),
|
||||
app.Div().
|
||||
Class("basis-1/3").
|
||||
Body(
|
||||
&navbar{},
|
||||
app.Range(p.IleftBar).Slice(func(i int) app.UI {
|
||||
return p.IleftBar[i]
|
||||
}),
|
||||
),
|
||||
app.Div().
|
||||
Style("display", visible(p.hideRightContent)).
|
||||
Class("basis-2/3").
|
||||
ID("right").
|
||||
Body(
|
||||
app.Range(p.Imain).Slice(func(i int) app.UI {
|
||||
return p.Imain[i]
|
||||
}),
|
||||
),
|
||||
),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
tailwind.config = {
|
||||
theme: {
|
||||
extend: {
|
||||
colors: {
|
||||
clifford: '#da373d',
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue