mirror of
https://github.com/packwiz/packwiz.git
synced 2025-10-14 15:04:32 +02:00
Add index page to the development server (#146)
* Add index page to dev server * Add target=_blank to packwiz-installer link * Improve sentence about packwiz-installer Co-authored-by: comp500 <comp500@users.noreply.github.com>
This commit is contained in:
44
cmd/serve-templates/index.html
Normal file
44
cmd/serve-templates/index.html
Normal file
@@ -0,0 +1,44 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>packwiz development server</title>
|
||||
<style>
|
||||
h1, p {
|
||||
text-align: center;
|
||||
margin: 1.5em;
|
||||
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
||||
}
|
||||
hr {
|
||||
width: 100px;
|
||||
height: 1px;
|
||||
border: none;
|
||||
background-color: #ccc;
|
||||
color: #ccc;
|
||||
}
|
||||
code {
|
||||
background-color: #f5f5f5;
|
||||
border-radius: 2px;
|
||||
padding: 1px 5px;
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>
|
||||
It works! Packwiz development server is running!
|
||||
</h1>
|
||||
<p>
|
||||
Use <a href="https://packwiz.infra.link/tutorials/installing/packwiz-installer/" target="_blank">packwiz-installer</a> to install the pack from this HTTP server - works best with MultiMC/PolyMC/ATLauncher, or standalone for servers.
|
||||
</p>
|
||||
<p>
|
||||
Your <code>pack.toml</code> is hosted at <code>http://localhost:{{.Port}}/pack.toml</code>.
|
||||
</p>
|
||||
<hr>
|
||||
<p>
|
||||
<a href="https://packwiz.infra.link" target="_blank">packwiz</a>
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user