generated from karsten.jeppesen/KAJE-Template
Added background image and color
This commit is contained in:
@@ -16,13 +16,13 @@
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
<h2>@Model.theScene.quest</h2>
|
<h2 style="background-color:#f0f0f0;">@Model.theScene.quest</h2>
|
||||||
|
|
||||||
<div style="border:1px solid #ccc; padding:10px; height:300px; overflow-y:auto;">
|
<div style="border:1px solid #ccc; padding:10px; height:300px; overflow-y:auto; background-color:#f9f9f9;">
|
||||||
@foreach (var msg in Model.ChatHistory)
|
@foreach (var msg in Model.ChatHistory)
|
||||||
{
|
{
|
||||||
<p>
|
<p>
|
||||||
<strong>@msg.Role:</strong> @msg.Content
|
<strong>@msg.Role:</strong> @Html.Raw(msg.Content)
|
||||||
</p>
|
</p>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ namespace Agent86.Pages
|
|||||||
|
|
||||||
var reply = await _ollama.GenerateReplyAsync(ChatHistory, theScene.instruction);
|
var reply = await _ollama.GenerateReplyAsync(ChatHistory, theScene.instruction);
|
||||||
|
|
||||||
ChatHistory.Add(new ChatMessage { Role = theScene.customer, Content = ToPlainText(reply) });
|
ChatHistory.Add(new ChatMessage { Role = theScene.customer, Content = Markdown.ToHtml(reply) });
|
||||||
|
|
||||||
}
|
}
|
||||||
SaveHistory();
|
SaveHistory();
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
<link rel="stylesheet" href="~/css/site.css" asp-append-version="true" />
|
<link rel="stylesheet" href="~/css/site.css" asp-append-version="true" />
|
||||||
<link rel="stylesheet" href="~/Agent86.styles.css" asp-append-version="true" />
|
<link rel="stylesheet" href="~/Agent86.styles.css" asp-append-version="true" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body style="background-image: url('images/background.png'); background-size: cover; background-position: center;">
|
||||||
<header>
|
<header>
|
||||||
<nav class="navbar navbar-expand-sm navbar-toggleable-sm navbar-light bg-white border-bottom box-shadow mb-3">
|
<nav class="navbar navbar-expand-sm navbar-toggleable-sm navbar-light bg-white border-bottom box-shadow mb-3">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
|||||||
BIN
Agent86/Agent86/wwwroot/images/background.png
Normal file
BIN
Agent86/Agent86/wwwroot/images/background.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.9 MiB |
Reference in New Issue
Block a user