Compare commits
No commits in common. "4017094a6648b7f9a3f9440aef83b5d156466134" and "093cfebebfbf1e33347891882e0fd91e4c80759d" have entirely different histories.
4017094a66
...
093cfebebf
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,4 +2,3 @@
|
||||
app
|
||||
web/*.wasm
|
||||
staticsite
|
||||
node_modules
|
@ -65,10 +65,6 @@ 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,30 +87,26 @@ func (p *page) Render() app.UI {
|
||||
p.IbackgroundClass = app.AppendClass(p.IbackgroundClass, "background")
|
||||
}
|
||||
return app.Div().
|
||||
Class("flex flex-col").
|
||||
Class("main").
|
||||
Body(
|
||||
// Header and navbar
|
||||
&header{},
|
||||
app.Div().
|
||||
Class("flex flex-row").
|
||||
Class("left").
|
||||
Body(
|
||||
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]
|
||||
}),
|
||||
),
|
||||
&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]
|
||||
}),
|
||||
),
|
||||
)
|
||||
}
|
||||
|
@ -1,9 +0,0 @@
|
||||
tailwind.config = {
|
||||
theme: {
|
||||
extend: {
|
||||
colors: {
|
||||
clifford: '#da373d',
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user