diff src/index.html.luan @ 56:323ddacc1593

start invite
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 04 Mar 2025 07:00:42 -0700
parents 7628fd0e3560
children 7b6691bd65c3
line wrap: on
line diff
--- a/src/index.html.luan	Mon Mar 03 21:42:38 2025 -0700
+++ b/src/index.html.luan	Tue Mar 04 07:00:42 2025 -0700
@@ -107,7 +107,20 @@
 <%				chats_html() %>
 			</div>
 			<div posts>
-				<h3 intro>Choose a chat on the left</h3>
+				<div intro>
+					<h3>Choose a chat on the left</h3>
+					<p>or</p>
+					<h3>Chat with another person</h3>
+					<form action="javascript:invite()">
+						<p>
+							<label>Person's email</label><br> 
+							<input type=email name=email required><br>
+						</p>
+						<p>
+							<input type=submit>
+						</p>
+					</form>
+				</div>
 			</div>
 		</div>
 		<div hidden>
@@ -143,6 +156,13 @@
 				<button go onclick="savePost(this)">Save</button>
 			</div>
 		</dialog>
+		<dialog invite>
+			<h2>Chat with another person</h2>
+			<p>We have sent an invite to <span email></span></p>
+			<div buttons>
+				<button cancel onclick="closeModal(this)">Close</button>
+			</div>
+		</dialog>
 		<script>
 			'use strict';