web ui: basic logic

This commit is contained in:
2023-04-04 16:20:47 +03:00
parent 790eece361
commit 2a8b94136f
7 changed files with 101 additions and 1 deletions

8
ui/embed.go Normal file
View File

@@ -0,0 +1,8 @@
package ui
import (
"embed"
)
//go:embed static/*
var StaticFiles embed.FS

14
ui/static/index.html Normal file
View File

@@ -0,0 +1,14 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<link rel="stylesheet" href="/static/style.css">
</head>
<body>
<h1>Hello World!</h1>
</body>
</html>

3
ui/static/style.css Normal file
View File

@@ -0,0 +1,3 @@
h1 {
background-color: azure;
}