From 1498ca281e1065a91ac6fb9ce27e442cb70096da Mon Sep 17 00:00:00 2001 From: Coogan Date: Mon, 15 Jan 2018 13:22:16 -0600 Subject: [PATCH] swarm: landing page has working input --- swarm/api/http/templates.go | 178 +++++------------------------------- 1 file changed, 25 insertions(+), 153 deletions(-) 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:

+ + + +

Swarm: Serverless Hosting Incentivised Peer-To-Peer Storage And Content Distribution
Swarm

-
- - -`[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:]))