Compare commits
No commits in common. "2d84849f3e7b848eba23d39aee86c1c861a3aa42" and "693ac02c9d810a2ee5f2e2e538be71f12cb59c75" have entirely different histories.
2d84849f3e
...
693ac02c9d
4 changed files with 32 additions and 65 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -17,4 +17,3 @@ plakken
|
|||
|
||||
# Go workspace file
|
||||
go.work
|
||||
.idea/discord.xml
|
||||
|
|
8
go.sum
8
go.sum
|
@ -1,8 +0,0 @@
|
|||
github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44=
|
||||
github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
|
||||
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f h1:lO4WD4F/rVNCu3HqELle0jiPLLBs70cWOduZpkS1E78=
|
||||
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f/go.mod h1:cuUVRXasLTGF7a8hSLbxyZXjz+1KgoB3wDUb6vlszIc=
|
||||
github.com/joho/godotenv v1.5.1 h1:7eLL/+HRGLY0ldzfGMeQkb7vMd0as4CfYvUVzLqw0N0=
|
||||
github.com/joho/godotenv v1.5.1/go.mod h1:f4LDr5Voq0i2e/R5DDNOoa2zzDfwtkZa6DnEwAbqwq4=
|
||||
github.com/redis/go-redis/v9 v9.2.1 h1:WlYJg71ODF0dVspZZCpYmoF1+U1Jjk9Rwd7pq6QmlCg=
|
||||
github.com/redis/go-redis/v9 v9.2.1/go.mod h1:hdY0cQFCN4fnSYT6TkisLufl/4W5UIXyv0b/CLO2V2M=
|
|
@ -2,19 +2,16 @@
|
|||
<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 store text for a set period of time."
|
||||
name="description">
|
||||
<meta content="Plakken" name="author">
|
||||
<meta content="width=device-width, initial-scale=1.0" name="viewport">
|
||||
<meta content="width=device-width, user-scalable=no, initial-scale=1.0"
|
||||
name="viewport">
|
||||
<meta content="ie=edge" http-equiv="X-UA-Compatible">
|
||||
<title>New plak • Plakken</title>
|
||||
<link href="style.css" rel="stylesheet">
|
||||
<title>Your plak • Plakken</title>
|
||||
<link href="/static/style.css" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<form method="post">
|
||||
<label for="content"></label>
|
||||
<textarea autofocus id="content" name="content" placeholder="Your paste here"></textarea>
|
||||
<textarea id="content" name="content" placeholder="Your paste here"></textarea>
|
||||
<nav>
|
||||
<ul>
|
||||
<li>
|
||||
|
@ -26,29 +23,13 @@
|
|||
<li>
|
||||
<label for="type">Type</label>
|
||||
<select id="type" name="type">
|
||||
<option value="auto">Auto Detect</option>
|
||||
<option value="c">C</option>
|
||||
<option value="cpp">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="plain">Plaintext</option>
|
||||
<option value="python">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>
|
||||
<option value="">Plaintext</option>
|
||||
<option value="">Python</option>
|
||||
</select>
|
||||
</li>
|
||||
</ul>
|
||||
<button type="submit" title="Save plak">
|
||||
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
||||
<button>
|
||||
<svg height="26" viewBox="0 0 24 24" width="26" xmlns="http://www.w3.org/2000/svg">
|
||||
<polyline points="9 11 12 14 22 4"></polyline>
|
||||
<path d="M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"></path>
|
||||
</svg>
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
:root {
|
||||
--accent: #be0560;
|
||||
--background: #141414;
|
||||
--border: #333;
|
||||
--text: #e2e2e2;
|
||||
--accent: #0080e5;
|
||||
--background: #121212;
|
||||
--border: #2d2d2d;
|
||||
--text: #f1f4f5;
|
||||
}
|
||||
|
||||
body {
|
||||
|
@ -12,15 +12,11 @@ body {
|
|||
margin: 0;
|
||||
}
|
||||
|
||||
button, textarea {
|
||||
background-color: inherit;
|
||||
border: none;
|
||||
}
|
||||
|
||||
textarea {
|
||||
appearance: none;
|
||||
color: var(--text);
|
||||
font: 14px/1.6 "JetBrains Mono", monospace;
|
||||
height: calc(100vh - 3rem);
|
||||
height: calc(100vh - 5rem - 6px);
|
||||
outline: none;
|
||||
padding: 1rem;
|
||||
resize: none;
|
||||
|
@ -39,10 +35,12 @@ nav {
|
|||
ul {
|
||||
display: flex;
|
||||
flex-flow: row wrap;
|
||||
gap: 2.6rem;
|
||||
list-style: none;
|
||||
gap: 2.6rem;
|
||||
height: 60px;
|
||||
margin: 0;
|
||||
padding: 0 1.9rem;
|
||||
padding: 0 1rem;
|
||||
width: fit-content;
|
||||
}
|
||||
|
||||
label {
|
||||
|
@ -50,43 +48,40 @@ label {
|
|||
}
|
||||
|
||||
input, select {
|
||||
appearance: none;
|
||||
background-color: var(--background);
|
||||
border: 2px solid var(--border);
|
||||
border-radius: 2px;
|
||||
color: var(--text);
|
||||
font-size: 15px;
|
||||
outline: none;
|
||||
padding: 5px 6px;
|
||||
transition: border .15s ease;
|
||||
}
|
||||
|
||||
input:hover, select:hover {
|
||||
border-color: var(--text);
|
||||
button, textarea {
|
||||
background-color: var(--background);
|
||||
border: none;
|
||||
}
|
||||
|
||||
svg {
|
||||
fill: none;
|
||||
height: 26px;
|
||||
stroke: var(--text);
|
||||
stroke: #ddd;
|
||||
stroke-width: 2;
|
||||
stroke-linecap: round;
|
||||
transition: .15s ease;
|
||||
width: 26px;
|
||||
}
|
||||
|
||||
svg:hover {
|
||||
input:hover, select:hover, svg:hover {
|
||||
border-color: #ddd;
|
||||
stroke: #fff;
|
||||
}
|
||||
|
||||
input:focus-visible, select:focus-visible {
|
||||
border: 2px solid var(--text);
|
||||
}
|
||||
|
||||
button:focus-visible{
|
||||
outline: none;
|
||||
}
|
||||
/*::selection {
|
||||
background-color: var(--text);
|
||||
color: var(--background);
|
||||
}*/
|
||||
|
||||
::selection {
|
||||
background-color: var(--accent);
|
||||
background-color: #be0560;
|
||||
color: #fff;
|
||||
}
|
Loading…
Reference in a new issue