Clean up some stuff and make a hello world app to deploy

This commit is contained in:
Aaron Mueller 2013-09-28 11:35:23 +02:00
parent 56c3e433e9
commit 203892a0ca
12 changed files with 28 additions and 146 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,47 +1,4 @@
html,
body {
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
height: 100%;
}
.error {
color: red;
}
/*footer based on http://twitter.github.com/bootstrap/examples/sticky-footer-navbar.html */
/* Wrapper for page content to push down footer */
#wrap {
min-height: 100%;
height: auto !important;
height: 100%;
/* Negative indent footer by it's height */
margin: 0 auto -60px;
}
/* Set the fixed height of the footer here */
#push,
#footer {
height: 60px;
}
#footer {
background-color: #f5f5f5;
}
/* Lastly, apply responsive CSS fixes as necessary */
@media (max-width: 767px) {
#footer {
margin-left: -20px;
margin-right: -20px;
padding-left: 20px;
padding-right: 20px;
}
}
#wrap > .container,
#wrap > .container-fluid{
padding-top: 60px;
}
.container .footer-text {
margin: 20px 0;
* {
margin: 0;
padding: 0;
}

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,2 @@
$(function() {
});

View file

@ -1,11 +0,0 @@
### Here are some links to get started
1. [HTML templating](http://www.luminusweb.net/docs/html_templating.md)
2. [Accessing the database](http://www.luminusweb.net/docs/database.md)
3. [Serving static resources](http://www.luminusweb.net/docs/static_resources.md)
4. [Setting response types](http://www.luminusweb.net/docs/responses.md)
5. [Defining routes](http://www.luminusweb.net/docs/routes.md)
6. [Adding middleware](http://www.luminusweb.net/docs/middleware.md)
7. [Sessions and cookies](http://www.luminusweb.net/docs/sessions_cookies.md)
8. [Security](http://www.luminusweb.net/docs/security.md)
9. [Deploying the application](http://www.luminusweb.net/docs/deployment.md)

View file

@ -3,13 +3,13 @@
(:require [ldview.views.layout :as layout]
[ldview.util :as util]))
; Just for now ...
(defn waiting-page []
(layout/render "waiting.html"))
(defn home-page []
(layout/render
"home.html" {:content (util/md->html "/md/docs.md")}))
(defn about-page []
(layout/render "about.html"))
(defroutes home-routes
(GET "/" [] (home-page))
(GET "/about" [] (about-page)))
(GET "/" [] (waiting-page)))

View file

@ -1,38 +1,21 @@
<!DOCTYPE html PUBLIC "">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Welcome to ldview</title>
<link href="{{servlet-context}}/css/bootstrap.min.css" rel="stylesheet" type="text/css">
<link href="{{servlet-context}}/css/bootstrap-responsive.min.css" rel="stylesheet" type="text/css">
<link href="{{servlet-context}}/css/screen.css" rel="stylesheet" type="text/css">
<script type="text/javascript"> var context = "{{servlet-context}}"; </script><script src="//code.jquery.com/jquery-1.10.1.min.js" type="text/javascript"></script><script src="{{servlet-context}}/js/bootstrap.min.js" type="text/javascript"></script>
</head>
<body>
<div id="wrap">
<div class="navbar navbar-fixed-top navbar-inverse">
<div class="navbar-inner">
<ul class="nav">
<li>
<a href="{{servlet-context}}/">Home</a>
</li>
<li>
<a href="{{servlet-context}}/about">About</a>
</li>
</ul>
</div>
</div>
<div class="container">
{% block content %}
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>ldview -- an alternative Ludum Dare entry viewer</title>
<link href="{{servlet-context}}/css/screen.css" rel="stylesheet" type="text/css">
<script type="text/javascript">var context = "{{servlet-context}}";</script>
<script src="//code.jquery.com/jquery-1.10.1.min.js" type="text/javascript"></script>
<script src="{{servlet-context}}/js/content-browser.js" type="text/javascript"></script>
</head>
<body>
{% endblock %}
</div>
<div id="push"></div>
</div>
<div id="footer">
<div class="container">
<p class="muted footer-text">Footer content.</p>
</div>
</div>
</body>
<a href="{{servlet-context}}/">Home</a>
<div class="container">
{% block content %}
{% endblock %}
</div>
</body>
</html>

View file

@ -1,23 +1,4 @@
{% extends "ldview/views/templates/base.html" %}
{% block content %}
<div class="hero-unit">
<h1>Welcome to ldview</h1>
<p>Time to start building your site!</p>
<p><a class="btn btn-primary btn-large" href="http://luminusweb.net">Learn more &raquo;</a></p>
</div>
<div class="row-fluid">
<div class="span8">
{{content|safe}}
</div>
</div>
{% endblock %}

View file

@ -1,10 +1,4 @@
{% extends "ldview/views/templates/base.html" %}
{% block content %}
<p>this is the story of ldview... work in progress</p>
<p>Smething big is comming soon ...</p>
{% endblock %}