commit 2215ee534b1100fd057ae75cb8d236c9ec961d81
parent 605c9d3ccf40769561910cd42e2049f31fba4caa
Author: AsherMorgan <59518073+AsherMorgan@users.noreply.github.com>
Date: Thu, 11 Jun 2020 08:37:08 -0700
rename index.html to home.html.
Diffstat:
5 files changed, 70 insertions(+), 70 deletions(-)
diff --git a/Songs2Slides/routes.py b/Songs2Slides/routes.py
@@ -11,8 +11,8 @@ import tempfile
# Home page
@app.route("/", methods=["GET"])
-def index():
- return render_template("index.html")
+def home():
+ return render_template("home.html")
diff --git a/Songs2Slides/static/index.css b/Songs2Slides/static/home.css
diff --git a/Songs2Slides/static/index.js b/Songs2Slides/static/home.js
diff --git a/Songs2Slides/templates/home.html b/Songs2Slides/templates/home.html
@@ -0,0 +1,67 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Songs2Slides</title>
+ <meta name="description" content="Quickly and easily create lyric powerpoints from a list of songs.">
+ <meta name="viewport" content="width=device-width, user-scalable=no"/>
+ <link rel="stylesheet" href="{{ url_for('static', filename='global.css') }}"></link>
+ <link rel="stylesheet" href="{{ url_for('static', filename='home.css') }}"></link>
+ <script src="{{ url_for('static', filename='home.js') }}"></script>
+ </head>
+ <body onload="onLoad();">
+ <div id="header">
+ <h1>Songs2Slides</h1>
+ </div>
+
+ <div id="songsContainer" class="container">
+ <h3>Choose your songs</h3>
+
+ <template id="songTemplate">
+ <div class="song">
+ <input type="text" class="title" placeholder="Song Title"/>
+ <input type="text" class="artist" placeholder="Song Artist"/>
+ <a id="remove" class="songRemove">╳</a>
+ </div>
+ </template>
+ <div id="songs"></div>
+
+ <div>
+ <span id="addSong" onclick="AddSong();">+</span>
+ </div>
+
+ <div id="songsButtons">
+ <a href="/settings/">Settings</a>
+ <button id="reviewButton" onclick="ReviewLyrics();">Next</button>
+ </div>
+ </div>
+
+ <form id="lyricsContainer" class="container" hidden action="/pptx" method="POST" enctype="multipart/form-data">
+ <h3>Review your PowerPoint</h3>
+
+ <p>Review and edit the parsed lyrics below and then click the create PowerPoint button.</p>
+ <p>One blank line represents the start of a new slide and three blank lines represent a blank slide.</p>
+
+ <input type="text" id="pptxSettingsField" name="settings" hidden>
+ <input type="text" id="lyricsField" name="lyrics" hidden>
+
+ <textarea rows="15" id="rawLyrics"></textarea>
+
+ <div id="fileUpload">
+ <label>Starting PowerPoint (optional): </label>
+ <input type="file" name="pptxFile" accept="application/vnd.openxmlformats-officedocument.presentationml.presentation, application/vnd.ms-powerpoint">
+ </div>
+
+ <p id="errors"></p>
+
+ <div id="lyricsButtons">
+ <a id="lyricsBack" href="javascript:Back()">Back</a>
+ <button id="submitLyricsButton" onclick="SubmitLyrics()">Create Powerpoint</button>
+ </div>
+ </form>
+
+ <div id="thankyou" hidden>
+ <p>Thankyou for using Songs2Slides</p>
+ <p>Click <a href="javascript:Reset()">here</a> to create another PowerPoint.</p>
+ </div>
+ </body>
+</html>
+\ No newline at end of file
diff --git a/Songs2Slides/templates/index.html b/Songs2Slides/templates/index.html
@@ -1,67 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <title>Songs2Slides</title>
- <meta name="description" content="Quickly and easily create lyric powerpoints from a list of songs.">
- <meta name="viewport" content="width=device-width, user-scalable=no"/>
- <link rel="stylesheet" href="{{ url_for('static', filename='global.css') }}"></link>
- <link rel="stylesheet" href="{{ url_for('static', filename='index.css') }}"></link>
- <script src="{{ url_for('static', filename='index.js') }}"></script>
- </head>
- <body onload="onLoad();">
- <div id="header">
- <h1>Songs2Slides</h1>
- </div>
-
- <div id="songsContainer" class="container">
- <h3>Choose your songs</h3>
-
- <template id="songTemplate">
- <div class="song">
- <input type="text" class="title" placeholder="Song Title"/>
- <input type="text" class="artist" placeholder="Song Artist"/>
- <a id="remove" class="songRemove">╳</a>
- </div>
- </template>
- <div id="songs"></div>
-
- <div>
- <span id="addSong" onclick="AddSong();">+</span>
- </div>
-
- <div id="songsButtons">
- <a href="/settings/">Settings</a>
- <button id="reviewButton" onclick="ReviewLyrics();">Next</button>
- </div>
- </div>
-
- <form id="lyricsContainer" class="container" hidden action="/pptx" method="POST" enctype="multipart/form-data">
- <h3>Review your PowerPoint</h3>
-
- <p>Review and edit the parsed lyrics below and then click the create PowerPoint button.</p>
- <p>One blank line represents the start of a new slide and three blank lines represent a blank slide.</p>
-
- <input type="text" id="pptxSettingsField" name="settings" hidden>
- <input type="text" id="lyricsField" name="lyrics" hidden>
-
- <textarea rows="15" id="rawLyrics"></textarea>
-
- <div id="fileUpload">
- <label>Starting PowerPoint (optional): </label>
- <input type="file" name="pptxFile" accept="application/vnd.openxmlformats-officedocument.presentationml.presentation, application/vnd.ms-powerpoint">
- </div>
-
- <p id="errors"></p>
-
- <div id="lyricsButtons">
- <a id="lyricsBack" href="javascript:Back()">Back</a>
- <button id="submitLyricsButton" onclick="SubmitLyrics()">Create Powerpoint</button>
- </div>
- </form>
-
- <div id="thankyou" hidden>
- <p>Thankyou for using Songs2Slides</p>
- <p>Click <a href="javascript:Reset()">here</a> to create another PowerPoint.</p>
- </div>
- </body>
-</html>
-\ No newline at end of file