Mirror of Quill
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.

36 lines
1.6 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. <?php if(session('me')): ?>
  6. <?php if(profile('photo')): ?>
  7. <img src="<?= profile('photo'); ?>" height="125" alt="Profile Image" style="border: 1px #bbb solid; border-radius: 12px;" />
  8. <?php endif ?>
  9. <?php if(profile('name')): ?>
  10. <p>Signed in as: <?= htmlspecialchars(profile('name')); ?></p>
  11. <?php endif ?>
  12. <?php if(!profile('name') && !profile('photo')): ?>
  13. <p>You're already signed in!</p>
  14. <?php endif ?>
  15. <p><a href="/dashboard" class="btn btn-primary">Continue</a></p>
  16. <?php else: ?>
  17. <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>
  18. <form action="/auth/start" method="get" class="form-inline">
  19. <input type="url" name="me" placeholder="https://example.com" value="" class="form-control" onchange="auto_prefix_url_field(this)" autofocus>
  20. <input type="submit" value="Sign In" class="btn btn-primary">
  21. <input type="hidden" name="client_id" value="<?= Config::$base_url ?>">
  22. <input type="hidden" name="redirect_uri" value="<?= Config::$base_url ?>auth/callback">
  23. </form>
  24. <?php endif; ?>
  25. <a href="" class="u-url"></a>
  26. </div>
  27. <script src="/js/register-sw.js"></script>
  28. </div>