-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
141 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/** write some css to display two divs side by side that contain lists of elements */ | ||
/* Path: main.css */ | ||
|
||
div { | ||
display: grid; | ||
grid-template-columns: repeat(2, 1fr); | ||
width: 75%; | ||
} | ||
|
||
.queue { | ||
/** flex items-center justify-between */ | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: space-between; | ||
align-items: center; | ||
} | ||
|
||
ul { | ||
list-style-type: none; | ||
padding: 0; | ||
} | ||
|
||
li { | ||
cursor: pointer; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<title>TODO with HTMX</title> | ||
<link rel="stylesheet" href="/assets/css/main.css"> | ||
<script src="https://unpkg.com/[email protected]" | ||
integrity="sha384-ujb1lZYygJmzgSwoxRggbCHcjc0rB2XoQrxeTUQyRjrOnlCoYta87iKBWq3EsdM2" | ||
crossorigin="anonymous"></script> | ||
<script src="https://unpkg.com/[email protected]/dist/ext/ws.js"></script> | ||
</head> | ||
|
||
<body> | ||
<main class="flex flex-row justify-center w-full"> | ||
<!-- Should display 2 queues with buttons at the bottom --> | ||
<div> | ||
<div class="queue"> | ||
<h1>Events</h1> | ||
<div class=""> | ||
<h1>TODO</h1> | ||
<div id="todo-queue"></div> | ||
</div> | ||
<div class=""> | ||
<h1>DOING</h1> | ||
<div id="doing-queue"></div> | ||
</div> | ||
</div> | ||
<div class="queue"> | ||
<h1>TTS</h1> | ||
<div> | ||
<h1>DONE</h1> | ||
<div id=""></div> | ||
</div> | ||
<div class=""> | ||
<h1>ARCHIVED</h1> | ||
<div id="archived-queue"></div> | ||
</div> | ||
</div> | ||
<div class=""> | ||
<button id="event-queue-start-stop">Stop</button> | ||
<button id="tts">Play Next TTS</button> | ||
</div> | ||
</div> | ||
<!-- Should display notifications and alerts --> | ||
<div hx-ext="ws" ws-connect="ws://localhost:9000/"> | ||
<div id="notifications"></div> | ||
<div id="alerts"> | ||
<h1>TODO with HTMX</h1> | ||
</div> | ||
</div> | ||
</main> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters