Switch to tabs for everything. (Note: don't know if this will break the .yml files)

Signed-off-by: Odyssey <odyssey346@disroot.org>
This commit is contained in:
Odyssey 2022-10-18 15:37:38 +02:00
parent 12b07a6441
commit e32ba6131f
5 changed files with 181 additions and 213 deletions

View File

@ -1,5 +1,6 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
@ -11,6 +12,7 @@
color: #fff;
font-family: 'JetBrains Mono', 'JetBrainsMono Nerd Font', monospace
}
.container {
width: 100%;
max-width: 400px;
@ -49,7 +51,8 @@
resize: none;
}
#contact input, select {
#contact input,
select {
text-align: center;
border-radius: 5px;
color: #FFF;
@ -60,6 +63,7 @@
padding: 10px;
max-width: 100%;
}
#contact select {
width: 105%;
max-width: 105%;
@ -122,22 +126,13 @@
}
</style>
</head>
<body>
<div class="container">
<h1>Post Announcement</h1>
<form
id="contact"
action="/api/announcements/post"
method="POST"
target="_blank"
>
<form id="contact" action="/api/announcements/post" method="POST" target="_blank">
<div class="meta">
<input
type="password"
name="token"
placeholder="Your authentication token"
required
/>
<input type="password" name="token" placeholder="Your authentication token" required />
<br />
<select id="severity" name="severity" required>
<option value="" selected disabled>Select severity of announcement</option>
@ -147,39 +142,21 @@
<option value="high">High severity</option>
</select>
</div>
<textarea
name="title"
rows="4"
cols="25"
required
placeholder="The announcement text"></textarea>
<textarea name="title" rows="4" cols="25" required placeholder="The announcement text"></textarea>
<br />
<input
type="text"
name="link"
placeholder="Your link for more details"
/>
<input type="text" name="link" placeholder="Your link for more details" />
<br />
<button type="submit" />Submit</button>
</form>
<h1 style="margin-top: 20px;">Delete Announcement</h1>
<form
id="contact"
action="/api/announcements/delete"
method="POST"
target="_blank"
>
<form id="contact" action="/api/announcements/delete" method="POST" target="_blank">
<div class="meta">
<input
type="password"
name="token"
placeholder="Your authentication token"
required
/>
<input type="password" name="token" placeholder="Your authentication token" required />
<br />
</div>
<button type="delete" />Delete</button>
</form>
</div>
</body>
</html>

View File

@ -1,5 +1,6 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
@ -22,18 +23,11 @@
</style>
<script src="https://js.hcaptcha.com/1/api.js" async defer></script>
</head>
<body>
<form
action="/api/form"
method="POST"
>
<form action="/api/form" method="POST">
<div class="meta">
<input
type="text"
name="email"
placeholder="Your email"
required
/>
<input type="text" name="email" placeholder="Your email" required />
<select id="commentType" name="commentType" required>
<option value="" selected disabled>Select a type of comment</option>
<option value="Feedback">Feedback</option>
@ -42,16 +36,10 @@
<option value="Bug">Bug</option>
</select>
</div>
<textarea
id="comment"
name="message"
rows="4"
cols="25"
required
placeholder="Your message"
></textarea>
<textarea id="comment" name="message" rows="4" cols="25" required placeholder="Your message"></textarea>
<div class="h-captcha" data-sitekey="{{.HCaptchaSiteKey}}"></div>
<input type="submit" value="Submit" />
</form>
</body>
</html>

View File

@ -1,4 +1,5 @@
<!DOCTYPE html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
@ -20,8 +21,10 @@
}
</style>
</head>
<body>
<h1>Welcome to Segfautils</h1>
<h3>Running at port {{.Port}} | <a href="https://github.com/ProjectSegfault/segfautils/" target="_blank">GitHub</a></h3>
<h3>Running at port {{.Port}} | <a href="https://github.com/ProjectSegfault/segfautils/" target="_blank">GitHub</a>
</h3>
<h3><a href="/form">Click here for an example form implementation</a></h3>
</body>