Captcha and design works.

Added captcha generation. As we're working without JS - there is no
possibility to reload image, only if user will reload whole web page.

Some design works - set monospace font for paste textarea (will
use system-defined default monospace font) and lowered font size
in paste views.
This commit is contained in:
2018-05-01 17:45:36 +05:00
parent 6150e3c1fd
commit 850fbb55ab
25 changed files with 11611 additions and 14 deletions

View File

@@ -1,3 +1,9 @@
#paste-contents {
font-family: monospace;
font-size: 0.9rem;
height: 90vh;
}
.paste-data {
font-size: 0.9rem;
}

View File

@@ -82,6 +82,16 @@
</div>
</div>
</div>
<div class="field">
<label for="paste-captcha">Captcha:</label>
<div class="control">
<p>
<img id=image src="/captcha/{captchaString}.png" alt="Captcha image">
</p>
<input class="input" type="text" placeholder="Captcha solution" name="paste-captcha-solution" id="paste-captcha-solution">
<input class="input is-hidden" type="text" name="paste-captcha-id" id="paste-captcha-id" readonly value="{captchaString}">
</div>
</div>
<div class="field">
<div class="control">
<input class="button is-success" type="submit" value="Paste!">

View File

@@ -32,7 +32,7 @@
</div>
</div>
</nav>
<section class="section">
<section class="section paste-data">
{pastedata}
</section>
</body>