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.

282 lines
11 KiB

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