wip: ceasar

This commit is contained in:
Cat Flynn 2024-10-05 16:20:40 +01:00
parent 48375372c8
commit 023b8fe55f
5 changed files with 137 additions and 12 deletions

23
ides-of-march.json Normal file
View File

@ -0,0 +1,23 @@
[
{ "character": 1, "text": "Alright, its time. We need to finalize the plan. Everyone good for tomorrow?" },
{ "character": 2, "text": "Yes, it has to be tomorrow. No more delays." },
{ "character": 3, "text": "Do we know exactly where hes going to be?" },
{ "character": 4, "text": "Hes going to the Senate tomorrow for sure. Ive convinced him to go, even though hes been acting paranoid lately." },
{ "character": 5, "text": "Good. We need to catch him before he even suspects anything. Are we all clear on the roles?" },
{ "character": 1, "text": "Ill signal when were ready. Brutus, youll come in last. Your presence will make it look more… noble." },
{ "character": 2, "text": "Its not about appearances. This is about saving the Republic." },
{ "character": 3, "text": "Yeah, yeah. But we cant forget how people will react after this. They need to see it as necessary." },
{ "character": 1, "text": "Casca, youll be the first to strike, as planned. You good with that?" },
{ "character": 3, "text": "Yeah, Ive got this. One stab, clean." },
{ "character": 4, "text": "Remember, were all in this together. Theres no turning back now." },
{ "character": 5, "text": "What about Mark Antony? Hes always close to Caesar." },
{ "character": 1, "text": "Trebonius, you handle him. Keep him distracted outside. Just make sure he doesnt get involved." },
{ "character": 5, "text": "Consider it done." },
{ "character": 2, "text": "Remember, this isnt murder. Its justice. Rome is greater than one man." },
{ "character": 3, "text": "Right. But tomorrow… its gonna be chaos." },
{ "character": 4, "text": "Well handle the fallout after. Stick to the plan." },
{ "character": 1, "text": "Tomorrow, at the Senate. Lets end this tyranny." },
{ "character": 2, "text": "For Rome." },
{ "character": 3, "text": "For the Republic." },
{ "character": 5, "text": "For our future." }
]

View File

@ -6,7 +6,26 @@
</head>
<body>
<div id="side-panel">
<div class="conversation">
<h2>Lorem</h2>
<span>Lorem ipsum blah-de-fuck</span>
</div>
<div class="conversation">
<h2>Caesar</h2>
<span>Heyy Markus-chan uwu xoxo. i heard u was in town maybe stop by</span>
</div>
<!--
TODO: other conversations to fill out the panel! filler stuff!
-->
</div>
<div id="main-panel">
<div id="header">
<button class="rounded-rectangle" onclick="console.log('back')"><- back</button>
<h1 id="header-title">NAME</h1>
</div>
@ -18,6 +37,7 @@
<input id="textbox-input" class="rounded-rectangle" type="text" onkeydown="pressSendButton()"></input>
<button class="rounded-rectangle" onclick="pressSendButton()">send</button>
</div>
</div>
<script src="main.js"></script>
</body>

30
lorem.json Normal file
View File

@ -0,0 +1,30 @@
[
{ "character": 0, "text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit." },
{ "character": 1, "text": "Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." },
{ "character": 0, "text": "Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat." },
{ "character": 0, "text": "Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur." },
{ "character": 1, "text": "Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum." },
{ "character": 0, "text": "Curabitur pretium tincidunt lacus. Nulla gravida orci a odio." },
{ "character": 1, "text": "Suspendisse ut massa. Cras nec ante." },
{ "character": 0, "text": "Pellentesque a nulla. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus." },
{ "character": 1, "text": "Nulla posuere. Vivamus venenatis venenatis risus." },
{ "character": 1, "text": "In pede mi, aliquet sit amet, euismod in, auctor ut, ligula." },
{ "character": 0, "text": "Aliquam dapibus tincidunt metus." },
{ "character": 1, "text": "Praesent justo dolor, lobortis quis, lobortis dignissim, pulvinar ac, lorem." },
{ "character": 0, "text": "Integer vitae libero ac risus egestas placerat." },
{ "character": 0, "text": "Vestibulum commodo felis quis tortor." },
{ "character": 1, "text": "Ut aliquam sollicitudin leo." },
{ "character": 0, "text": "Cras iaculis ultricies nulla." },
{ "character": 1, "text": "Donec quis dui at dolor tempor interdum." },
{ "character": 0, "text": "Vivamus vehicula nulla ut felis." },
{ "character": 1, "text": "Integer malesuada. Vestibulum in felis." },
{ "character": 1, "text": "Mauris fermentum dictum magna." },
{ "character": 0, "text": "Sed laoreet aliquam leo." },
{ "character": 0, "text": "Ut tellus dolor, dapibus eget, elementum vel, cursus eleifend, elit." },
{ "character": 1, "text": "Aenean auctor wisi et urna." },
{ "character": 0, "text": "Aliquam erat volutpat." },
{ "character": 1, "text": "Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus." },
{ "character": 0, "text": "Phasellus vulputate condimentum orci." },
{ "character": 1, "text": "Nullam mattis magna quis ligula." }
]

View File

@ -201,7 +201,7 @@ function init(messagesData) {
setTypingIndicator(false);
}
fetch("caesar.json")
fetch("lorem.json")
.then(response => response.json())
.then(json => init(json));

View File

@ -8,13 +8,54 @@
html {
font-family: sans-serif;
height: 100%;
}
body {
margin-left: 0;
margin-right: 0;
margin: 0;
height: 100%;
display: flex;
}
#side-panel {
height: 100%;
background-color: red;
width: 0;
visibility: hidden;
}
#side-panel .conversation {
width: 300px;
height: 70px;
border: solid black 3px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
#side-panel .conversation:hover {
background-color: pink;
}
#side-panel h2 {
margin: 0;
}
#header {
position: sticky;
top: 0;
background-color: red;
}
#main-panel {
background-color: var(--dark-purple);
float: right;
display: flex;
flex-direction: column;
justify-content: flex-end;
}
#page {
@ -22,8 +63,10 @@ body {
}
h1 {
margin-left: 0.5em;
display: inline;
transform: translateY(.3rem);
height: 100%;
margin: 0;
display: inline-block;
color: var(--eggshell);
}
@ -51,7 +94,7 @@ h1 {
.message-content.theirs {
background-color: var(--ucla-blue);
left: 0;
float: left;
}
.theirs .message-text {
@ -70,8 +113,9 @@ h1 {
}
ul {
margin: 1em;
margin-bottom: 4em;
overflow: scroll;
flex-grow: 1;
margin: .5em;
padding: 0;
list-style: none;
}
@ -88,12 +132,16 @@ li {
#textbox {
width: 100%;
position: fixed;
display: flex;
/*position: sticky;*/
/*flex-position: end;*/
bottom: 0;
margin-top: 0.5em;
z-index: 1;
background-color: var(--dark-purple);
}
#typing-indicator {
@ -108,13 +156,14 @@ li {
}
#textbox input {
flex-grow: 2;
color: var(--dark-purple);
background-color: var(--eggshell);
margin: 0.5em;
left: 1em;
width: 80%;
font-size: 1em;
z-index: 1;
@ -126,8 +175,7 @@ button {
margin: 0.5em;
padding: 0;
width: 15%;
position: absolute;
flex-grow: 1;
right: 0;
font-size: 1em;
}
@ -174,3 +222,7 @@ button:hover {
right: 1em;
font-size: .8em;
}
.conversations {
}