made UI more consistent, fixed a bug
This commit is contained in:
parent
80a8314213
commit
65aac63eeb
6 changed files with 87 additions and 22 deletions
2
.env
2
.env
|
@ -1,4 +1,4 @@
|
||||||
PLAKKEN_LISTEN=:3000
|
PLAKKEN_LISTEN=:5000
|
||||||
PLAKKEN_REDIS_ADDRESS=localhost:6379
|
PLAKKEN_REDIS_ADDRESS=localhost:6379
|
||||||
PLAKKEN_REDIS_USER=
|
PLAKKEN_REDIS_USER=
|
||||||
PLAKKEN_REDIS_PASSWORD=
|
PLAKKEN_REDIS_PASSWORD=
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
$accent: #d30f45;
|
$accent: #d30f45;
|
||||||
$background: #09090b;
|
$background: #0f0f0f;
|
||||||
$border: #363636;
|
$border: #363636;
|
||||||
$text: #f2f2f7;
|
$text: #e5e5e7;
|
||||||
$placeholder: #888;
|
$placeholder: #888;
|
|
@ -21,7 +21,7 @@ body {
|
||||||
|
|
||||||
#line-numbers,
|
#line-numbers,
|
||||||
#content {
|
#content {
|
||||||
font: 400 15px/1.6 "JetBrains Mono", monospace;
|
font: 400 14px/1.6 "JetBrains Mono", monospace;
|
||||||
}
|
}
|
||||||
|
|
||||||
#line-numbers {
|
#line-numbers {
|
||||||
|
@ -83,6 +83,7 @@ select {
|
||||||
|
|
||||||
select {
|
select {
|
||||||
padding: 8px 10px;
|
padding: 8px 10px;
|
||||||
|
width: fit-content;
|
||||||
}
|
}
|
||||||
|
|
||||||
select:focus {
|
select:focus {
|
||||||
|
@ -108,4 +109,3 @@ textarea {
|
||||||
outline: none;
|
outline: none;
|
||||||
resize: none;
|
resize: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ function updateLn() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateTitle() {
|
function updateTitle() {
|
||||||
document.title = filenameSelector.value == '' ? 'New paste' : ` *${filenameSelector.value} - Plakken`;
|
document.title = filenameSelector.value == '' ? 'New paste' : ` ${filenameSelector.value} (Unsaved) - Plakken`;
|
||||||
}
|
}
|
||||||
|
|
||||||
function getRecentPlaksFromStorage() {
|
function getRecentPlaksFromStorage() {
|
||||||
|
|
64
static/index.html
Normal file
64
static/index.html
Normal file
|
@ -0,0 +1,64 @@
|
||||||
|
<!doctype html>
|
||||||
|
<html lang="en">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta content="Plakken, paste, pastebin" name="keywords">
|
||||||
|
<meta content="Plakken is a simple open-source paste service where you can store text for a set period of time."
|
||||||
|
name="description">
|
||||||
|
<meta content="Gnous EU" name="author">
|
||||||
|
<meta content="width=device-width, initial-scale=1.0" name="viewport">
|
||||||
|
<link href="/static/favicon.svg" rel="icon">
|
||||||
|
<title>New paste</title>
|
||||||
|
<link href="/static/style.css" rel="stylesheet">
|
||||||
|
<script async src="/static/app.js"></script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<form class="fr" method="post">
|
||||||
|
<div id="line-numbers">1</div>
|
||||||
|
<label for="content"><textarea autofocus id="content" name="content"
|
||||||
|
placeholder="Type your paste here"></textarea></label>
|
||||||
|
</form>
|
||||||
|
<div class="menu fr">
|
||||||
|
<label for="filename"><input id="filename" name="filename" placeholder="Filename" type="text"></label>
|
||||||
|
<!--<label for="password"><input id="password" placeholder="Password" type="password"></label>-->
|
||||||
|
<label for="exp"><input id="exp" name="exp" placeholder="Expiration (1d1h1m1s)" type="text"></label>
|
||||||
|
<label for="type">
|
||||||
|
<select id="type" name="type">zz
|
||||||
|
<option value="c">C/C++</option>
|
||||||
|
<option value="csharp">C#</option>
|
||||||
|
<option value="css">CSS</option>
|
||||||
|
<option value="go">Go</option>
|
||||||
|
<option value="java">Java</option>
|
||||||
|
<option value="js">Javascript</option>
|
||||||
|
<option value="html">HTML</option>
|
||||||
|
<option selected value="pt">Plaintext</option>
|
||||||
|
<option value="py">Python</option>
|
||||||
|
<option value="rb">Ruby</option>
|
||||||
|
<option value="rs">Rust</option>
|
||||||
|
<option value="sh">Shell</option>
|
||||||
|
<option value="sql">SQL</option>
|
||||||
|
<option value="ts">Typescript</option>
|
||||||
|
<option value="xml">XML</option>
|
||||||
|
<option value="yml">YAML</option>
|
||||||
|
</select>
|
||||||
|
</label>
|
||||||
|
<button title="Save plak" type="submit">
|
||||||
|
<svg viewBox="0 0 24 24">
|
||||||
|
<line x1="22" y1="2" x2="11" y2="13"></line>
|
||||||
|
<polygon points="22 2 15 22 11 13 2 9 22 2"></polygon>
|
||||||
|
</svg>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<section id="recent-plaks">
|
||||||
|
<div class="title fr">
|
||||||
|
<h3>Recent plaks</h2>
|
||||||
|
<svg viewBox="0 0 24 24" width="32" height="32" stroke="currentColor" stroke-width="2.5">
|
||||||
|
<polyline points="6 9 12 15 18 9"></polyline>
|
||||||
|
</svg>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
|
@ -36,7 +36,7 @@ section#recent-plaks .recent-plak svg {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
height: 22px;
|
height: 22px;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
stroke: #f2f2f7;
|
stroke: #e5e5e7;
|
||||||
stroke-width: 2.25;
|
stroke-width: 2.25;
|
||||||
width: 22px;
|
width: 22px;
|
||||||
transition: 0.1s ease-in-out;
|
transition: 0.1s ease-in-out;
|
||||||
|
@ -58,7 +58,7 @@ h3 {
|
||||||
|
|
||||||
::selection {
|
::selection {
|
||||||
background-color: #d30f45;
|
background-color: #d30f45;
|
||||||
color: #f2f2f7;
|
color: #e5e5e7;
|
||||||
}
|
}
|
||||||
|
|
||||||
::-webkit-scrollbar {
|
::-webkit-scrollbar {
|
||||||
|
@ -66,7 +66,7 @@ h3 {
|
||||||
}
|
}
|
||||||
|
|
||||||
::-webkit-scrollbar-track {
|
::-webkit-scrollbar-track {
|
||||||
background-color: #09090b;
|
background-color: #0f0f0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
::-webkit-scrollbar-thumb {
|
::-webkit-scrollbar-thumb {
|
||||||
|
@ -75,12 +75,12 @@ h3 {
|
||||||
}
|
}
|
||||||
|
|
||||||
::-webkit-scrollbar-thumb:hover {
|
::-webkit-scrollbar-thumb:hover {
|
||||||
background-color: #f2f2f7;
|
background-color: #e5e5e7;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
background-color: #09090b;
|
background-color: #0f0f0f;
|
||||||
color: #f2f2f7;
|
color: #e5e5e7;
|
||||||
font: 400 16px/2 "Inter", "system-ui", sans-serif;
|
font: 400 16px/2 "Inter", "system-ui", sans-serif;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
|
@ -93,7 +93,7 @@ body {
|
||||||
|
|
||||||
#line-numbers,
|
#line-numbers,
|
||||||
#content {
|
#content {
|
||||||
font: 400 15px/1.6 "JetBrains Mono", monospace;
|
font: 400 14px/1.6 "JetBrains Mono", monospace;
|
||||||
}
|
}
|
||||||
|
|
||||||
#line-numbers {
|
#line-numbers {
|
||||||
|
@ -105,7 +105,7 @@ body {
|
||||||
}
|
}
|
||||||
|
|
||||||
#content {
|
#content {
|
||||||
color: #f2f2f7;
|
color: #e5e5e7;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
min-height: 90vh;
|
min-height: 90vh;
|
||||||
padding: 16px 16px 0 16px;
|
padding: 16px 16px 0 16px;
|
||||||
|
@ -123,16 +123,16 @@ body {
|
||||||
height: 24px;
|
height: 24px;
|
||||||
fill: none;
|
fill: none;
|
||||||
margin-bottom: -6px;
|
margin-bottom: -6px;
|
||||||
stroke: #f2f2f7;
|
stroke: #e5e5e7;
|
||||||
stroke-width: 2;
|
stroke-width: 2;
|
||||||
width: 24px;
|
width: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
input,
|
input,
|
||||||
select {
|
select {
|
||||||
background-color: #09090b;
|
background-color: #0f0f0f;
|
||||||
border: 2px solid #363636;
|
border: 2px solid #363636;
|
||||||
color: #f2f2f7;
|
color: #e5e5e7;
|
||||||
font: 500 14px/2 "Inter", "system-ui", sans-serif;
|
font: 500 14px/2 "Inter", "system-ui", sans-serif;
|
||||||
outline: none;
|
outline: none;
|
||||||
padding: 3px 10px;
|
padding: 3px 10px;
|
||||||
|
@ -154,20 +154,21 @@ select:focus-visible {
|
||||||
|
|
||||||
select {
|
select {
|
||||||
padding: 8px 10px;
|
padding: 8px 10px;
|
||||||
|
width: fit-content;
|
||||||
}
|
}
|
||||||
|
|
||||||
select:focus {
|
select:focus {
|
||||||
background-color: #09090b;
|
background-color: #0f0f0f;
|
||||||
transition: none;
|
transition: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
option {
|
option {
|
||||||
background-color: #09090b;
|
background-color: #0f0f0f;
|
||||||
color: #f2f2f7;
|
color: #e5e5e7;
|
||||||
}
|
}
|
||||||
option:focus {
|
option:focus {
|
||||||
background-color: #d30f45;
|
background-color: #d30f45;
|
||||||
color: #09090b;
|
color: #0f0f0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
button,
|
button,
|
||||||
|
|
Loading…
Reference in a new issue