Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change logo and favicon #69

Merged
merged 1 commit into from
Jul 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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