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.

307 lines
8.5 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 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. <?php if($user): ?>
  156. <a class="item" href="/dashboard">Dashboard</a>
  157. <?php else: ?>
  158. <a class="item" href="/login">Login</a>
  159. <?php endif; ?>
  160. </div>
  161. <!-- Page Contents -->
  162. <div class="pusher">
  163. <div class="ui inverted vertical masthead center aligned segment">
  164. <div class="ui container">
  165. <div class="ui large secondary inverted pointing menu">
  166. <a class="toc item">
  167. <i class="sidebar icon"></i>
  168. </a>
  169. <?php foreach($menu as $href=>$name): ?>
  170. <a class="item" href="<?= $href ?>"><?= $name ?></a>
  171. <?php endforeach; ?>
  172. <div class="right item">
  173. <?php if($user): ?>
  174. <a class="ui inverted button" href="/dashboard">Dashboard</a>
  175. <?php else: ?>
  176. <a class="ui inverted button" href="/login">Log in</a>
  177. <?php endif; ?>
  178. </div>
  179. </div>
  180. </div>
  181. <div class="ui text container">
  182. <h1 class="ui inverted header">
  183. Telegraph
  184. </h1>
  185. <h2>Easily send Webmentions from your website</h2>
  186. <a class="ui huge primary button" href="/login">Get Started <i class="right arrow icon"></i></a>
  187. </div>
  188. </div>
  189. <div class="ui vertical stripe segment">
  190. <div class="ui text container">
  191. <h3 class="ui header">We send webmentions for you</h3>
  192. <p>Instead of messing with the details 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>
  193. <a class="ui large button" href="/api">Read More</a>
  194. <!--
  195. <h4 class="ui horizontal header divider">
  196. Case Studies
  197. </h4>
  198. <h3 class="ui header">Did We Tell You About Our Bananas?</h3>
  199. <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>
  200. <a class="ui large button">I'm Still Quite Interested</a>
  201. -->
  202. </div>
  203. </div>
  204. <div class="ui vertical stripe segment">
  205. <div class="ui middle aligned stackable grid container">
  206. <div class="row">
  207. <div class="seven wide column">
  208. <img src="/assets/dashboard-screenshot.jpg" class="ui large bordered rounded image">
  209. </div>
  210. <div class="eight wide column">
  211. <h3 class="ui header">Webmentions at a glance</h3>
  212. <p>Sign in to quickly send webmentions from the Dashboard, and see the status of your previously sent webmentions.</p>
  213. <p>The status of each webmention can be viewed individually, so you can tell whether it worked or how it failed.</p>
  214. </div>
  215. </div>
  216. </div>
  217. </div>
  218. <div class="ui vertical stripe segment">
  219. <div class="ui middle aligned stackable grid container">
  220. <div class="row">
  221. <div class="eight wide column">
  222. <h3 class="ui header">Send Webmentions with a Simple API</h3>
  223. <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>
  224. <h3 class="ui header">Get updates on webmention delivery</h3>
  225. <p>With a simple web hook, Telegraph will notify your site when a webmention was successfully sent or if an error occurred.</p>
  226. <!--
  227. <h3 class="ui header">Send webmentions automatically</h3>
  228. <p>You can even let Telegraph subscribe to your feed, and it will send webmentions whenever you publish a new post.</p>
  229. -->
  230. </div>
  231. <div class="seven wide right floated column">
  232. <pre class="code"><code>
  233. POST /webmention HTTP/1.1
  234. Content-type: application/json
  235. {
  236. "source": "http://source.example.com/post/100",
  237. "target": "http://target.example.net/",
  238. "callback": "http://yoursite.example.org/webmention-status"
  239. "token": "xxxx"
  240. }
  241. </code></pre>
  242. </div>
  243. </div>
  244. <div class="row">
  245. <div class="center aligned column">
  246. <a class="ui huge button" href="/api">API Docs</a>
  247. </div>
  248. </div>
  249. </div>
  250. </div>
  251. <!--
  252. <div class="ui vertical stripe quote segment">
  253. <div class="ui equal width stackable internally celled grid">
  254. <div class="center aligned row">
  255. <div class="column">
  256. <h3>"Nice thing"</h3>
  257. <p>A quote by a nice person</p>
  258. </div>
  259. <div class="column">
  260. <h3>"This makes everything so much easier."</h3>
  261. <p>
  262. <img src="/assets/ben.jpg" class="ui avatar image"> <b>Ben</b> Chief Ben Officer
  263. </p>
  264. </div>
  265. </div>
  266. </div>
  267. </div>
  268. -->
  269. <? $this->insert('footer-block') ?>
  270. </div>
  271. </body>
  272. </html>