Skip to content

Commit

Permalink
fix: update intro with new logos
Browse files Browse the repository at this point in the history
  • Loading branch information
knownasilya committed Mar 13, 2022
1 parent c38b0ca commit 6ed983c
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
Binary file added app/assets/img/logo-ondark.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 modified app/assets/img/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions app/bg/protocols/beaker.js
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,14 @@ async function beakerProtocol(request, respond) {
path.join(__dirname, 'assets/img/logo2.png')
);
}
if (requestUrl.startsWith('beaker://assets/logo-ondark')) {
return cb(
200,
'OK',
'image/png',
path.join(__dirname, 'assets/img/logo-ondark.png')
);
}
if (requestUrl.startsWith('beaker://assets/logo')) {
return cb(
200,
Expand Down
2 changes: 0 additions & 2 deletions app/userland/hypercore-tools/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@ import css from '../css/main.css.js';
import {
toHex,
isSameOrigin,
toNiceDomain,
shorten,
} from 'beaker://app-stdlib/js/strings.js';
import { timeDifference } from 'beaker://app-stdlib/js/time.js';
import bytes from 'beaker://app-stdlib/vendor/bytes/index.js';
import 'beaker://app-stdlib/js/com/hover-card.js';

Expand Down
2 changes: 1 addition & 1 deletion app/userland/setup/intro.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ customElements.define(

render(shadow) {
shadow.innerHTML = `
<img id="logo" src="beaker://assets/logo">
<img id="logo" src="beaker://assets/logo-ondark">
<h1><span>Welcome</span> <span>to</span> <span>Nomad</span></h1>
<a>Get Started &gt;</a>
<style>
Expand Down

0 comments on commit 6ed983c

Please sign in to comment.