chore(release): 0.2.10
[risinglegends.git] / public / index.html
index 2be1b43177a6e4255f3d4ce9106bf15f2f223006..746e2c36d2326f54fbecc2f850948bd87b5498e8 100644 (file)
@@ -1,77 +1,86 @@
 <!doctype html>
 <html>
   <head>
-    <title>Tiny Kingdom</title>
+    <title>Rising Legends</title>
     <meta charset="utf-8">
+    <!--
+<a href="https://www.flaticon.com/free-icons/dawn" title="dawn icons">Dawn icons created by Smashicons - Flaticon</a>
+-->
     <meta name="viewport" content="width=device-width, initial-scale=1" />
     <link rel="stylesheet" href="/assets/css/reset.css">
     <link rel="stylesheet" href="/assets/css/game.css">
+    <link rel="stylesheet" href="/assets/css/sky.css">
+    <script src="https://unpkg.com/htmx.org@1.9.4" integrity="sha384-zUfuhFKKZCbHTY6aRR46gxiqszMk5tcHjsVFxnUo8VMus4kHGVdIYVbOYYNlKmHV" crossorigin="anonymous"></script>
     <script src="/socket.io/socket.io.js"></script>
   </head>
   <body>
     <div id="view">
-      <section id="stat-summary">
+      <section id="title-bar">
+        <a href="/" class="title-font">Rising Legends</a>
+        <div id="time-of-day"></div>
+      </section>
+
+      <header>
         <div class="avatar-container">
-          <img id="avatar" src="http://via.placeholder.com/64x64">
+          <img id="avatar" src="/assets/img/profile-pics/warrior-1.jpg">
         </div>
-        <div id="stat-bars">
-          <div id="player-section">
-            <div id="username"></div>
-            <div class="gold"></div>
+        <div id="player-info">
+          <div id="stat-bars">
+            <div id="player-section">
+              <div id="username"></div>
+              <div class="gold"></div>
+            </div>
+            <div id="ap-bar"></div>
+            <div class="progress-bar" id="hp-bar"></div>
+            <div class="progress-bar" id="exp-bar"></div>
           </div>
-          <div id="ap-bar"></div>
-          <div class="progress-bar" id="hp-bar"></div>
-          <div class="progress-bar" id="exp-bar"></div>
+          <nav>
+            <li><a href="#" class="active" hx-get="/player" hx-target="#profile">Profile</a></li>
+            <li><a href="#" hx-get="/player/inventory" hx-target="#inventory">Inventory</a></li>
+            <li><a href="#" hx-get="/player/skills" hx-target="#skills">Skills</a></li>
+            <li><a href="#" hx-get="/player/explore" hx-target="#explore">Explore</a></li>
+          </nav>
         </div>
-      </section>
-      <nav>
-        <li><a href="#" data-section="stats" data-container="main-nav" class="active">Stats</a></li>
-        <li><a href="#" data-section="inventory" data-container="main-nav">Inventory</a></li>
-        <li><a href="#" data-section="explore" data-container="main-nav">Explore</a></li>
-      </nav>
+      </header>
+
+      <div id="signup-prompt" class="hidden"></div>
+      <div id="announcements" class="hidden"></div>
 
       <div id="alerts"></div>
+      <div id="modal-wrapper"></div>
 
       <div id="main-nav">
-        <section id="stats" class="tab" style="display: block">
-          <table id="stat-breakdown">
-            <tr>
-              <th>Strength</th>
-              <td class="strength"></td>
-            </tr>
-            <tr>
-              <th>Constitution</th>
-              <td class="constitution"</td>
-            </tr>
-            <tr>
-              <th>Dexterity</th>
-              <td class="dexterity"></td>
-            </tr>
-            <tr>
-              <th>Intelligence</th>
-              <td class="intelligence"></td>
-            </tr>
-            <tr>
-              <th>HP</th><td><span class="hp"></span>/<span class="maxHp"></span></td>
-            </tr>
-            <tr>
-              <th>EXP</th><td><span class="exp"></span>/<span class="expToLevel"></span></td>
-            </tr>
-          </table>
-        </section>
+        <section id="profile" class="tab">PROFILE</section>
         <section id="inventory" class="tab">INVENTORY</section>
-        <section id="explore" class="tab">
+        <section id="skills" class="tab">SKILLS</section>
+        <section id="explore" class="tab active">
           <div id="map"></div>
           <div id="fight"></div>
         </section>
+        <section id="settings" class="tab">
+          <div>
+            <p class="alert error">If you haven't set a username/password you will not be able to access this character again.</p>
+            <p><button class="btn" id="logout">Logout</button></p>
+          </div>
+        </section>
       </div>
 
       <section id="chat">
-        <div id="chat-messages"></div>
-        <form id="chat-form">
-          <input type="text" id="message"><button type="submit">Send</button>
+        <div id="chat-messages" hx-trigger="load delay:1s" hx-get="/chat/history" hx-swap="innerHTML"></div>
+        <form id="chat-form" hx-post="/chat">
+          <input type="text" id="message" name="message" autocomplete="off"><button type="submit">Send</button>
         </form>
       </section>
+
+      <section id="game-footer">
+        <div>
+          <nav>
+            <a href="#" data-section="settings" data-container="main-nav" hx-get="/settings" hx-target="#settings">Settings</a>
+          </nav>
+        </div>
+        <div id="server-stats">...Loading</div>
+      </section>
+      <footer>Another project by <a href="https://xangelo.ca/gardens/rising-legends/">xangelo.ca</a>. <span id="version"></span></footer>
     </div>
   </body>
   <script src="/assets/bundle.js"></script>