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.

91 lines
2.0 KiB

8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
  1. <?php $this->layout('layout', ['title' => $title]); ?>
  2. <div class="column">
  3. <h1>X-Ray</h1>
  4. <div class="section url-form">
  5. <form class="" action="parse" method="get">
  6. <div class="field"><input type="url" name="url" placeholder="http://example.com"></div>
  7. <div class="field"><button type="submit" class="button" value="Go">Go</button></div>
  8. </form>
  9. </div>
  10. <div class="section html-form">
  11. <form class="" action="parse" method="post">
  12. <div class="field"><textarea name="html" rows="4" placeholder="HTML"></textarea></div>
  13. <div class="field"><input type="url" name="url" placeholder="http://example.com"></div>
  14. <div class="field"><input type="submit" class="button" value="Go"></div>
  15. </form>
  16. </div>
  17. <p class="help"><a href="https://github.com/aaronpk/XRay">Read Me</a>. Please <a href="https://github.com/aaronpk/XRay/issues">file an issue</a> if you encounter any issues.</p>
  18. </div>
  19. <style type="text/css">
  20. body {
  21. color: #212121;
  22. font-family: "Helvetica Neue", "Calibri Light", Roboto, sans-serif;
  23. -webkit-font-smoothing: antialiased;
  24. -moz-osx-font-smoothing: grayscale;
  25. }
  26. body {
  27. background-color: #e9e9e9;
  28. font-size: 16px;
  29. }
  30. h1 {
  31. padding-top: 6rem;
  32. padding-bottom: 1rem;
  33. text-align: center;
  34. }
  35. a {
  36. color: #4183c4;
  37. text-decoration: none;
  38. }
  39. .column {
  40. max-width: 450px;
  41. margin: 0 auto;
  42. }
  43. .section {
  44. border: 1px #ccc solid;
  45. border-radius: 6px;
  46. background: white;
  47. padding: 12px;
  48. margin-top: 2em;
  49. }
  50. .help {
  51. text-align: center;
  52. font-size: 0.9rem;
  53. }
  54. form .field {
  55. margin-bottom: .5rem;
  56. display: flex;
  57. }
  58. form input, form textarea, form button {
  59. width: 100%;
  60. border: 1px #ccc solid;
  61. border-radius: 4px;
  62. flex: 1 0;
  63. font-size: 1rem;
  64. }
  65. form input, form textarea {
  66. padding: .5rem;
  67. }
  68. form .button {
  69. background-color: #009c95;
  70. border: 0;
  71. border-radius: 4px;
  72. color: white;
  73. font-weight: bold;
  74. font-size: 1rem;
  75. cursor: pointer;
  76. padding: 0.5rem;
  77. }
  78. </style>