mirror of
https://github.com/derfenix/webarchive.git
synced 2026-03-11 12:41:54 +03:00
web ui: basic logic
This commit is contained in:
8
ui/embed.go
Normal file
8
ui/embed.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package ui
|
||||
|
||||
import (
|
||||
"embed"
|
||||
)
|
||||
|
||||
//go:embed static/*
|
||||
var StaticFiles embed.FS
|
||||
14
ui/static/index.html
Normal file
14
ui/static/index.html
Normal 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
3
ui/static/style.css
Normal file
@@ -0,0 +1,3 @@
|
||||
h1 {
|
||||
background-color: azure;
|
||||
}
|
||||
Reference in New Issue
Block a user