finalised ui changes
This commit is contained in:
parent
e37d79ee05
commit
ff162e51d1
7 changed files with 325 additions and 94 deletions
|
@ -10,16 +10,16 @@
|
||||||
<meta content="width=device-width, initial-scale=1.0" name="viewport">
|
<meta content="width=device-width, initial-scale=1.0" name="viewport">
|
||||||
<link href="/static/favicon.svg" rel="icon">
|
<link href="/static/favicon.svg" rel="icon">
|
||||||
<title>New paste</title>
|
<title>New paste</title>
|
||||||
<link href="../static/style.css" rel="stylesheet">
|
<link href="style.css" rel="stylesheet">
|
||||||
<script async src="../static/app.js"></script>
|
<script async src="../static/app.js"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<form class="fr" method="post">
|
<form action="/create/" class="fr" method="post">
|
||||||
<div id="line-numbers">1</div>
|
<div id="line-numbers">1</div>
|
||||||
<label for="content"><textarea autofocus id="content" name="content"
|
<label for="content"><textarea autofocus id="content" name="content"
|
||||||
placeholder="Type your paste here"></textarea></label>
|
placeholder="Type your paste here"></textarea></label>
|
||||||
</form>
|
|
||||||
<div class="menu fr">
|
<div class="menu fr">
|
||||||
<label for="filename"><input id="filename" name="filename" placeholder="Filename" type="text"></label>
|
<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="password"><input id="password" placeholder="Password" type="password"></label>-->
|
||||||
|
@ -46,10 +46,11 @@
|
||||||
</label>
|
</label>
|
||||||
<button title="Save plak" type="submit">Save</button>
|
<button title="Save plak" type="submit">Save</button>
|
||||||
</div>
|
</div>
|
||||||
|
</form>
|
||||||
<section id="recent-plaks">
|
<section id="recent-plaks">
|
||||||
<div class="title fr">
|
<div class="title fr">
|
||||||
<h3>Recent plaks</h2>
|
<h3>Recent plaks</h3>
|
||||||
<svg viewBox="0 0 24 24" width="32" height="32" stroke="currentColor" stroke-width="2.5">
|
<svg height="32" stroke="currentColor" stroke-width="2.5" viewBox="0 0 24 24" width="32">
|
||||||
<polyline points="6 9 12 15 18 9"></polyline>
|
<polyline points="6 9 12 15 18 9"></polyline>
|
||||||
</svg>
|
</svg>
|
||||||
</div>
|
</div>
|
||||||
|
|
202
front/style.css
Normal file
202
front/style.css
Normal file
|
@ -0,0 +1,202 @@
|
||||||
|
section#recent-plaks {
|
||||||
|
bottom: 1rem;
|
||||||
|
display: flex;
|
||||||
|
flex-flow: column wrap;
|
||||||
|
gap: 9px;
|
||||||
|
position: absolute;
|
||||||
|
right: 1rem;
|
||||||
|
transition: 0.15s ease-in-out;
|
||||||
|
user-select: none;
|
||||||
|
}
|
||||||
|
section#recent-plaks .title {
|
||||||
|
align-items: center;
|
||||||
|
gap: 18px;
|
||||||
|
transition: 0.15s ease-in-out;
|
||||||
|
}
|
||||||
|
section#recent-plaks .title:hover {
|
||||||
|
border-color: #555;
|
||||||
|
}
|
||||||
|
section#recent-plaks .recent-plak {
|
||||||
|
align-items: center;
|
||||||
|
border: 3px solid #363636;
|
||||||
|
font-weight: 500;
|
||||||
|
justify-content: space-between;
|
||||||
|
outline: none;
|
||||||
|
padding: 8px 18px;
|
||||||
|
text-decoration: none;
|
||||||
|
transition: 0.15s ease-in-out;
|
||||||
|
width: 12rem;
|
||||||
|
}
|
||||||
|
section#recent-plaks .recent-plak:focus-visible {
|
||||||
|
border: 2px solid #bbb;
|
||||||
|
}
|
||||||
|
section#recent-plaks .recent-plak svg {
|
||||||
|
border-radius: 15px;
|
||||||
|
cursor: pointer;
|
||||||
|
height: 22px;
|
||||||
|
padding: 5px;
|
||||||
|
stroke: #e5e5e7;
|
||||||
|
stroke-width: 2.25;
|
||||||
|
width: 22px;
|
||||||
|
transition: 0.1s ease-in-out;
|
||||||
|
}
|
||||||
|
section#recent-plaks .recent-plak svg:hover {
|
||||||
|
background-color: #363636;
|
||||||
|
}
|
||||||
|
section#recent-plaks a {
|
||||||
|
color: inherit;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
h3 {
|
||||||
|
font-size: 1.5rem;
|
||||||
|
margin: 0;
|
||||||
|
transition: 0.15s ease-in-out;
|
||||||
|
width: fit-content;
|
||||||
|
}
|
||||||
|
|
||||||
|
::selection {
|
||||||
|
background-color: #d30f45;
|
||||||
|
color: #e5e5e7;
|
||||||
|
}
|
||||||
|
|
||||||
|
::-webkit-scrollbar {
|
||||||
|
width: 9px;
|
||||||
|
}
|
||||||
|
|
||||||
|
::-webkit-scrollbar-track {
|
||||||
|
background-color: #0f0f0f;
|
||||||
|
}
|
||||||
|
|
||||||
|
::-webkit-scrollbar-thumb {
|
||||||
|
background-color: #444;
|
||||||
|
border-radius: 9px;
|
||||||
|
}
|
||||||
|
|
||||||
|
::-webkit-scrollbar-thumb:hover {
|
||||||
|
background-color: #e5e5e7;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: "Inter";
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400 700;
|
||||||
|
font-display: swap;
|
||||||
|
src: url(inter.woff2) format("woff2");
|
||||||
|
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||||
|
}
|
||||||
|
@font-face {
|
||||||
|
font-family: "JetBrains Mono";
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
font-display: swap;
|
||||||
|
src: url(jetbrainsmono.woff2) format("woff2");
|
||||||
|
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||||
|
}
|
||||||
|
body {
|
||||||
|
background-color: #0f0f0f;
|
||||||
|
color: #e5e5e7;
|
||||||
|
font: 400 16px/2 "Inter", "system-ui", sans-serif;
|
||||||
|
margin: 0;
|
||||||
|
overflow-x: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fr {
|
||||||
|
display: flex;
|
||||||
|
flex-flow: row wrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
#line-numbers,
|
||||||
|
#content {
|
||||||
|
font: 400 14px/1.6 "JetBrains Mono", monospace;
|
||||||
|
}
|
||||||
|
|
||||||
|
#line-numbers {
|
||||||
|
color: #888;
|
||||||
|
padding: 16px 1px;
|
||||||
|
text-align: center;
|
||||||
|
white-space: pre;
|
||||||
|
width: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#content {
|
||||||
|
color: #e5e5e7;
|
||||||
|
height: 100%;
|
||||||
|
min-height: 90vh;
|
||||||
|
padding: 16px 16px 0 16px;
|
||||||
|
width: calc(100vw - 65px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu {
|
||||||
|
gap: 18px;
|
||||||
|
position: fixed;
|
||||||
|
right: 16px;
|
||||||
|
top: 16px;
|
||||||
|
}
|
||||||
|
.menu svg {
|
||||||
|
cursor: pointer;
|
||||||
|
height: 24px;
|
||||||
|
fill: none;
|
||||||
|
margin-bottom: -6px;
|
||||||
|
stroke: #e5e5e7;
|
||||||
|
stroke-width: 2;
|
||||||
|
width: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
button,
|
||||||
|
input,
|
||||||
|
select {
|
||||||
|
background-color: #0f0f0f;
|
||||||
|
border: 2px solid #363636;
|
||||||
|
color: #e5e5e7;
|
||||||
|
font: 500 14px/2 "Inter", "system-ui", sans-serif;
|
||||||
|
max-width: 145px;
|
||||||
|
outline: none;
|
||||||
|
padding: 3px 10px;
|
||||||
|
transition: border 0.15s ease;
|
||||||
|
width: min-content;
|
||||||
|
}
|
||||||
|
button::placeholder,
|
||||||
|
input::placeholder,
|
||||||
|
select::placeholder {
|
||||||
|
color: #888;
|
||||||
|
}
|
||||||
|
button:hover,
|
||||||
|
input:hover,
|
||||||
|
select:hover {
|
||||||
|
border-color: #777;
|
||||||
|
}
|
||||||
|
button:focus-visible,
|
||||||
|
input:focus-visible,
|
||||||
|
select:focus-visible {
|
||||||
|
border: 2px solid #bbb;
|
||||||
|
}
|
||||||
|
|
||||||
|
select {
|
||||||
|
padding: 8px 10px;
|
||||||
|
width: fit-content;
|
||||||
|
}
|
||||||
|
|
||||||
|
select:focus {
|
||||||
|
background-color: #0f0f0f;
|
||||||
|
transition: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
option {
|
||||||
|
background-color: #0f0f0f;
|
||||||
|
color: #e5e5e7;
|
||||||
|
}
|
||||||
|
option:focus {
|
||||||
|
background-color: #d30f45;
|
||||||
|
color: #0f0f0f;
|
||||||
|
}
|
||||||
|
|
||||||
|
textarea {
|
||||||
|
background-color: inherit;
|
||||||
|
border: none;
|
||||||
|
margin: 0;
|
||||||
|
outline: none;
|
||||||
|
resize: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*# sourceMappingURL=style.css.map */
|
|
@ -4,7 +4,24 @@
|
||||||
@use 'recents';
|
@use 'recents';
|
||||||
@use 'misc';
|
@use 'misc';
|
||||||
|
|
||||||
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&family=JetBrains+Mono&display=swap');
|
@font-face {
|
||||||
|
font-family: 'Inter';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400 700;
|
||||||
|
font-display: swap;
|
||||||
|
src: url(inter.woff2) format('woff2');
|
||||||
|
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'JetBrains Mono';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
font-display: swap;
|
||||||
|
src: url(jetbrainsmono.woff2) format('woff2');
|
||||||
|
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
body {
|
body {
|
||||||
background-color: $background;
|
background-color: $background;
|
||||||
|
@ -93,7 +110,7 @@ select:focus {
|
||||||
background-color: $background;
|
background-color: $background;
|
||||||
transition: none;
|
transition: none;
|
||||||
}
|
}
|
||||||
²
|
|
||||||
option {
|
option {
|
||||||
background-color: $background;
|
background-color: $background;
|
||||||
color: $text;
|
color: $text;
|
||||||
|
|
|
@ -9,17 +9,17 @@
|
||||||
<meta content="Gnous EU" name="author">
|
<meta content="Gnous EU" name="author">
|
||||||
<meta content="width=device-width, initial-scale=1.0" name="viewport">
|
<meta content="width=device-width, initial-scale=1.0" name="viewport">
|
||||||
<link href="/static/favicon.svg" rel="icon">
|
<link href="/static/favicon.svg" rel="icon">
|
||||||
<title>New plak • Plakken</title>
|
<title>New paste</title>
|
||||||
<link href="/static/style.css" rel="stylesheet">
|
<link href="/static/style.css" rel="stylesheet">
|
||||||
<script async src="/static/app.js"></script>
|
<script async src="/static/app.js"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<form class="fr" action="/create/" method="post">
|
<form action="/create/" class="fr" method="post">
|
||||||
<div id="line-numbers">1</div>
|
<div id="line-numbers">1</div>
|
||||||
<label for="content"><textarea autofocus id="content" name="content"
|
<label for="content"><textarea autofocus id="content" name="content"
|
||||||
placeholder="Type your paste here"></textarea></label>
|
placeholder="Type your paste here"></textarea></label>
|
||||||
</form>
|
|
||||||
<div class="menu fr">
|
<div class="menu fr">
|
||||||
<label for="filename"><input id="filename" name="filename" placeholder="Filename" type="text"></label>
|
<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="password"><input id="password" placeholder="Password" type="password"></label>-->
|
||||||
|
@ -44,16 +44,13 @@
|
||||||
<option value="yml">YAML</option>
|
<option value="yml">YAML</option>
|
||||||
</select>
|
</select>
|
||||||
</label>
|
</label>
|
||||||
<button title="Save plak" type="submit">
|
<button title="Save plak" type="submit">Save</button>
|
||||||
<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
|
|
||||||
<path d="M12.736 3.97a.733.733 0 0 1 1.047 0c.286.289.29.756.01 1.05L7.88 12.01a.733.733 0 0 1-1.065.02L3.217 8.384a.757.757 0 0 1 0-1.06.733.733 0 0 1 1.047 0l3.052 3.093 5.4-6.425z"></path>
|
|
||||||
</svg>
|
|
||||||
</button>
|
|
||||||
</div>
|
</div>
|
||||||
|
</form>
|
||||||
<section id="recent-plaks">
|
<section id="recent-plaks">
|
||||||
<div class="title fr">
|
<div class="title fr">
|
||||||
<h3>Recent plaks</h3>
|
<h3>Recent plaks</h3>
|
||||||
<svg viewBox="0 0 24 24" width="32" height="32" stroke="currentColor" stroke-width="2.5">
|
<svg height="32" stroke="currentColor" stroke-width="2.5" viewBox="0 0 24 24" width="32">
|
||||||
<polyline points="6 9 12 15 18 9"></polyline>
|
<polyline points="6 9 12 15 18 9"></polyline>
|
||||||
</svg>
|
</svg>
|
||||||
</div>
|
</div>
|
||||||
|
|
BIN
static/inter.woff2
Normal file
BIN
static/inter.woff2
Normal file
Binary file not shown.
BIN
static/jetbrainsmono.woff2
Normal file
BIN
static/jetbrainsmono.woff2
Normal file
Binary file not shown.
|
@ -1,5 +1,3 @@
|
||||||
@charset "UTF-8";
|
|
||||||
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&family=JetBrains+Mono&display=swap");
|
|
||||||
section#recent-plaks {
|
section#recent-plaks {
|
||||||
bottom: 1rem;
|
bottom: 1rem;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -79,6 +77,22 @@ h3 {
|
||||||
background-color: #e5e5e7;
|
background-color: #e5e5e7;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: "Inter";
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400 700;
|
||||||
|
font-display: swap;
|
||||||
|
src: url(inter.woff2) format("woff2");
|
||||||
|
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||||
|
}
|
||||||
|
@font-face {
|
||||||
|
font-family: "JetBrains Mono";
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
font-display: swap;
|
||||||
|
src: url(jetbrainsmono.woff2) format("woff2");
|
||||||
|
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||||
|
}
|
||||||
body {
|
body {
|
||||||
background-color: #0f0f0f;
|
background-color: #0f0f0f;
|
||||||
color: #e5e5e7;
|
color: #e5e5e7;
|
||||||
|
@ -168,11 +182,11 @@ select:focus {
|
||||||
transition: none;
|
transition: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
² option {
|
option {
|
||||||
background-color: #0f0f0f;
|
background-color: #0f0f0f;
|
||||||
color: #e5e5e7;
|
color: #e5e5e7;
|
||||||
}
|
}
|
||||||
² option:focus {
|
option:focus {
|
||||||
background-color: #d30f45;
|
background-color: #d30f45;
|
||||||
color: #0f0f0f;
|
color: #0f0f0f;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue