Selaa lähdekoodia

add missing files

Daniel Sheffield 1 vuosi sitten
vanhempi
säilyke
988a1f0a64
2 muutettua tiedostoa jossa 61 lisäystä ja 0 poistoa
  1. 24 0
      app/rest/templates/clip-form.tpl
  2. 37 0
      app/rest/templates/paste.tpl

+ 24 - 0
app/rest/templates/clip-form.tpl

@@ -0,0 +1,24 @@
+% from app.data.filter import get_query_param
+% content = setdefault("content", "") or ""
+<form id="paste" method="{{ method }}" action="{{ action }}">
+  <style>
+  select::-webkit-scrollbar {
+  width: 11px;
+}
+textarea {
+  color: #cccccc;
+  background-color: #080808;
+  scrollbar-width: thin;
+  scrollbar-color: var(--thumbBG) var(--scrollbarBG);
+}
+textarea::-webkit-scrollbar-track {
+  background: var(--scrollbarBG);
+}
+textarea::-webkit-scrollbar-thumb {
+  background-color: var(--thumbBG) ;
+  border-radius: 6px;
+  border: 3px solid var(--scrollbarBG);
+}
+  </style>
+  <textarea style="width: 80%" id="paste-text-area" name="paste" rows="30">{{ content }}</textarea>
+</form>

+ 37 - 0
app/rest/templates/paste.tpl

@@ -0,0 +1,37 @@
+% link = setdefault("link", "") or ""
+<!DOCTYPE html>
+<html>
+  <head>
+    <style>
+html {
+  --scrollbarBG: #333333;
+  --thumbBG: #080808;
+}
+body {
+  background-color: #080808;
+  color: #cccccc;
+}
+    </style>
+    <title>Paste</title>
+    <meta name="viewport" content="width=device-width, initial-scale=1"/>
+    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/purecss@2.1.0/build/pure-min.css" integrity="sha384-yHIFVG6ClnONEA5yB5DJXfW2/KC173DIQrYoZMEtBvGzmf0PKiGyNEqe9N6BNDBH" crossorigin="anonymous"/>
+    <link rel="stylesheet" href="https://shandan.one/css/grids-responsive-min.css"/>
+    <link rel="stylesheet" href="https://shandan.one/css/responsive-visibility-collapse.css"/>
+  </head>
+  <body align="center" style="text-align: center">
+    <div class="pure-g">
+      % include('button-style')
+      <div class="pure-u-1">
+        <button class="button-resize pure-button" type="submit" form="paste"> Paste </button>
+      </div>
+      <div style="width: 100%; height: 1em"></div>
+      <div class="pure-u-1">
+        <a href="{{ link }}">{{ link }}</a>
+      </div>
+      <div style="width: 100%; height: 1em"></div>
+      <div class="pure-u-1">
+{{!form}}
+      </div>
+    </div>
+  </body>
+</html>