-
Notifications
You must be signed in to change notification settings - Fork 13
/
index.html.haml
51 lines (48 loc) · 1.58 KB
/
index.html.haml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
!!! 5
%html
%head
%meta(charset="utf-8")
%meta(content="IE=edge,chrome=1" http-equiv="X-UA-Compatible")
%meta(name="viewport" content="width=device-width, initial-scale=1")
%title
Form Blog
:css
body {font-family: Arial; margin: 0px;}
h1 {
background: -webkit-gradient(linear, left top, left bottom, color-stop(0.0, #666),
color-stop(1.0, #000));
-webkit-box-shadow: 0 0 4px #333;
color: #EEE;
margin: 0 0 4px 0; padding: 4px; width: 100%;
text-align: center;
}
form ul { padding: 6px; margin: 0px; list-style-type: none; }
form ul li {
margin: 0 0 4px 0; -webkit-border-radius: 4px;
border: 1px solid #666; padding: 4px;
}
input, textarea {
-webkit-appearance: none;
border: 0; width: 95%;
}
form ul li.noborder { border: 0; padding: 0px;}
input[type=submit] {
border: 0;
background: -webkit-gradient(linear, left top, left bottom, color-stop(0.0, #EEE),
color-stop(1.0, #AAA));
-webkit-border-radius: 6px;
-webkit-box-shadow: 0 0 4px #333;
width: 100%; padding: 6px;
}
%body
%h1 Post a blog entry
%form(action="/articles" method="post")
%ul
%li
%input(type = "text" name="title" id="title" placeholder="Post Title")
%li
%textarea(name="content" rows = "5" placeholder = "Content")
%li
%input(type = "email" placeholder = "Email")
%li
%input(type = "submit" name = "Post")