diff --git a/assets/style.css b/assets/style.css new file mode 100644 index 0000000..950a69e --- /dev/null +++ b/assets/style.css @@ -0,0 +1,23 @@ +body { + max-width: 940px; + margin: 0 auto; + padding: 1em; + font-family: Verdana; +} + +section { + padding: 1em; + background-color: peachpuff; +} + +.cols { + display: grid; + row-gap: 1em; +} + +@media (min-width: 650px) { + .cols { + grid-template-columns: repeat(2, 1fr); + grid-gap: 1em; + } +} \ No newline at end of file diff --git a/config/cfg.go b/config/cfg.go index 0ad327e..dfcf43f 100644 --- a/config/cfg.go +++ b/config/cfg.go @@ -9,6 +9,7 @@ type ( Env string CertFile string KeyFile string + AssetsDir string } ) @@ -19,5 +20,6 @@ func New() *Config { Env: os.Getenv("ENV"), CertFile: os.Getenv("CERT_FILE"), KeyFile: os.Getenv("CERT_KEY_FILE"), + AssetsDir: os.Getenv("ASSETS_DIR"), } } diff --git a/web/handler/common.go b/web/handler/common.go index 7771ded..33b306b 100644 --- a/web/handler/common.go +++ b/web/handler/common.go @@ -9,14 +9,26 @@ var TplCommonMap = map[string]string{
- -