Added UI principles.

This commit is contained in:
Martin Edenhofer 2017-01-04 12:12:39 +01:00
parent f4c411db19
commit 5779eb0855
3 changed files with 34 additions and 0 deletions

View file

@ -2193,6 +2193,16 @@ class TwitterConversationRef extends App.ControllerContent
App.Config.set( 'layout_ref/twitter_conversation', TwitterConversationRef, 'Routes' ) App.Config.set( 'layout_ref/twitter_conversation', TwitterConversationRef, 'Routes' )
class UI extends App.ControllerContent
constructor: ->
super
@render()
render: ->
@html App.view('layout_ref/ui')()
App.Config.set( 'layout_ref/ui', UI, 'Routes' )
class ChatToTicketRef extends App.ControllerContent class ChatToTicketRef extends App.ControllerContent
elements: elements:

View file

@ -3,6 +3,7 @@
<h1>Layout Reference</h1> <h1>Layout Reference</h1>
<ul> <ul>
<li><a href="#layout_ref/ui">UI principles</a></li>
<li><a href="#layout_ref/chat_to_ticket">💬 Chat to Ticket</a></li> <li><a href="#layout_ref/chat_to_ticket">💬 Chat to Ticket</a></li>
<li><a href="#layout_ref/twitter_conversation">Twitter Conversation</a></li> <li><a href="#layout_ref/twitter_conversation">Twitter Conversation</a></li>
<li><a href="#layout_ref/admin_loading">Admin Loading Screen</a></li> <li><a href="#layout_ref/admin_loading">Admin Loading Screen</a></li>

View file

@ -0,0 +1,23 @@
<div class="main flex">
<h1>Tiki</h1>
<% for state in ['supergood', 'good', 'ok', 'bad', 'super-bad']: %>
<%- @Icon("mood-#{state}", 'stat-icon mood-icon') %>
<% end %>
<hr>
<h1>Ticket traffic light colors</h1>
<%- @Icon("task-state", 'open') %>
<%- @Icon("task-state", 'pending') %>
<%- @Icon("task-state", 'escalating') %>
<%- @Icon("task-state", 'closed') %>
<hr>
<h1>Colors</h1>
</div>