Commit 5b156f21 authored by Artemis's avatar Artemis 🐱

Added its own style, finished HTML files and HTTP server, TODO privacy

parent 5983a3ac
.idea/
*.iml
build/
*.min.css
node_modules/
......@@ -163,6 +163,7 @@ func main() {
return
}
w.Header().Set("Content-Type", "text/plain")
_, _ = fmt.Fprint(w, res.Val())
})
......
{
"dependencies": {
"uglifycss": "^0.0.29"
},
"scripts": {
"css-uglify": "uglifycss style.css > style.min.css"
}
}
body {
margin: 1em;
background-color: #F7F7F7;
color: #1E1E1E;
font-size: 1.2rem;
font-family: Sans-Serif;
}
p {
text-align: justify;
line-height: 1.4;
}
a {
color: #0677D3;
}
a:hover {
color: #9606D3;
}
footer {
text-align: center;
}
@media screen and (min-width: 1200px) {
body {
margin: 1em auto;
width: 1200px;
}
}
form fieldset {
padding: 0;
border: 0;
line-height: 2.8;
}
form fieldset label, form fieldset input, form fieldset textarea {
display: block;
width: 100%;
}
form fieldset textarea {
resize: vertical;
}
/*# sourceMappingURL=style.css.map */
......@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<title>Paste</title>
<link rel="stylesheet" href="https://res.axdn.fr/folio/style.min.css" />
<link rel="stylesheet" href="https://res.axdn.fr/paste/style.min.css" />
</head>
<body>
<h1>Paste</h1>
......@@ -24,6 +24,8 @@
<button type="submit">Store</button>
</fieldset>
</form>
<p>Pastes are stored for 1 hour or until next server restart, whichever comes first.</p>
</section>
<hr>
......
......@@ -3,7 +3,9 @@
<head>
<meta charset="UTF-8">
<title>Paste</title>
<link rel="stylesheet" href="https://res.axdn.fr/folio/style.min.css" />
<link rel="stylesheet" href="https://res.axdn.fr/paste/style.min.css" />
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.13.1/styles/monokai-sublime.min.css">
</head>
<body>
<h1>Paste</h1>
......@@ -23,5 +25,7 @@
<footer>
<a href="https://gitlab.com/Artemix/paste" target="_blank">Source code</a>
</footer>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.13.1/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
</body>
</html>
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
uglifycss@^0.0.29:
version "0.0.29"
resolved "https://registry.yarnpkg.com/uglifycss/-/uglifycss-0.0.29.tgz#abe49531155d146e75dd2fdf933d371bc1180054"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment