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