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.

33 lines
1.3 KiB

6 years ago
6 years ago
  1. <div class="narrow">
  2. <div class="jumbotron h-app h-x-app">
  3. <h1><img src="/images/quill-logo-144.png" height="72" style="margin-bottom: 13px;" class="u-logo p-name" alt="Quill">Quill</h1>
  4. <p class="tagline">Quill is a simple app for posting text notes to your website.</p>
  5. <? if(session('me')):
  6. if ( profile('photo') ) {
  7. ?> <img src="<?php echo profile('photo'); ?>" height="125" alt="Profile Image" />
  8. <?php }
  9. if ( profile('name') ) {
  10. ?> <p><?php echo profile('name'); ?></p>
  11. <?php }
  12. ?>
  13. <p>You're already signed in!<p>
  14. <p><a href="/dashboard" class="btn btn-primary">Continue</a></p>
  15. <? else: ?>
  16. <p>To use Quill, sign in with your domain. Your website will need to support <a href="https://indieweb.org/micropub">Micropub</a> for creating new posts.</p>
  17. <form action="/auth/start" method="get" class="form-inline">
  18. <input type="url" name="me" placeholder="https://example.com" value="" class="form-control" onchange="auto_prefix_url_field(this)" autofocus>
  19. <input type="submit" value="Sign In" class="btn btn-primary">
  20. <input type="hidden" name="client_id" value="<?= Config::$base_url ?>">
  21. <input type="hidden" name="redirect_uri" value="<?= Config::$base_url ?>auth/callback">
  22. </form>
  23. <? endif; ?>
  24. <a href="" class="u-url"></a>
  25. </div>
  26. </div>