-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebutil.rb
More file actions
29 lines (25 loc) · 826 Bytes
/
webutil.rb
File metadata and controls
29 lines (25 loc) · 826 Bytes
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
def top_of_page
puts "<html>"
puts ' <head>'
puts " <title>Cards</title>"
puts ' <link rel="stylesheet" href="https://raw.github.com/necolas/normalize.css/master/normalize.css">'
puts ' <style>'
puts ' body { margin: 20px auto; width: 960px; }'
puts ' h1 { border-bottom: 4px solid gray; }'
puts ' h2 { font-size: 64px;}'
puts ' span { border: 1px solid #999;
border-radius: 24px;
height: 200px;
width: 120px;
padding: 20px;
display: inline-block; }'
puts ' .hearts, .diams { color: red; }'
puts ' .clubs, .spades { color: black; }'
puts ' </style>'
puts " </head>"
puts " <body>"
end
def bottom_of_page
puts " </body>"
puts "</html>"
end