Styling changes and credits

This commit is contained in:
raul 2024-05-23 13:31:28 +02:00
parent 59cb7c7fb9
commit d1d121e971
3 changed files with 8 additions and 11 deletions

View File

@ -57,9 +57,7 @@ func returnCacert(c *gin.Context) {
}
func returnIndex(c *gin.Context) {
c.HTML(http.StatusOK, "templates/index.html", gin.H{
"UserAgent": c.Request.UserAgent(),
})
c.HTML(http.StatusOK, "templates/index.html", gin.H{})
}
func getDomainRequest(c *gin.Context) {

View File

@ -25,7 +25,6 @@ img {
button {
background-color: #eee;
border: 2px black solid;
margin-bottom: 10px;
}
#but:hover {

View File

@ -2,7 +2,7 @@
<html lang="en">
<head>
<title>Hello</title>
<title>Certificate Requester</title>
<script src="https://unpkg.com/htmx.org@1.9.4/dist/htmx.min.js"></script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
@ -12,14 +12,10 @@
<!-- Licensed under the GPL v3.0 -->
<body>
<p>Hello {{ .UserAgent }}!</p>
<div class="container">
<div id="main">
<b>
<p align="center"><a href="cacert">Download CA certificate</a></p>
</b>
<h1>Certificate requester</h1>
<!-- <h3>Find the source <a href="https://git.bulgariu.xyz/raul/uploader" target="_blank">here!</a></h3> -->
<h1>Certificate Requester</h1>
<form id='form' hx-encoding='multipart/form-data' hx-post='/api/upload'>
Serial Number:
<input type="text" name="formSerNum" value="30128">
@ -65,6 +61,10 @@
Request
</button>
</form>
<b>
<p align="center"><a target="_blank" href="https://git.bulgariu.xyz/raul/cert400">Source Code</a></p>
<p align="center"><a href="cacert">Download CA certificate</a></p>
</b>
</div>
</div>