You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

274 lines
10 KiB

11 years ago
  1. ---
  2. layout : 'default'
  3. css : 'index'
  4. title : 'Introduction'
  5. type : 'Semantic'
  6. ---
  7. <% uiElements = @getCollection("uiElements").toJSON() %>
  8. <% uiCollections = @getCollection("uiCollections").toJSON() %>
  9. <% uiViews = @getCollection("uiViews").toJSON() %>
  10. <% uiModules = @getCollection("uiModules").toJSON() %>
  11. <script src="/javascript/home.js"></script>
  12. <div class="masthead segment">
  13. <div class="ui page grid">
  14. <div class="column">
  15. <div class="introduction">
  16. <h1 class="ui header">Semantic UI <a class="ui black label" href="https://github.com/jlukic/Semantic-UI/blob/master/RELEASE%20NOTES.md">0.10.1</a></h1>
  17. <h2 class="ui header">UI is the vocabulary of the web.</h2>
  18. <p>Semantic empowers designers and developers by creating a language for sharing UI.</p>
  19. <a class="ui black large labeled launch icon button"><i class="icon list layout"></i> View UI</a>
  20. <a class="ui red large labeled icon button" href="build/semantic.zip"><i class="awesome download cloud icon"></i> Download</a>
  21. </div>
  22. <div class="inverted advertisement">
  23. <% unless 'development' in @getEnvironments(): %>
  24. <div id="carbonads-container"><div class="carbonad"><div id="azcarbon"></div><script type="text/javascript">var z = document.createElement("script"); z.type = "text/javascript"; z.async = true; z.src = "http://engine.carbonads.com/z/51619/azcarbon_2_1_0_VERTDARK"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(z, s);</script></div></div>
  25. <% end %>
  26. </div>
  27. </div>
  28. </div>
  29. </div>
  30. <div class="stripe">
  31. <div class="ui page grid">
  32. <div class="ui column">
  33. <h2 class="ui header">
  34. <i class="circular emphasized book icon"></i>
  35. <div class="content">
  36. Lose the Hieroglyphics
  37. <div class="sub header">Semantic is structured around natural language conventions to make development more intuitive.
  38. </div>
  39. </div>
  40. </h2>
  41. <div class="ui message">
  42. Semantic is tag ambivalent meaning you can use <a href="https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/HTML5/HTML5_element_list" target="_blank">any html tags</a> with UI elements.
  43. </div>
  44. <div class="ui stackable two column grid">
  45. <div class="column">
  46. <a class="ui teal label" href="/collections/grid.html">Semantic</a>
  47. <div class="code" data-type="html">
  48. <main class="ui three column grid">
  49. <aside class="column">1</aside>
  50. <section class="column">2</section>
  51. <section class="column">3</section>
  52. </main>
  53. </div>
  54. </div>
  55. <div class="column">
  56. <div class="ui black label">Bootstrap</div>
  57. <div class="code" data-type="html">
  58. <div class="row">
  59. <div class="col-lg-4">1</div>
  60. <div class="col-lg-4">2</div>
  61. <div class="col-lg-4">3</div>
  62. </div>
  63. </div>
  64. </div>
  65. <div class="column">
  66. <a class="ui teal label" href="/collections/menu.html">Semantic</a>
  67. <div class="code" data-type="html">
  68. <nav class="ui menu">
  69. <h3 class="header item">Title</h3>
  70. <a class="active item">Home</a>
  71. <a class="item">Link</a>
  72. <a class="item">Link</a>
  73. <span class="right floated text item">
  74. Signed in as <a href="#">user</a>
  75. </span>
  76. </nav>
  77. </div>
  78. </div>
  79. <div class="column">
  80. <div class="ui black label">Bootstrap</div>
  81. <div class="code" data-type="html">
  82. <div class="navbar">
  83. <a class="navbar-brand" href="#">Title</a>
  84. <ul class="nav navbar-nav">
  85. <li class="active"><a href="#">Home</a></li>
  86. <li><a href="#">Link</a></li>
  87. <li><a href="#">Link</a></li>
  88. <p class="navbar-text pull-right">Signed in as <a href="#" class="navbar-link">User</a></p>
  89. </ul>
  90. </div>
  91. </div>
  92. </div>
  93. <div class="column">
  94. <a class="ui teal label" href="/elements/button.html">Semantic</a>
  95. <div class="code" data-type="html">
  96. <button class="large ui button">
  97. <i class="heart icon"></i>
  98. Like it
  99. </button>
  100. </div>
  101. </div>
  102. <div class="column">
  103. <div class="ui black label">Bootstrap</div>
  104. <div class="code" data-type="html">
  105. <button type="button" class="btn btn-primary btn-lg">
  106. <span class="glyphicon glyphicon-heart"></span>
  107. Like
  108. </button>
  109. </div>
  110. </div>
  111. </div>
  112. </div>
  113. </div>
  114. </div>
  115. <div class="dark stripe">
  116. <div class="ui page grid">
  117. <div class="column">
  118. <h2 class="ui huge inverted center aligned icon header">
  119. <i class="circular emphasized inverted teal chat outline icon"></i>
  120. <div class="content">Have a conversation with your components<div class="sub header">Semantic gives you a variety of UI components with real-time debug output, letting your code tell you what its doing.</div>
  121. </div>
  122. </h2>
  123. <div class="ui inverted horizontal section divider">
  124. <i class="circular heart icon"></i>
  125. </div>
  126. <div class="ui stackable grid" data-demo="true">
  127. <div class="row">
  128. <div class="ten wide column">
  129. <div class="ui teal header">Open up your web console.</div>
  130. <p>Semantic provides tracing for javascript behavior so your components can tell you what they're doing as they do it.</p>
  131. <div class="code" data-type="javascript" data-demo="true">
  132. $('.kitten.image')
  133. .transition('scale in')
  134. .transition('tada', '800ms')
  135. ;
  136. </div>
  137. <!-- <div class="ui raised segment">
  138. <div class="ui black top attached label">Console</div>
  139. <pre class="console"></pre>
  140. </div> -->
  141. <a href="module.html" class="ui teal right labeled button">Learn about modules <i class="right arrow icon"></i></a>
  142. </div>
  143. <div class="five wide right floated column">
  144. <img src="/images/cat.png" class="ui kitten image">
  145. </div>
  146. </div>
  147. </div>
  148. </div>
  149. </div>
  150. </div>
  151. <div class="stripe" style="display:none">
  152. <h2 class="ui center aligned icon header">
  153. <i class="circular emphasized lab icon"></i>
  154. <div class="content">
  155. Alter Designs Effortlessly
  156. <div class="sub header">Redesign without lifting a finger
  157. </div>
  158. </div>
  159. </h2>
  160. <div class="ui page grid">
  161. <div class="column">
  162. <h3 class="ui header">Let's create some tabs</h3>
  163. <div class="code" data-preview="true" data-type="html">
  164. <div class="ui menu">
  165. <div class="header item">Site.com</div>
  166. <a class="item">Browse</a>
  167. <a class="active item">Search</a>
  168. <a class="item">Help</a>
  169. </div>
  170. <div class="ui segment">
  171. <p>Tab content</p>
  172. </div>
  173. </div>
  174. <div class="ui divider"></div>
  175. <h3 class="ui header">Hmm maybe it should point to the content below it</h3>
  176. <div class="code" data-preview="true" data-type="html">
  177. <div class="ui pointing menu">
  178. <div class="header item">Site.com</div>
  179. <a class="item">Home</a>
  180. <a class="active item">About</a>
  181. <a class="item">Contact</a>
  182. </div>
  183. <div class="ui segment">
  184. <p>Tab content</p>
  185. </div>
  186. </div>
  187. </div>
  188. </div>
  189. </div>
  190. <div class="final stripe" >
  191. <div class="ui page grid">
  192. <div class="column">
  193. <h2 class="ui center aligned icon header">
  194. <i class="circular emphasized users icon"></i>
  195. <div class="content">Growing Everyday
  196. <div class="sub header">New UI components are written everyday. Check back soon to see more.</div>
  197. </div>
  198. </h2>
  199. <div class="ui horizontal divider">
  200. <i class="circular heart icon"></i>
  201. </div>
  202. <div class="ui stackable grid" data-demo="true">
  203. <div class="four column center aligned row">
  204. <div class="column">
  205. <div class="ui stacked segment">
  206. <div class="ui statistic">
  207. <div class="number"><%= uiElements.length %></div>
  208. <div class="description">UI Elements</div>
  209. </div>
  210. <div class="ui divided selection list">
  211. <% for element in uiElements: %>
  212. <a class="item" href="<%= element.url %>"><%= element.title %></a>
  213. <% end %>
  214. </div>
  215. </div>
  216. </div>
  217. <div class="column">
  218. <div class="ui stacked segment">
  219. <div class="ui statistic">
  220. <div class="number"><%= uiCollections.length %></div>
  221. <div class="description">UI Collections</div>
  222. </div>
  223. <div class="ui divided selection list">
  224. <% for element in uiCollections: %>
  225. <a class="item" href="<%= element.url %>"><%= element.title %></a>
  226. <% end %>
  227. </div>
  228. </div>
  229. </div>
  230. <div class="column">
  231. <div class="ui stacked segment">
  232. <div class="ui statistic">
  233. <div class="number"><%= uiViews.length %></div>
  234. <div class="description">UI Views</div>
  235. </div>
  236. <div class="ui divided selection list">
  237. <% for element in uiViews: %>
  238. <a class="item" href="<%= element.url %>"><%= element.title %></a>
  239. <% end %>
  240. </div>
  241. </div>
  242. </div>
  243. <div class="column">
  244. <div class="ui stacked segment">
  245. <div class="ui statistic">
  246. <div class="number"><%= uiModules.length %></div>
  247. <div class="description">UI Modules</div>
  248. </div>
  249. <div class="ui divided selection list">
  250. <% for element in uiModules: %>
  251. <a class="item" href="<%= element.url %>"><%= element.title %></a>
  252. <% end %>
  253. </div>
  254. </div>
  255. </div>
  256. </div>
  257. </div>
  258. </div>
  259. </div>
  260. </div>
  261. <div class="ui divider"></div>
  262. <div class="ui divided horizontal footer link list">
  263. <div class="item">jack lukic 2013</div>
  264. <a href="https://github.com/jlukic/Semantic-UI" class="item">Github</a>
  265. <div class="item">
  266. Made possibly by <a href="http://www.quirky.com" target="_blank">Quirky.com</a>
  267. </div>
  268. <div class="item">
  269. Tested with <a href="http://www.browserstack.com" target="_blank">Browser Stack</a>
  270. </div>
  271. </div>