From 4dd486824d18ce60d0dd2032b788350c1439966d Mon Sep 17 00:00:00 2001 From: Simon Brooke Date: Mon, 15 Feb 2016 16:34:04 +0000 Subject: [PATCH] Now successfully rendering the replacement navigation, but not yet made it work. --- README.md | 11 +++++ resources/public/css/standard.css | 8 ++-- resources/public/index.html | 40 ++++++++--------- src/cljs/mw3/core.cljs | 71 +++++++++++++++++-------------- 4 files changed, 73 insertions(+), 57 deletions(-) diff --git a/README.md b/README.md index 30555e0..dbf6aa8 100644 --- a/README.md +++ b/README.md @@ -3,3 +3,14 @@ MW3 is intended to be a re-implementation of MicroWorld in ClojureScript: the third reimplementation, although not nearly as dramatic as the shift from C to Clojure! It is a very long way from finished and does not even nearly work yet. Come back in a month or two. + +## What I'm trying to achieve + +What I'd really like to achieve is + +1. A single page application, that +2. If JavaScript is available in the browser, runs mainly or wholly client side, but +3. If JavaScript isn't available, runs wholly server side +4. With as little as possible difference between the two modes. + +This may not be possible, but does account for the fact that navigation is done statically in the HTML, and then re-done in the ClojureScript. diff --git a/resources/public/css/standard.css b/resources/public/css/standard.css index a08f588..90faaf0 100644 --- a/resources/public/css/standard.css +++ b/resources/public/css/standard.css @@ -45,19 +45,17 @@ body { } #tab-bar li { - padding: 0; + padding: 0.1em 1.5em 0.1em 0; margin: 0; display: inline; - color: white; - background: rgba(40,40,40,0.8); } #tab-bar li a { color: white; text-decoration: none; font-weight: bold; - padding: 0.1em 0.75em; - margin: 0; + color: white; + background: rgba(40,40,40,0.8); } #tab-bar li.active a { background: silver;} diff --git a/resources/public/index.html b/resources/public/index.html index 48f0d1f..8d64674 100644 --- a/resources/public/index.html +++ b/resources/public/index.html @@ -11,23 +11,25 @@ Welcome to MicroWorld! - +
+ +

@@ -352,8 +354,8 @@