forked from abpframework/abp-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve UI design for the chat example
- Loading branch information
Showing
4 changed files
with
51 additions
and
10 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
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 |
---|---|---|
@@ -1,19 +1,43 @@ | ||
@page | ||
@using Volo.Abp.AspNetCore.Mvc.UI.Packages.SignalR | ||
@model SignalRDemo.Web.Pages.ChatModel | ||
@section styles { | ||
<abp-style src="/Pages/Chat.css" /> | ||
} | ||
@section scripts { | ||
<abp-script type="typeof(SignalRBrowserScriptContributor)" /> | ||
<abp-script src="/Pages/Chat.js" /> | ||
} | ||
<h1>Chat</h1> | ||
|
||
<div> | ||
<ul id="MessageList"> | ||
</ul> | ||
</div> | ||
<abp-row> | ||
<abp-column size-md="_6"> | ||
<div>All Messages:</div> | ||
<ul id="MessageList" style=""> | ||
</ul> | ||
</abp-column> | ||
<abp-column size-md="_6"> | ||
<form> | ||
<abp-row> | ||
<abp-column> | ||
<label for="TargetUser">Target user:</label> | ||
<input type="text" id="TargetUser" /> | ||
</abp-column> | ||
</abp-row> | ||
<abp-row class="mt-2"> | ||
<abp-column> | ||
<label for="Message">Message:</label> | ||
<textarea id="Message" rows="4"></textarea> | ||
</abp-column> | ||
</abp-row> | ||
<abp-row class="mt-2"> | ||
<abp-column> | ||
<abp-button type="submit" id="SendMessageButton" button-type="Primary" size="Block" text="SEND!" /> | ||
</abp-column> | ||
</abp-row> | ||
</form> | ||
</abp-column> | ||
</abp-row> | ||
|
||
<div> | ||
Target user: <input type="text" id="TargetUser" /><br/> | ||
Message: <input type="text" id="Message" /><br /> | ||
<button id="SendMessageButton">Send</button> | ||
</div> |
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,16 @@ | ||
#MessageList { | ||
border: 1px solid gray; | ||
height: 400px; | ||
overflow: auto; | ||
list-style: none; | ||
padding-left: 0; | ||
padding: 10px; | ||
} | ||
|
||
#TargetUser { | ||
width: 100%; | ||
} | ||
|
||
#Message { | ||
width: 100%; | ||
} |
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