diff --git a/config.toml b/config.toml index 960e0da..6cf880f 100644 --- a/config.toml +++ b/config.toml @@ -74,6 +74,11 @@ DefaultContentLanguage = "en" category = "Category" buttonText = "Close" +# Sign section +[params.sign] + headline = "Sign our open letter!" + description = "Show that you want to free publicly financed code by signing our open letter." + # Spread the word section [params.spread] headline = "Spread the word!" diff --git a/layouts/index.html b/layouts/index.html index 5bf32e8..e21b74a 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -25,6 +25,10 @@ {{ partial "resources.html" . }} {{ end }} + {{ if .Site.Params.sign }} + {{ partial "sign.html" . }} + {{ end }} + {{ if .Site.Params.spread }} {{ partial "spread.html" . }} {{ end }} diff --git a/layouts/partials/sign.html b/layouts/partials/sign.html new file mode 100644 index 0000000..d82d12f --- /dev/null +++ b/layouts/partials/sign.html @@ -0,0 +1,35 @@ +{{ "" | safeHTML }} +
+
+
+
+

{{ .Site.Params.sign.headline }}

+
+

{{ .Site.Params.sign.description | markdownify }}

+ +
+ + + + +
+ + + +
+ +
+
+
+
+
diff --git a/static/cgi-bin/sign.php b/static/cgi-bin/sign.php new file mode 100644 index 0000000..62a2de0 --- /dev/null +++ b/static/cgi-bin/sign.php @@ -0,0 +1,3 @@ + diff --git a/static/css/custom.css b/static/css/custom.css index d208bc0..8ead68b 100644 --- a/static/css/custom.css +++ b/static/css/custom.css @@ -31,6 +31,45 @@ font-size: 0.8em; } +/* SIGN FORM */ +#sign form { + color: #333; + font-size: 18px; +} +#sign form label { + font-weight: 400; +} +.sign-input { + position: relative; +} +.sign-input:before { + font-family: "FontAwesome"; + font-size: 20px; + position: absolute; + left: 4px; + top: 2px; +} +.sign-input input { + text-indent: 24px; +} +.form-na:before { + content: "\f2c3"; +} +.form-em:before { + content: "\f003"; +} +.form-cn:before { + content: "\f041"; + padding-left: 4px; +} +.form-zp:before { + content: "\f08d"; + padding-left: 3px; +} +.form-pe { + max-width: 600px; +} + /* SHARE BUTTONS IN "SPREAD THE WORD" SECTION */ .share-buttons a { background-position: left 5px center;