diff --git a/swarm/api/http/templates.go b/swarm/api/http/templates.go index 619e44ec52..43dd96cab9 100644 --- a/swarm/api/http/templates.go +++ b/swarm/api/http/templates.go @@ -70,7 +70,7 @@ var htmlListTemplate = template.Must(template.New("html-list").Funcs(template.Fu `[1:])) -var landingPageTemplate = template.Must(template.New("landing-page").Parse(` +vvar landingPageTemplate = template.Must(template.New("landing-page").Parse(` @@ -118,11 +118,12 @@ var landingPageTemplate = template.Must(template.New("landing-page").Parse(` } content-body { display: block; - margin: 0 auto; + margin: auto; + text-align: center; /* width: 50%; */ - min-height: 60vh; + min-height: 30vh; max-height: 60vh; - padding: 50px 20px; + padding-top: 50px; opacity: 0.6; background-color: #A9F5BF; } @@ -156,7 +157,8 @@ var landingPageTemplate = template.Must(template.New("landing-page").Parse(` Swarm:: Welcome to Swarm -
+ +
@@ -168,162 +170,32 @@ var landingPageTemplate = template.Must(template.New("landing-page").Parse(`
{{.Timestamp}}
- -
- - - - - - - - + + - - - -
- Enter the hash or ENS of a swarm-hosted file below: -
-
-
+

Enter the hash or ENS of a Swarm-hosted file below:

+ + + + -
- - -`[1:])) - -var landingPageTemplate = template.Must(template.New("landing-page").Parse(` - - - - - - - - - Swarm:: Welcome to Swarm - - -
-
-
- -
-
-

Welcome to Swarm

-
-
-
{{.Timestamp}}
-
-
- -
- - - - - - - - - - - - - -
- Enter the hash or ENS of a swarm-hosted file below: -
-
-
- -
+ `[1:]))