Skip to content

Commit 0c9bb96

Browse files
Beautifying stuff.
1 parent cc65871 commit 0c9bb96

File tree

3 files changed

+21
-15
lines changed

3 files changed

+21
-15
lines changed

resources/public/css/jumbotron.css

+7-4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
background-size: 100% auto;
44
background-image: url(/img/artistic.jpg);
55
border-radius: 6px;
6+
vertical-align: middle;
67
}
78

89
.jumbotron h1 {
@@ -11,10 +12,12 @@
1112
font-size: 63px;
1213
line-height: 75px;
1314
font-weight: 700;
15+
text-shadow: 3px 3px 2px rgba(150, 150, 150, 1);
1416
}
15-
.jumbotron p {
17+
form.col-md-4 {
18+
margin: 30px;
19+
}
20+
form.col-md-4 p {
1621
color: #fff;
17-
text-shadow: 2px 2px #100e19;
18-
line-height: 1.5em;
19-
/*-webkit-text-stroke: 1px black;*/
2022
}
23+

resources/public/marketing.html

+3-8
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,16 @@ <h1>chatb&#216;x</h1>
77

88
<div class="container">
99
<div class="row">
10-
<div class="col-md-4">
10+
<div class="col-md-6">
1111
<h2>Communicate Effectively</h2>
12-
<p>When customers land on your site they are presented with a simple window with which they can communicate with agents from your company.</p>
12+
<p>When visitors land on your site they are presented with a simple window with which they can communicate with agents from your company.</p>
1313
<p><a class="btn btn-default" href="#" role="button">Learn More</a></p>
1414
</div>
15-
<div class="col-md-4">
15+
<div class="col-md-6">
1616
<h2>Bleeding Edge Tech</h2>
1717
<p>We built this service using Clojure - a modern LISP for tackling modern problems.</p>
1818
<p><a class="btn btn-default" href="#" role="button">See Our Tech</a></p>
1919
</div>
20-
<div class="col-md-4">
21-
<h2>Sign Up</h2>
22-
<p>Click the button below to sign up and see what chatb0x is all about!</p>
23-
<p><a class="btn btn-default" href="#" role="button">Sign Up</a></p>
24-
</div>
2520
</div>
2621
</div> <!-- container -->
2722
</div> <!-- marketing -->

src/chatb0x/core.clj

+11-3
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,15 @@
9696
(html/deftemplate landing (io/resource "public/landing.html")
9797
[req]
9898
[:body :div.navbar] (html/substitute (navbar req))
99-
[:body :#content] (html/substitute (marketing))
99+
[:body :#content] (html/do->
100+
(html/substitute (non-app-content req))
101+
(html/append (marketing)))
102+
[:body] (brepl-injection))
103+
104+
(html/deftemplate other-landing (io/resource "public/landing.html")
105+
[req]
106+
[:body :div.navbar] (html/substitute (navbar req))
107+
[:body :#content] (html/substitute (non-app-content req))
100108
[:body] (brepl-injection))
101109

102110
;;; Default page for erroneous logins
@@ -161,8 +169,8 @@
161169
(defroutes unsecured-site
162170
(resources "/")
163171
(GET "/" req (landing req))
164-
(GET "/about" req (landing req))
165-
(GET "/contact" req (landing req))
172+
(GET "/about" req (other-landing req))
173+
(GET "/contact" req (other-landing req))
166174
(GET "/chatb0x" req (chatb0x req))
167175
(GET "/agent-chat" req (friend/authorize #{:chatb0x.user/agent} (agent-chat req)))
168176
(GET "/admin-dashboard" req (friend/authorize #{:chatb0x.user/admin} (admin-dashboard req)))

0 commit comments

Comments
 (0)