Changed font and added some centered elements. Fixed spacing (padding and margin)
This commit is contained in:
parent
eb7c297791
commit
5c607d581d
16
index.html
16
index.html
@ -1,31 +1,37 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<html lang="en-US ">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Nginx Installer</title>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<link href='https://fonts.googleapis.com/css?family=JetBrains Mono' rel='stylesheet'>
|
||||
</head>
|
||||
<body>
|
||||
<div class="main">
|
||||
<label for="link">
|
||||
<p>nginx archive <a href="https://nginx.org/download/" target=”_blank”>(copy link here)</a></p>
|
||||
<input type="text" id="link">
|
||||
<!-- <h1 style="margin-left: auto; margin-right: auto">Nginx Script Gen</h1>-->
|
||||
<label for="link" style="height: 50px">
|
||||
<p style="width: 300px; "><a href="https://nginx.org/download/" target=”_blank”>NGINX Archive Link:</a></p>
|
||||
<input type="text" id="link" style="margin-top: 10px">
|
||||
</label>
|
||||
|
||||
<label for="extMod">
|
||||
<p>Include recommended modules (<a href="https://github.com/openresty/headers-more-nginx-module" target="_blank">more headers</a> & <a href="https://github.com/google/ngx_brotli" target="_blank">brotli compression</a>)</p>
|
||||
<p>Include recommended modules (<a href="https://github.com/openresty/headers-more-nginx-module" target="_blank">more headers</a> & <a href="https://github.com/google/ngx_brotli" target="_blank">brotli compression</a>):</p>
|
||||
<input type="checkbox" id="extMod" checked>
|
||||
<span class="checkmark"></span>
|
||||
</label>
|
||||
|
||||
<label for="http3">
|
||||
<p>HTTP/3:</p>
|
||||
<input type="checkbox" id="http3">
|
||||
<span class="checkmark"></span>
|
||||
</label>
|
||||
|
||||
<label for="service">
|
||||
<p>Run as service:</p>
|
||||
<input type="checkbox" id="service">
|
||||
<span class="checkmark"></span>
|
||||
</label>
|
||||
|
||||
<button id="submit" class="centered-button">Generate Script</button>
|
||||
<code lang="bash" id="script"></code>
|
||||
</div>
|
||||
|
20
style.css
20
style.css
@ -17,19 +17,30 @@ body {
|
||||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
||||
border-radius: 10px;
|
||||
width: fit-content; /* Adjust the width to fit the content */
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
p {
|
||||
padding: 0px;
|
||||
margin: 0px 2px 0px 0px;
|
||||
font-size: 14px;
|
||||
}
|
||||
* {
|
||||
font-family: 'JetBrains Mono', serif;
|
||||
}
|
||||
|
||||
label {
|
||||
display: flex;
|
||||
align-items: center; /* Align label text with checkbox */
|
||||
margin: 10px 0;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
/* Adjust the spacing specifically for the first label */
|
||||
label:first-child {
|
||||
margin-bottom: 20px; /* Increase spacing below the first label */
|
||||
width: 80%;
|
||||
}
|
||||
|
||||
@ -39,11 +50,6 @@ input[type="text"] {
|
||||
box-sizing: border-box; /* Include padding and border in the element's total width */
|
||||
}
|
||||
|
||||
/* Style for checkboxes */
|
||||
input[type="checkbox"] {
|
||||
margin-right: 10px; /* Space between checkbox and label text */
|
||||
}
|
||||
|
||||
/* Styling for links */
|
||||
a {
|
||||
color: blue;
|
||||
|
Loading…
Reference in New Issue
Block a user