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.

289 lines
11 KiB

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