generated from nathanwoodburn/go-webserver-template
Initial commit
This commit is contained in:
13
templates/about.html
Normal file
13
templates/about.html
Normal file
@@ -0,0 +1,13 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Go HTML Template</title>
|
||||
<link rel="stylesheet" href="/assets/css/index.css">
|
||||
<link rel="icon" href="/assets/img/favicon.png">
|
||||
</head>
|
||||
<body>
|
||||
<h1>About page</h1>
|
||||
</body>
|
||||
</html>
|
||||
5
templates/assets/css/error.css
Normal file
5
templates/assets/css/error.css
Normal file
@@ -0,0 +1,5 @@
|
||||
html {
|
||||
background-color: black;
|
||||
color: white;
|
||||
text-align: center;
|
||||
}
|
||||
4
templates/assets/css/index.css
Normal file
4
templates/assets/css/index.css
Normal file
@@ -0,0 +1,4 @@
|
||||
html {
|
||||
background-color: black;
|
||||
color: white;
|
||||
}
|
||||
BIN
templates/assets/img/favicon.png
Normal file
BIN
templates/assets/img/favicon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 44 KiB |
14
templates/error.html
Normal file
14
templates/error.html
Normal file
@@ -0,0 +1,14 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Error {{.short}}</title>
|
||||
<link rel="stylesheet" href="/assets/css/error.css">
|
||||
<link rel="icon" href="/assets/img/favicon.png">
|
||||
</head>
|
||||
<body>
|
||||
<h1>Error {{.short}}</h1>
|
||||
<p>{{.long}}</p>
|
||||
</body>
|
||||
</html>
|
||||
24
templates/index.html
Normal file
24
templates/index.html
Normal file
@@ -0,0 +1,24 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Go HTML Template</title>
|
||||
<link rel="stylesheet" href="/assets/css/index.css">
|
||||
<link rel="icon" href="/assets/img/favicon.png">
|
||||
</head>
|
||||
<body>
|
||||
<h1>Hello, World!</h1>
|
||||
{{if .envMessage }}
|
||||
<p>{{.envMessage}}</p>
|
||||
{{end}}
|
||||
|
||||
{{if .message}}
|
||||
<p>{{.message}}</p>
|
||||
{{end}}
|
||||
<form action="/" method="post">
|
||||
<input type="text" name="message" placeholder="Enter your message">
|
||||
<button type="submit">Submit</button>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user