diff --git a/controllers/Controller.php b/controllers/Controller.php new file mode 100644 index 0000000..292caf2 --- /dev/null +++ b/controllers/Controller.php @@ -0,0 +1,14 @@ +setContent(view('index', [ + 'title' => 'Telegraph' + ])); + return $response; + } + +} diff --git a/lib/helpers.php b/lib/helpers.php new file mode 100644 index 0000000..c0c11f7 --- /dev/null +++ b/lib/helpers.php @@ -0,0 +1,6 @@ +render($template, $data); +} diff --git a/public/assets/telegraph-header.jpg b/public/assets/telegraph-header.jpg new file mode 100644 index 0000000..e8a2977 Binary files /dev/null and b/public/assets/telegraph-header.jpg differ diff --git a/public/index.php b/public/index.php new file mode 100644 index 0000000..710eab1 --- /dev/null +++ b/public/index.php @@ -0,0 +1,17 @@ +addRoute('GET', '/', 'Controller::index'); + + + +$dispatcher = $router->getDispatcher(); +$request = Request::createFromGlobals(); +$response = $dispatcher->dispatch($request->getMethod(), $request->getPathInfo()); +$response->send(); diff --git a/views/index.php b/views/index.php new file mode 100644 index 0000000..153bb49 --- /dev/null +++ b/views/index.php @@ -0,0 +1,289 @@ + + + + + + + + + + Telegraph + + + + + + + + + + + 'Home', + '/dashboard' => 'Dashboard', + '/api' => 'API', +]; +?> + + + + + + + + + +
+
+ +
+ +
+ +
+

+ Telegraph +

+

Easily send Webmentions from your website

+
Get Started
+
+ +
+ +
+
+
+
+

We send webmentions for you

+

Let Telegraph send webmentions for you. With a simple API, Telegraph will handle sending webmentions to other websites. Let Telegraph handle webmention discovery, and retrying on temporary failures. Telegraph will notify your site when a webmention was successfully sent.

+

Send webmentions automatically

+

You can even let Telegraph subscribe to your feed, and it will send webmentions whenever you publish a new post.

+
+
+ +
+
+
+
+ API Docs +
+
+
+
+ + + +
+
+

Send Webmentions with a Simple API

+

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 where to send the webmention and we'll take it from there.

+ Read More + +
+
+ + + +
+ + + +