From 43af5b5686ce53659fa89e1c9a162bb02019a971 Mon Sep 17 00:00:00 2001 From: DutchEllie Date: Tue, 15 Mar 2022 13:06:52 +0100 Subject: [PATCH] Moved pages --- src/aboutpage.go | 2 +- src/galaxiespage.go | 2 +- src/homepage.go | 2 +- web/blocks/{ => pages}/about.html | 0 web/blocks/{ => pages}/galaxies.html | 0 web/blocks/{ => pages}/intro.html | 0 web/static/style.css | 4 ++++ 7 files changed, 7 insertions(+), 3 deletions(-) rename web/blocks/{ => pages}/about.html (100%) rename web/blocks/{ => pages}/galaxies.html (100%) rename web/blocks/{ => pages}/intro.html (100%) diff --git a/src/aboutpage.go b/src/aboutpage.go index e203172..ee0eee7 100644 --- a/src/aboutpage.go +++ b/src/aboutpage.go @@ -21,6 +21,6 @@ func (a *AboutPage) Render() app.UI { Main( newHTMLBlock(). Class("right"). - Src("/web/blocks/about.html"), + Src("/web/blocks/pages/about.html"), ) } diff --git a/src/galaxiespage.go b/src/galaxiespage.go index b2bb2ad..62f563b 100644 --- a/src/galaxiespage.go +++ b/src/galaxiespage.go @@ -19,6 +19,6 @@ func (f *GalaxiesPage) Render() app.UI { Main( newHTMLBlock(). Class("right"). - Src("/web/blocks/galaxies.html"), + Src("/web/blocks/pages/galaxies.html"), ) } diff --git a/src/homepage.go b/src/homepage.go index 61d83e1..1ff8955 100644 --- a/src/homepage.go +++ b/src/homepage.go @@ -32,7 +32,7 @@ func (p *Homepage) Render() app.UI { Main( newHTMLBlock(). Class("right"). - Src("/web/blocks/intro.html"), + Src("/web/blocks/pages/intro.html"), &guestbookForm{ OnSubmit: func(name, message string) { var comment entity.Comment diff --git a/web/blocks/about.html b/web/blocks/pages/about.html similarity index 100% rename from web/blocks/about.html rename to web/blocks/pages/about.html diff --git a/web/blocks/galaxies.html b/web/blocks/pages/galaxies.html similarity index 100% rename from web/blocks/galaxies.html rename to web/blocks/pages/galaxies.html diff --git a/web/blocks/intro.html b/web/blocks/pages/intro.html similarity index 100% rename from web/blocks/intro.html rename to web/blocks/pages/intro.html diff --git a/web/static/style.css b/web/static/style.css index 130731f..47f2871 100644 --- a/web/static/style.css +++ b/web/static/style.css @@ -261,4 +261,8 @@ div.comment-message p{ .fit { width: fit-content; +} + +.invisible { + visibility: hidden; } \ No newline at end of file