diff --git a/vocoder/server.py b/vocoder/server.py index 1b977c9..01cce1b 100644 --- a/vocoder/server.py +++ b/vocoder/server.py @@ -18,3 +18,9 @@ def add_to_archive(): # I can't seem to get the file to send but the basic # plumbing is in place return ("faking it till we make it", 201) + + +@app.route("/archive/") +def archive(): + """Serve the archive listing.""" + return render_template("archive.html") diff --git a/vocoder/static/vocoder.js b/vocoder/static/vocoder.js index 34969e3..dc72fb8 100644 --- a/vocoder/static/vocoder.js +++ b/vocoder/static/vocoder.js @@ -54,19 +54,19 @@ function setupRecording(){ // TODO: we'll probably want something more glam than // some default buttons but that's fine for experimenting recordButton = createButton('record'); - recordButton.position(10, 10); + recordButton.position(10, 90); recordButton.mousePressed(doRecording); stopButton = createButton('stop'); - stopButton.position(120, 10); + stopButton.position(120, 90); stopButton.mousePressed(doStopping); playButton = createButton('play'); - playButton.position(210, 10); + playButton.position(210, 90); playButton.mousePressed(doPlaying); playButton = createButton('archive'); - playButton.position(300, 10); + playButton.position(300, 90); playButton.mousePressed(doArchiving); } diff --git a/vocoder/templates/archive.html b/vocoder/templates/archive.html new file mode 100644 index 0000000..2a53a52 --- /dev/null +++ b/vocoder/templates/archive.html @@ -0,0 +1,16 @@ + + + + + + vocoder.org: archive + + + + +

Coming Soon TM.

+ + diff --git a/vocoder/templates/index.html b/vocoder/templates/index.html index f77132f..978a3e9 100644 --- a/vocoder/templates/index.html +++ b/vocoder/templates/index.html @@ -3,10 +3,15 @@ - vocoder.org + vocoder.org: home + +