diff --git a/controllers/IndexController.go b/controllers/IndexController.go index c9dac5b..1ca0e6a 100644 --- a/controllers/IndexController.go +++ b/controllers/IndexController.go @@ -9,5 +9,6 @@ type IndexController struct { } func (c *IndexController) Get() { + c.Data["IsHome"] = true c.TplName = "index.html" } diff --git a/controllers/MapController.go b/controllers/MapController.go new file mode 100644 index 0000000..b5ec7f1 --- /dev/null +++ b/controllers/MapController.go @@ -0,0 +1,12 @@ +package controllers + +import "github.com/astaxie/beego" + +type MapController struct { + beego.Controller +} + +func (this *MapController) Get() { + this.Data["IsMap"] = true + this.TplName = "map.html" +} diff --git a/routers/router.go b/routers/router.go index 4c82f7b..dc61f55 100644 --- a/routers/router.go +++ b/routers/router.go @@ -6,8 +6,7 @@ import ( ) func init() { - //beego.Router("/login", &controllers.UserController{}, "get:LoginPage") beego.Router("/", &controllers.IndexController{}) - //beego.Router("/login", &controllers.UserController{}, "post:Login") + beego.Router("/map", &controllers.MapController{}) } diff --git a/static/css/common.css b/static/css/common.css new file mode 100644 index 0000000..16cd2b9 --- /dev/null +++ b/static/css/common.css @@ -0,0 +1,9 @@ +.nav-container{ + position: fixed; + width: 100%; + z-index: 1000; +} + +.nav-container .sui-navbar .navbar-inner{ + padding: 0 50px; +} \ No newline at end of file diff --git a/static/css/map.css b/static/css/map.css new file mode 100644 index 0000000..9e0e75b --- /dev/null +++ b/static/css/map.css @@ -0,0 +1,13 @@ + +.map-root { + position: absolute; + width: 100%; + height: 100%; + left: 0; + top: 0; +} + +.map-root .map-container { + width: 100%; + height: 100%; +} \ No newline at end of file diff --git a/static/css/reset.css b/static/css/reset.css new file mode 100644 index 0000000..7b3195c --- /dev/null +++ b/static/css/reset.css @@ -0,0 +1,93 @@ +/** + * Eric Meyer's Reset CSS v2.0 (http://meyerweb.com/eric/tools/css/reset/) + * http://cssreset.com + */ +html, body, div, span, applet, object, iframe, blockquote, pre, +a, abbr, acronym, address, big, cite, code, +del, dfn, em, img, ins, kbd, q, s, samp, +small, strike, strong, sub, sup, tt, var, +b, u, i, center, +dl, dt, dd, ol, ul, li, +fieldset, form, label, legend, +table, caption, tbody, tfoot, thead, tr, th, td, +article, aside, canvas, details, embed, +figure, figcaption, footer, header, +menu, nav, output, ruby, section, summary, +time, mark, audio, video, input { + margin: 0; + padding: 0; + border: 0; + font-size: 100%; + font-weight: normal; + vertical-align: baseline; +} + +/* HTML5 display-role reset for older browsers */ +article, aside, details, figcaption, figure, +footer, header, menu, nav, section { + display: block; +} +body { + line-height: 1; +} + +blockquote, q { + quotes: none; +} + +blockquote:before, blockquote:after, +q:before, q:after { + content: none; +} + +table { + border-collapse: collapse; + border-spacing: 0; +} + +/* custom */ +a { + color: #7e8c8d; + text-decoration: none; + -webkit-backface-visibility: hidden; +} + +li { + list-style: none; +} + +::-webkit-scrollbar { + width: 5px; + height: 5px; +} + +::-webkit-scrollbar-track-piece { + background-color: rgba(0, 0, 0, 0.2); + -webkit-border-radius: 6px; +} + +::-webkit-scrollbar-thumb:vertical { + height: 5px; + background-color: rgba(125, 125, 125, 0.7); + -webkit-border-radius: 6px; +} + +::-webkit-scrollbar-thumb:horizontal { + width: 5px; + background-color: rgba(125, 125, 125, 0.7); + -webkit-border-radius: 6px; +} + +html, body { + width: 100%; + height: 100%; +} + +body { + -webkit-text-size-adjust: none; + -webkit-tap-highlight-color: rgba(0, 0, 0, 0); +} + +.cursor{ + cursor: pointer +} diff --git a/views/T.header.tpl b/views/T.header.tpl index e2ea9de..68465eb 100644 --- a/views/T.header.tpl +++ b/views/T.header.tpl @@ -4,27 +4,9 @@
- -