Skip to content
This repository was archived by the owner on Apr 25, 2023. It is now read-only.

Commit b51f59c

Browse files
committed
github ribbon
1 parent 49f5222 commit b51f59c

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

front/src/main/app.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import { ReceiveActions, ReceiveState, ReceiveView, initialReceiveState, rawRece
1414
import { SendActions, SendState, SendView, initialSendState, rawSendActions } from './panels/send'
1515
import { TransactionsView, TxsActions, TxsState, initialTxsState, rawTxsActions } from './panels/transactions'
1616
import { WelcomeActions, WelcomeState, WelcomeView, initialWelcomeState, rawWelcomeActions } from './panels/welcome'
17+
import { GithubRibbon } from './lib/github-ribbon'
1718

1819
export interface State {
1920
location: LocationState
@@ -75,6 +76,7 @@ const rawActions: Actions = {
7576

7677
const view = (state: State, actions: Actions) => (
7778
<div>
79+
<GithubRibbon />
7880
<p class="tc bg-yellow">
7981
{successOf(state.info)
8082
.fmap((i) => `Network: ${i.network}`)
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { h } from 'hyperapp'
2+
3+
export function GithubRibbon() {
4+
return <a href="https://github.com/witoldsz/semux-light" target="_blank">
5+
<img style={{
6+
position: 'absolute',
7+
top: '0',
8+
right: '0',
9+
border: '0',
10+
}}
11+
src="https://s3.amazonaws.com/github/ribbons/forkme_right_orange_ff7600.png"
12+
alt="Fork me on GitHub"
13+
/>
14+
</a>
15+
}

0 commit comments

Comments
 (0)