Compare commits

..

5 Commits

Author SHA1 Message Date
DutchEllie 6b1e61d622
Merge branch 'main' into tailwind
continuous-integration/drone/push Build is passing Details
continuous-integration/drone Build is passing Details
2022-07-04 17:20:52 +02:00
DutchEllie 1358f117b6
Shit, fucked up cluster-issuer
continuous-integration/drone/push Build is passing Details
2022-06-29 16:24:37 +02:00
DutchEllie 4017094a66
Ruined everything
continuous-integration/drone/push Build is passing Details
2022-06-29 16:16:09 +02:00
DutchEllie 184c2c0f9f
Update gitignore 2022-06-29 15:37:46 +02:00
DutchEllie 093cfebebf
Test commit
continuous-integration/drone/push Build is passing Details
2022-06-29 15:17:33 +02:00
3 changed files with 32 additions and 15 deletions

View File

@ -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",

View File

@ -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]
}),
),
),
)
}

View File

@ -0,0 +1,9 @@
tailwind.config = {
theme: {
extend: {
colors: {
clifford: '#da373d',
}
}
}
}