Skip to content

Commit

Permalink
change logo and favicon
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickhener committed Jul 5, 2024
1 parent 0b9776a commit eebf27f
Show file tree
Hide file tree
Showing 11 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion assets/css/general_theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ h6 {
align-items: center;

img {
width: 65px;
height: 100px;
}
}

Expand Down
4 changes: 2 additions & 2 deletions assets/js/color-modes.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@
document.documentElement.setAttribute('data-bs-theme', 'dark');
document
.getElementById('goshslogo')
.setAttribute('src', '/images/goshs-logo-dark.png?static');
.setAttribute('src', '/images/banner-dark.png?static');
} else {
document.documentElement.setAttribute('data-bs-theme', theme);
document
.getElementById('goshslogo')
.setAttribute('src', '/images/goshs-logo-light.png?static');
.setAttribute('src', '/images/banner-light.png?static');
}
};

Expand Down
2 changes: 1 addition & 1 deletion httpserver/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func (fs *FileServer) handler(w http.ResponseWriter, req *http.Request) {
upath := req.URL.Path

// Ignore default browser call to /favicon.ico
if upath == "/favicon.ico" {
if upath == "/favicon.png" {
return
}

Expand Down
2 changes: 1 addition & 1 deletion httpserver/static/css/style.css

Large diffs are not rendered by default.

Binary file added httpserver/static/images/banner-dark.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 httpserver/static/images/banner-light.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 httpserver/static/images/banner.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 httpserver/static/images/favicon.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 httpserver/static/images/new-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion httpserver/static/js/color-modes.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions httpserver/static/templates/header.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>goshs - {{ .Directory.AbsPath }}</title>
<!-- stylesheets -->
<link rel="icon" type="image/gif" href="/images/favicon.gif?static" />
<link rel="icon" type="image/gif" href="/images/favicon.png?static" />
<link rel="stylesheet" href="/3rdparty/datatable/datatables.min.css?static" />
<link rel="stylesheet" href="/3rdparty/dropzone/basic.min.css?static" />
<link rel="stylesheet" href="/3rdparty/dropzone/dropzone.min.css?static" />
Expand Down Expand Up @@ -80,7 +80,7 @@
<!-- Header -->
<header id="header" class="d-flex align_item_center mb-2">
<div onclick="document.location='/'" class="logo">
<img id="goshslogo" src="/images/goshs-logo-dark.png?static" alt="goshs" />
<img id="goshslogo" src="/images/banner-dark.png?static" alt="goshs" />
</div>
<div class="heading_title">
<h2>Directory: {{.Directory.AbsPath}}</h2>
Expand Down

0 comments on commit eebf27f

Please sign in to comment.