Browse Source

landing page simplified

master
Christian Müller 11 years ago
parent
commit
2aebc91b6e
  1. 15
      LANDING.md
  2. 2
      resources/public/js/main.js
  3. 15
      resources/public/js/themes.js
  4. 4
      resources/public/styles/main.less
  5. 2
      settings
  6. 4
      src/notehub/views.clj

15
LANDING.md

@ -9,13 +9,8 @@ @@ -9,13 +9,8 @@
- **API**: Integrate the publishing functionality into your editor using the official [NoteHub API](/api).
## Changelog
- September 2014: text size setting added ([example](http://localhost:8080/2014/3/31/demo-note?text-font=monospace&header-font=Courier&text-size=0.8))
- July 2014:
- deprecated all API versions less than 1.4
- performance improvements
- March 2014: all notes with __less than 30 views after the first 30 days__ will expire.
- February 2014: a simple JS-client for API testing [added](/api-test.html).
- January 2014:
- Mobile friendly styling added.
- NoteHub API [introduced](/api).
- NoteHub 2.0 released: new theme, better performance, extended markdown.
- **2014-09**: text size setting added ([example](http://localhost:8080/2014/3/31/demo-note?text-font=monospace&header-font=Courier&text-size=0.8))
- **2014-07**: deprecated all API versions less than 1.4 & performance improvements.
- **2014-03**: all notes with less than 30 views after the first 30 days will expire.
- **2014-02**: a simple JS-client for API testing [added](/api-test.html).
- **2014-01**: [NoteHub API](/api), mobile friendly styling and more.

2
resources/public/js/main.js

@ -38,5 +38,5 @@ function onLoad() { @@ -38,5 +38,5 @@ function onLoad() {
}
if(iosDetected) $note.className += " ui-border"; else $note.focus();
}
showLinks();
showFooter();
}

15
resources/public/js/themes.js

@ -109,16 +109,15 @@ document.getElementsByTagName("head")[0].appendChild(fileref) @@ -109,16 +109,15 @@ document.getElementsByTagName("head")[0].appendChild(fileref)
less.modifyVars(vars);
function showLinks(){
var links = $("links");
if(links){
function showFooter(){
var elem = $("footer");
if(!elem) return;
if(window.innerHeight * 0.85 >= document.body.clientHeight) {
links.style.position = "fixed";
links.style.bottom = 0;
}
show(links);
elem.style.position = "fixed";
elem.style.bottom = 0;
}
show(elem);
}
// for the case if main.js is not loaded
var onLoad = showLinks;
var onLoad = showFooter;

4
resources/public/styles/main.less

@ -82,7 +82,7 @@ a:visited { @@ -82,7 +82,7 @@ a:visited {
.landing-button:hover {
background: #0b2;
}
#links {
#footer {
.helvetica;
width: 100%;
font-size: 0.8em;
@ -92,7 +92,7 @@ a:visited { @@ -92,7 +92,7 @@ a:visited {
font-size: 0.4em;
}
}
#links a {
#footer a {
border: none;
}
html, body {

2
settings

@ -1,3 +1,3 @@ @@ -1,3 +1,3 @@
max-title-length = 40
prod-domain = http://notehub.org
prod-domain = http://www.notehub.org
dev-domain = http://localhost:8080

4
src/notehub/views.clj

@ -75,7 +75,7 @@ @@ -75,7 +75,7 @@
[:article.helvetica.bottom-space
{:style "font-size: 1em"}
(md-to-html (slurp "LANDING.md"))]
[:div.centered.helvetica (md-to-html (get-message :footer))]))
[:div#footer (md-to-html (get-message :footer))]))
(defn statistics-page [resp]
@ -119,4 +119,4 @@ @@ -119,4 +119,4 @@
(get-message %))
[:notehub :stats :edit :export :short-url])
links (interpose [:span.middot "·"] links)]
[:div#links links]))))
[:div#footer links]))))

Loading…
Cancel
Save