Skip to content

Commit

Permalink
adding favicon
Browse files Browse the repository at this point in the history
  • Loading branch information
robscott committed Apr 17, 2019
1 parent cc9ca63 commit 495a74d
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 5 deletions.
5 changes: 4 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func main() {

c, err := conf.ParseFile(*configPath)
if err != nil {
glog.Println("Error parsing config at " + *configPath, err)
glog.Println("Error parsing config at "+*configPath, err)
os.Exit(1)
}

Expand All @@ -84,6 +84,9 @@ func startDashboardServer(c conf.Configuration, port int) {
dashboard.EndpointHandler(w, r, c, k)
})
http.Handle("/static/", http.StripPrefix("/static/", http.FileServer(http.Dir("public/"))))
http.HandleFunc("/favicon.ico", func(w http.ResponseWriter, r *http.Request) {
http.ServeFile(w, r, "public/favicon.ico")
})
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
if r.URL.Path != "/" {
http.NotFound(w, r)
Expand Down
2 changes: 2 additions & 0 deletions pkg/dashboard/templates/dashboard.gohtml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">

<link rel="icon" type="image/png" href="/static/favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="/static/favicon-16x16.png" sizes="16x16" />
<link href="https://fonts.googleapis.com/css?family=Muli:300,400,700" rel="stylesheet">
<link rel="stylesheet" href="/static/css/normalize.css">
<link rel="stylesheet" href="/static/css/main.css">
Expand Down
9 changes: 5 additions & 4 deletions public/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ body {
}

.namespace .cluster-overview {
height: 240px;
height: 220px;
}

.namespace .cluster-overview .cluster-score {
Expand All @@ -92,12 +92,13 @@ body {

.namespace .cluster-overview .cluster-score .scores {
font-size: 16px;
margin-top: 10px;}
margin-top: 10px;
}

#clusterScoreChart {
width: 550px;
position: relative;
top: -254px;
top: -247px;
left: 120px;
}

Expand All @@ -106,7 +107,7 @@ body {
display: inline-block;
position: relative;
left: -100px;
top: -52px;
top: -47px;
}

.namespace .cluster-overview .result-messages ul {
Expand Down
Binary file added public/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/favicon.ico
Binary file not shown.

0 comments on commit 495a74d

Please sign in to comment.