index.html 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <link rel="stylesheet" href="https://transloadit.edgly.net/releases/uppy/v0.30.0/dist/uppy.css">
  5. <style>
  6. body {
  7. font-family: Roboto, Open Sans;
  8. background: #f4f5f6;
  9. }
  10. h1, h2, h3, h4, h5, h6 {
  11. font-family: Oxygen, Raleway, Open Sans;
  12. }
  13. header {
  14. width: 800px;
  15. margin: auto;
  16. }
  17. header h1 { text-align: center; }
  18. main {
  19. background: white;
  20. margin: auto;
  21. width: 800px;
  22. border: 2px solid #e8eaee;
  23. padding: 36px;
  24. border-radius: 5px;
  25. }
  26. main h2 { margin-top: 0 }
  27. label {
  28. display: flex;
  29. padding-bottom: 16px;
  30. border-bottom: 1px solid #e8eaee;
  31. margin-bottom: 16px;
  32. }
  33. .label-text {
  34. width: 25%;
  35. text-transform: uppercase;
  36. color: #888888;
  37. line-height: 34px;
  38. }
  39. label input, label textarea {
  40. flex-grow: 1;
  41. height: 34px;
  42. }
  43. label textarea {
  44. box-sizing: border-box;
  45. padding: 6px;
  46. border-radius: 5px;
  47. border: 1px solid #b7b7b4;
  48. font-family: Roboto, Open Sans;
  49. min-height: 160px;
  50. width: 100%;
  51. resize: vertical;
  52. }
  53. .form-createSnippet {
  54. border: 1px solid #2e6da4;
  55. border-bottom-width: 3px;
  56. padding: 8px;
  57. border-radius: 5px;
  58. background-color: #337ab7;
  59. color: white;
  60. width: 100%;
  61. }
  62. .mdtxt {
  63. width: 100%;
  64. height: 100%;
  65. }
  66. .mdtxt-controls {
  67. }
  68. .mdtxt-upload {
  69. box-sizing: border-box;
  70. width: 100%;
  71. border-radius: 0 0 5px 5px;
  72. border: 1px solid #b7b7b4;
  73. border-top-width: 0;
  74. padding: 4px 8px;
  75. cursor: pointer;
  76. }
  77. .mdtxt textarea {
  78. margin-bottom: 0;
  79. border-bottom-left-radius: 0;
  80. border-bottom-right-radius: 0;
  81. }
  82. .mdtxt-upload .error {
  83. border-color: red;
  84. color: red;
  85. }
  86. .mdtxt-upload .error .message {
  87. margin-right: 8px;
  88. }
  89. .snippet {
  90. margin-top: 25px;
  91. }
  92. </style>
  93. </head>
  94. <body>
  95. <header>
  96. <h1>Markdown Bin</h1>
  97. </header>
  98. <main>
  99. <form id="new">
  100. <h2>Create a new snippet</h2>
  101. <label>
  102. <span class="label-text">Snippet Title</span>
  103. <input type="text" name="title" placeholder="Snippet Title">
  104. </label>
  105. <label>
  106. <textarea name="snippet"></textarea>
  107. </label>
  108. <p>
  109. <button class="form-createSnippet" type="submit">
  110. Create
  111. </button>
  112. </p>
  113. </form>
  114. <div id="snippets"></div>
  115. </main>
  116. <template id="snippet">
  117. <div class="snippet">
  118. <h3 class="snippet-title"></h3>
  119. <div class="snippet-content"></div>
  120. </div>
  121. </template>
  122. <script src="bundle.js"></script>
  123. </body>
  124. </html>