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.

299 lines
8.3 KiB

9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <!-- Standard Meta -->
  5. <meta charset="utf-8" />
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
  8. <!-- Site Properities -->
  9. <title>Telegraph</title>
  10. <link rel="stylesheet" type="text/css" href="/semantic-ui/semantic.min.css">
  11. <style type="text/css">
  12. .hidden.menu {
  13. display: none;
  14. }
  15. .masthead.segment {
  16. min-height: 700px;
  17. padding: 1em 0em;
  18. }
  19. .masthead .logo.item img {
  20. margin-right: 1em;
  21. }
  22. .masthead .ui.menu .ui.button {
  23. margin-left: 0.5em;
  24. }
  25. .masthead h1.ui.header {
  26. margin-top: 3em;
  27. margin-bottom: 0em;
  28. font-size: 4em;
  29. font-weight: normal;
  30. }
  31. .masthead h2 {
  32. font-size: 1.7em;
  33. font-weight: normal;
  34. }
  35. .ui.vertical.stripe {
  36. padding: 8em 0em;
  37. }
  38. .ui.vertical.stripe h3 {
  39. font-size: 2em;
  40. }
  41. .ui.vertical.stripe .button + h3,
  42. .ui.vertical.stripe p + h3 {
  43. margin-top: 3em;
  44. }
  45. .ui.vertical.stripe .floated.image {
  46. clear: both;
  47. }
  48. .ui.vertical.stripe p {
  49. font-size: 1.33em;
  50. }
  51. .ui.vertical.stripe .horizontal.divider {
  52. margin: 3em 0em;
  53. }
  54. .quote.stripe.segment {
  55. padding: 0em;
  56. }
  57. .quote.stripe.segment .grid .column {
  58. padding-top: 5em;
  59. padding-bottom: 5em;
  60. }
  61. .footer.segment {
  62. padding: 5em 0em;
  63. }
  64. .secondary.pointing.menu .toc.item {
  65. display: none;
  66. }
  67. @media only screen and (max-width: 700px) {
  68. .ui.fixed.menu {
  69. display: none !important;
  70. }
  71. .secondary.pointing.menu .item,
  72. .secondary.pointing.menu .menu {
  73. display: none;
  74. }
  75. .secondary.pointing.menu .toc.item {
  76. display: block;
  77. }
  78. .masthead.segment {
  79. min-height: 350px;
  80. }
  81. .masthead h1.ui.header {
  82. font-size: 2em;
  83. margin-top: 1.5em;
  84. }
  85. .masthead h2 {
  86. margin-top: 0.5em;
  87. font-size: 1.5em;
  88. }
  89. }
  90. .ui.inverted.segment.masthead {
  91. background-image: url(/assets/telegraph-header.jpg);
  92. background-position: center;
  93. }
  94. .ui.secondary.inverted.pointing.menu, .ui.secondary.pointing.menu {
  95. border: 0;
  96. }
  97. pre.code {
  98. padding: 8px 12px;
  99. border-radius: 4px;
  100. border: 1px #ddd solid;
  101. background-color: rgba(248,246,255,1);
  102. font-size: 0.9em;
  103. }
  104. </style>
  105. <script src="/assets/jquery-1.11.3.min.js"></script>
  106. <script src="/semantic-ui/semantic.min.js"></script>
  107. <script>
  108. $(document)
  109. .ready(function() {
  110. // fix menu when passed
  111. $('.masthead')
  112. .visibility({
  113. once: false,
  114. onBottomPassed: function() {
  115. $('.fixed.menu').transition('fade in');
  116. },
  117. onBottomPassedReverse: function() {
  118. $('.fixed.menu').transition('fade out');
  119. }
  120. })
  121. ;
  122. // create sidebar and attach to menu open
  123. $('.ui.sidebar')
  124. .sidebar('attach events', '.toc.item')
  125. ;
  126. })
  127. ;
  128. </script>
  129. </head>
  130. <body>
  131. <?php
  132. $menu = [
  133. '/' => 'Home',
  134. '/api' => 'API',
  135. ];
  136. ?>
  137. <!-- Following Menu -->
  138. <div class="ui large top fixed hidden menu">
  139. <div class="ui container">
  140. <?php foreach($menu as $href=>$name): ?>
  141. <a class="item" href="<?= $href ?>"><?= $name ?></a>
  142. <?php endforeach; ?>
  143. <div class="right menu">
  144. <div class="item">
  145. <a class="ui button" href="/login">Log in</a>
  146. </div>
  147. </div>
  148. </div>
  149. </div>
  150. <!-- Sidebar Menu -->
  151. <div class="ui vertical inverted sidebar menu">
  152. <?php foreach($menu as $href=>$name): ?>
  153. <a class="item" href="<?= $href ?>"><?= $name ?></a>
  154. <?php endforeach; ?>
  155. <a class="item" href="/login">Login</a>
  156. </div>
  157. <!-- Page Contents -->
  158. <div class="pusher">
  159. <div class="ui inverted vertical masthead center aligned segment">
  160. <div class="ui container">
  161. <div class="ui large secondary inverted pointing menu">
  162. <a class="toc item">
  163. <i class="sidebar icon"></i>
  164. </a>
  165. <?php foreach($menu as $href=>$name): ?>
  166. <a class="item" href="<?= $href ?>"><?= $name ?></a>
  167. <?php endforeach; ?>
  168. <div class="right item">
  169. <a class="ui inverted button" href="/login">Log in</a>
  170. </div>
  171. </div>
  172. </div>
  173. <div class="ui text container">
  174. <h1 class="ui inverted header">
  175. Telegraph
  176. </h1>
  177. <h2>Easily send Webmentions from your website</h2>
  178. <a class="ui huge primary button" href="/login">Get Started <i class="right arrow icon"></i></a>
  179. </div>
  180. </div>
  181. <div class="ui vertical stripe segment">
  182. <div class="ui text container">
  183. <h3 class="ui header">We send webmentions for you</h3>
  184. <p>Instead of doing the hard work of sending webmentions yourself, we have a simple API that will handle endpoint discovery, gracefully handle failures and retries, and will let you know whether a webmention was successfully sent. All you have to do is tell us the page you want to send the webmention to and we'll take it from there.</p>
  185. <a class="ui large button" href="/api">Read More</a>
  186. <!--
  187. <h4 class="ui horizontal header divider">
  188. Case Studies
  189. </h4>
  190. <h3 class="ui header">Did We Tell You About Our Bananas?</h3>
  191. <p>Yes I know you probably disregarded the earlier boasts as non-sequitor filler content, but its really true. It took years of gene splicing and combinatory DNA research, but our bananas can really dance.</p>
  192. <a class="ui large button">I'm Still Quite Interested</a>
  193. -->
  194. </div>
  195. </div>
  196. <div class="ui vertical stripe segment">
  197. <div class="ui middle aligned stackable grid container">
  198. <div class="row">
  199. <div class="seven wide column">
  200. <img src="/assets/dashboard-screenshot.jpg" class="ui large bordered rounded image">
  201. </div>
  202. <div class="eight wide column">
  203. <h3 class="ui header">Webmentions at a glance</h3>
  204. <p>Sign in to quickly send webmentions from the Dashboard, and see the status of your previously sent webmentions.</p>
  205. <p>The status of each webmention can be viewed individually, so you can tell whether it worked or how it failed.</p>
  206. </div>
  207. </div>
  208. </div>
  209. </div>
  210. <div class="ui vertical stripe segment">
  211. <div class="ui middle aligned stackable grid container">
  212. <div class="row">
  213. <div class="eight wide column">
  214. <h3 class="ui header">Send Webmentions with a Simple API</h3>
  215. <p>Let Telegraph send webmentions for you. With a simple API, Telegraph will handle sending webmentions to other websites. Let us handle webmention endpoint discovery and handling failures.</p>
  216. <h3 class="ui header">Get updates on webmention delivery</h3>
  217. <p>With a simple web hook, Telegraph will notify your site when a webmention was successfully sent or if an error occurred.</p>
  218. <!--
  219. <h3 class="ui header">Send webmentions automatically</h3>
  220. <p>You can even let Telegraph subscribe to your feed, and it will send webmentions whenever you publish a new post.</p>
  221. -->
  222. </div>
  223. <div class="seven wide right floated column">
  224. <pre class="code"><code>
  225. POST /webmention HTTP/1.1
  226. Content-type: application/json
  227. {
  228. "source": "http://source.example.com/post/100",
  229. "target": "http://target.example.net/",
  230. "callback": "http://yoursite.example.org/webmention-status"
  231. "token": "xxxx"
  232. }
  233. </code></pre>
  234. </div>
  235. </div>
  236. <div class="row">
  237. <div class="center aligned column">
  238. <a class="ui huge button" href="/api">API Docs</a>
  239. </div>
  240. </div>
  241. </div>
  242. </div>
  243. <!--
  244. <div class="ui vertical stripe quote segment">
  245. <div class="ui equal width stackable internally celled grid">
  246. <div class="center aligned row">
  247. <div class="column">
  248. <h3>"Nice thing"</h3>
  249. <p>A quote by a nice person</p>
  250. </div>
  251. <div class="column">
  252. <h3>"This makes everything so much easier."</h3>
  253. <p>
  254. <img src="/assets/ben.jpg" class="ui avatar image"> <b>Ben</b> Chief Ben Officer
  255. </p>
  256. </div>
  257. </div>
  258. </div>
  259. </div>
  260. -->
  261. <? $this->insert('footer-block') ?>
  262. </div>
  263. </body>
  264. </html>