Skip to content

Commit

Permalink
Add nostr icon and mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
dshanske committed Oct 22, 2023
1 parent 0b426f2 commit be1c4c6
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 7 deletions.
2 changes: 1 addition & 1 deletion css/syn-large.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/syn-large.min.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/syn-medium.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/syn-medium.min.css.map

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions css/syn.css

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

2 changes: 1 addition & 1 deletion css/syn.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/syn.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/syn.min.css.map

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions includes/class-syn-link-domain-icon-map.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@ class Syn_Link_Domain_Icon_Map {
'itunes.apple.com' => 'applemusic',
'reading.am' => 'book',
'blogspot.com' => 'blogger',
'astral.ninja' => 'nostr',
'nos.social' => 'nostr',
'iris.to' => 'nostr',
'snort.social' => 'nostr',
'app.coracle.social' => 'nostr',
'primal.net' => 'nostr',
'habla.news' => 'nostr',
'nostr.band' => 'nostr',

);

// Try to get the correct icon for the majority of sites
Expand Down
3 changes: 3 additions & 0 deletions sass/_icons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@
fill:#EF462D;

}
.nostr {
fill:#662482;
}
1 change: 1 addition & 0 deletions svgs/nostr.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit be1c4c6

Please sign in to comment.