Skip to content

Commit bf0d771

Browse files
committed
Use default template for boilerplate
1 parent 0ffa4ea commit bf0d771

File tree

2 files changed

+47
-1
lines changed

2 files changed

+47
-1
lines changed

app.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
class HelloWorldApp < Sinatra::Base
44
get '/' do
5-
"Hello, world!"
5+
erb :home
66
end
77
end

views/home.erb

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>It works!</title>
6+
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:300,700">
7+
<style>
8+
body {
9+
background: #0e141a;
10+
font-family: 'Open Sans', sans-serif;
11+
}
12+
.container {
13+
position: absolute;
14+
top: 50%;
15+
left: 50%;
16+
transform: translate(-50%, -50%);
17+
text-align: center;
18+
}
19+
h1 {
20+
font-size: 72px;
21+
font-weight: 700;
22+
color: #00d46a;
23+
margin: 0;
24+
}
25+
h2 {
26+
font-weight: 300;
27+
color: rgba(255, 255, 255, 0.9);
28+
margin: 0;
29+
}
30+
.logo {
31+
position: absolute;
32+
bottom: 20px;
33+
left: 50%;
34+
transform: translate(-50%, -50%);
35+
}
36+
</style>
37+
</head>
38+
<body>
39+
<div class="container">
40+
<h1>It works!</h1>
41+
<h2>Now you're ready to roll.</h2>
42+
</div>
43+
44+
<img class="logo" src="https://cloud.githubusercontent.com/assets/398893/16279177/af9b3622-386e-11e6-920e-3a3f33169831.png" width="150" alt="WeDeploy">
45+
</body>
46+
</html>

0 commit comments

Comments
 (0)