Files
2023-04-17 17:26:14 +02:00

79 lines
1.9 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Docker Run to Compose</title>
<style>
* {
box-sizing: border-box;
}
body {
font-family: 'Helvetica', sans-serif;
max-width: 800px;
margin: auto;
padding: 2rem;
background-color: #f5f5f5;
}
h1 {
text-align: center;
margin-bottom: 2rem;
}
form {
display: flex;
flex-direction: column;
background-color: #ffffff;
padding: 2rem;
border-radius: 6px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
label {
margin-bottom: 0.5rem;
}
input[type="text"], textarea {
padding: 0.5rem;
width: 100%;
border: 1px solid #ccc;
border-radius: 4px;
font-size: 1rem;
margin-bottom: 1rem;
}
input[type="submit"] {
margin-top: 1rem;
padding: 0.5rem 1rem;
background-color: #007bff;
border: none;
color: white;
cursor: pointer;
border-radius: 4px;
font-size: 1rem;
transition: background-color 0.2s ease-in-out;
}
input[type="submit"]:hover {
background-color: #0056b3;
}
textarea {
margin-top: 2rem;
height: 400px;
resize: none;
}
</style>
</head>
<body>
<h1>Docker Run to Compose</h1>
<form method="POST" action="/">
<label for="docker_run">Docker run command:</label>
<input type="text" id="docker_run" name="docker_run" size="100" autofocus value="{{.Input}}" autocomplete="off">
<input type="submit" value="Convert">
<textarea id="result" name="result" readonly>{{.Result}}</textarea>
</form>
</body>
</html>