Browse Source

add design

use wassup weather free template.
see <http://www.successagency.com/in/coming-soon-page/wassup-weather/>
Outsider 9 years ago
parent
commit
d86ab084a3
4 changed files with 154 additions and 12 deletions
  1. 139 0
      public/css/style.css
  2. BIN
      public/images/bg.jpg
  3. BIN
      public/images/field.png
  4. 15 12
      views/index.jade

+ 139 - 0
public/css/style.css

@@ -0,0 +1,139 @@
+/* Reset */
+
+body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td{margin:0;padding:0;}table{border-collapse:collapse;border-spacing:0;}fieldset,img{border:0;}address,caption,dfn,th,var{font-style:normal;font-weight:normal;}li{list-style:none;}caption,th{text-align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}
+
+
+
+html,body{
+margin:0;
+padding:0;
+font-family: 'Lato', sans-serif;
+background: #fff url(../images/bg.jpg) center top no-repeat;
+}
+
+
+#wrapper{
+max-width: 100%;
+width: 940px;
+margin: 0 auto;
+}
+
+.main{
+max-width: 100%;
+width: 940px;
+float: left;
+}
+
+.header, .content, .bottom, .sep2{
+width: 100%;
+float: left;
+}
+
+
+
+.header{
+	margin-top: 160px;
+	margin-bottom: 40px;
+}
+
+
+h1{
+font-family: 'Open Sans', sans-serif;
+color: #fff;
+text-align: center;
+font-size: 50px;
+font-weight: 300;
+margin: 0 0 10px 0;
+}
+
+
+h1 strong{
+font-size: 38px;
+font-weight: 700;
+}
+
+h2{
+	text-align: center;
+	font-weight: 300;
+	font-size: 20px;
+		color: #ffffff;
+
+}
+
+h2 strong{
+	font-weight: 700;
+	font-style: italic;
+}
+
+
+.information{
+width: 480px;
+padding-top: 35px;
+margin: 0 auto;
+}
+
+h3{
+font-size: 28px;
+font-weight: 600;
+color: #ffffff;
+}
+
+.information p{
+font-size: 16px;
+color: #ffffff;
+display: block;
+}
+
+.form{
+	float: left;
+	width: 478px;
+	margin-top: 20px;
+}
+
+.field{
+background: url(../images/field.png) repeat;
+width: 448px;
+-webkit-border-radius: 30px;-moz-border-radius: 30px;border-radius: 30px;
+border: none;
+font-style: italic;
+font-family: 'Lato', sans-serif;
+font-size: 16px;
+color: #ffffff;
+float: left;
+padding: 15px ;
+}
+
+@media only screen and (max-device-width: 420px)  {
+	.information{
+		width: 100%;
+	}
+	.form{
+		width: 100%;
+	}
+
+	.field {
+		width: 90%;
+		padding-left: 5%;
+		padding-right: 5%;
+	}
+}
+
+.submit{
+padding: 3px 10px;
+-webkit-border-radius: 30px;-moz-border-radius: 30px;border-radius: 30px;
+margin-left: -78px;
+margin-top: 12px;
+background: #ffffff;
+border: none;
+float: left;
+font-family: 'Lato', sans-serif;
+font-size: 14px;
+font-weight: bold;
+cursor: pointer;
+}
+
+
+.submit:hover{
+background: #eeeeee;
+}
+

BIN
public/images/bg.jpg


BIN
public/images/field.png


+ 15 - 12
views/index.jade

@@ -1,20 +1,23 @@
 doctype html
 html
   head
+    meta(http-equiv="Content-Type", content="text/html; charset=utf-8")
+    meta(name="viewport", content="width=device-width, initial-scale=1")
     title Join the #{community} community on Slack!
-    style.
-      body {
-        padding: 50px;
-        font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;
-      }
-      input {
-        font-size: 24px;
-        width: 400px;
-      }
+    link(href="css/style.css", rel="stylesheet", type="text/css")
+    link(href="http://fonts.googleapis.com/css?family=Lato:300,400,700,900,700italic|Open+Sans:700italic,400,600,300,700,800", rel="stylesheet", type="text/css")
   body
-    h1 Join the #{community} community on Slack!
-    form(method="POST", action="/invite")#join-form
-      input(type="text", name="email", placeholder="Enter your email")#slack-email
+    #wrapper
+      .main
+        .header
+          h1
+            strong #{community}
+          h2 Enter you email in below to join #{community} on slack!
+        .content
+          .information
+            form(method="POST", action="/invite")#join-form.form
+              input(type="text", name="email", placeholder="Enter Your Email Address")#slack-email.field
+              input(type="submit", value="Join").submit
     script.
       var form = document.getElementById('join-form');
       var email = document.getElementById('slack-email')