Last commit didnt add everything :(

This commit is contained in:
whoswhip
2024-08-18 23:50:58 -04:00
parent 2df77f3659
commit 3be5f90220
6 changed files with 315 additions and 21 deletions
+71
View File
@@ -0,0 +1,71 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+Mono:wght@100..900&display=swap" rel="stylesheet">
<title>create paste</title>
</head>
<body>
<div class="container-wrapper">
<div class="error-container">
<h1>Error {code}</h1>
<h2>{message}</h2>
<a href="/" class="button">home page</a>
</div>
</div>
</body>
<style>
body{
font-family: "Noto Sans Mono", "Consolas", "SF Mono", monospace;
font-weight: bold;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background-color: #0d0d0d;
}
.container-wrapper{
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 100%;
height: 100vh;
}
.error-container{
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 80%;
padding: 20px;
background-color: #181818;
color: white;
border-radius: 5px;
height: fit-content;
max-height: 80vh;
overflow-y: auto;
border: #222222 2px solid;
}
.button{
text-decoration: none;
transition: 300ms;
width: fit-content;
padding: 10px;
margin: 10px 0;
border-radius: 5px;
border: none;
background-color: #222222;
color: white;
border: #2a2a2a00 2px solid;
cursor: pointer;
font-size: 1.2em;
}
.button:hover{
transition: 300ms;
background-color: #333333;
border: 2px solid #3a3a3a;
}
</style>
</html>
+12 -7
View File
@@ -102,14 +102,16 @@ body{
box-sizing: border-box;
font-family: "Noto Sans Mono", "Consolas", "SF Mono", monospace;
font-size: 1.1em;
outline: none;
}
.textinput:focus{
transition: 300ms;
border: #383838 2px solid;
background-color: #333333;
border: 2px solid #3a3a3a;
outline: none;
}
.textarea{
transition: border 300ms;
transition: 300ms;
width: 100%;
min-width: 100%;
max-width: 100%;
@@ -124,10 +126,12 @@ body{
box-sizing: border-box;
font-family: "Noto Sans Mono", "Consolas", "SF Mono", monospace;
font-size: 1.08em;
outline: none;
}
.textarea:focus{
transition: border 300ms;
border: #383838 2px solid;
transition: 300ms;
background-color: #333333;
border: 2px solid #3a3a3a;
outline: none;
}
.button{
@@ -137,15 +141,16 @@ body{
margin: 10px 0;
border-radius: 5px;
border: none;
background-color: #282828;
background-color: #222222;
color: white;
border: #2a2a2a 2px solid;
border: #2a2a2a00 2px solid;
cursor: pointer;
font-size: 1.2em;
}
.button:hover{
transition: 300ms;
background-color: #383838;
background-color: #333333;
border: 2px solid #3a3a3a;
}
</style>
</html>
+6 -4
View File
@@ -69,6 +69,7 @@ body{
max-height: 80vh;
min-height: 20%;
overflow-y: auto;
border: #222222 2px solid;
}
.paste-wrapper{
width: 95%;
@@ -83,6 +84,7 @@ body{
font-weight: 500;
max-height: 80%;
overflow-y: auto;
border: #222222 2px solid;
}
.buttons-wrapper{
display: flex;
@@ -97,9 +99,9 @@ body{
}
.button{
transition: 300ms;
background-color: #1d1d1d;
background-color: #222222;
color: white;
border: 1px solid #1d1d1d;
border: 2px solid #33333300;
border-radius: 5px;
padding: 5px;
margin: 5px;
@@ -110,8 +112,8 @@ body{
}
.button:hover{
transition: 300ms;
background-color: #2d2d2d;
border: 1px solid #2d2d2d;
background-color: #333333;
border: 2px solid #3a3a3a;
}
</style>
</html>
+121
View File
@@ -0,0 +1,121 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+Mono:wght@100..900&display=swap" rel="stylesheet">
<title>recent pastes</title>
</head>
<body>
<div class="container-wrapper">
<div class="pastes-container">
<h1>recent pastes</h1>
<div class="pastes-wrapper">
{pastes}
</div>
<div class="buttons-wrapper">
<a href="/">create paste</a>
<a href="/archives">paste archives</a>
</div>
</div>
</div>
</body>
<style>
body{
font-family: "Noto Sans Mono", "Consolas", "SF Mono", monospace;
font-weight: bold;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background-color: #0d0d0d;
overflow-y: hidden;
}
.container-wrapper{
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 100%;
height: 100vh;
}
.pastes-container{
display: flex;
flex-direction: column;
align-items: center;
width: 80%;
padding: 20px;
background-color: #181818;
color: white;
border-radius: 5px;
height: fit-content;
max-height: 80vh;
min-height: 20%;
border: #222222 2px solid;
}
.pastes-wrapper{
display: flex;
flex-direction: column;
align-items: center;
width: 95%;
padding: 20px;
overflow-x: hidden;
overflow-y: auto;
max-height: 70vh;
}
.pastes-wrapper a{
text-decoration: none;
color: white;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
}
li{
transition: 300ms;
list-style: none;
padding: 10px;
margin: 10px;
background-color: #222222;
border-radius: 5px;
width: 90%;
text-align: center;
cursor: pointer;
border: #22222200 2px solid;
}
li:hover{
transition: 300ms;
background-color: #333333;
border: #3a3a3a 2px solid;
}
.buttons-wrapper{
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
width: 100%;
padding: 20px;
}
.buttons-wrapper a{
transition: 300ms;
text-decoration: none;
color: white;
width: fit-content;
margin-left: 10px;
margin-right: 10px;
min-width: 20%;
display: flex;
justify-content: center;
align-items: center;
background-color: #222222;
border-radius: 5px;
padding: 10px;
border: #22222200 2px solid;
}
.buttons-wrapper a:hover{
transition: 300ms;
background-color: #333333;
border: 2px solid #3a3a3a;
}
</style>
</html>