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

Bold fundraiser warning #277

Merged
merged 6 commits into from
Dec 28, 2017
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
30 changes: 30 additions & 0 deletions app/src/renderer/components/common/FundraiserWarning.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<template lang="pug">
.fundraiser-warning
.fundraiser-warning__title Warning &ndash; Do not enter your fundraiser seed. This software has not been audited. Never enter your 12-word seed while your computer is connected to the internet.
.fundraiser-warning__subtitle Even when we do start supporting fundraiser seeds, don't use it except for testing or with small amounts. Soon we will release a command line interface to use for the signing of transactions offline including support for certain hardware ledgers.
</template>

<script>
export default {
name: 'fundraiser-warning'
}
</script>

<style lang="stylus">
@import '~variables'

.fundraiser-warning
margin-top 2rem
padding 0.75rem 1rem 0.875rem

background app-fg

.fundraiser-warning__title
padding 0 0 0.625rem
font-weight bold
color danger

.fundraiser-warning__subtitle
color dim
font-size sm
</style>
3 changes: 3 additions & 0 deletions app/src/renderer/components/common/NiSessionWelcome.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,19 @@
icon="usb"
title="Sign in with hardware"
subtitle="If you have a Ledger Wallet, choose this option")
fundraiser-warning
.ni-session-footer
</template>

<script>
import {mapGetters} from 'vuex'
import FundraiserWarning from 'common/FundraiserWarning'
import ListItem from 'common/NiListItem'
import LiSession from 'common/NiLiSession'
export default {
name: 'ni-session-welcome',
components: {
FundraiserWarning,
ListItem,
LiSession
},
Expand Down
16 changes: 16 additions & 0 deletions test/unit/specs/__snapshots__/NISessionWelcome.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,14 @@ exports[`NISessionWelcome with accounts has the expected html structure 1`] = `
</div>
</div>
</div>
<div class=\\"fundraiser-warning\\">
<div class=\\"fundraiser-warning__title\\">
Warning – Do not enter your fundraiser seed. This software has not been audited. Never enter your 12-word seed while your computer is connected to the internet.
</div>
<div class=\\"fundraiser-warning__subtitle\\">
Even when we do start supporting fundraiser seeds, don't use it except for testing or with small amounts. Soon we will release a command line interface to use for the signing of transactions offline including support for certain hardware ledgers.
</div>
</div>
</div>
<div class=\\"ni-session-footer\\"></div>
</div>
Expand Down Expand Up @@ -120,6 +128,14 @@ exports[`NISessionWelcome without accounts has the expected html structure 1`] =
</div>
</div>
</div>
<div class=\\"fundraiser-warning\\">
<div class=\\"fundraiser-warning__title\\">
Warning – Do not enter your fundraiser seed. This software has not been audited. Never enter your 12-word seed while your computer is connected to the internet.
</div>
<div class=\\"fundraiser-warning__subtitle\\">
Even when we do start supporting fundraiser seeds, don't use it except for testing or with small amounts. Soon we will release a command line interface to use for the signing of transactions offline including support for certain hardware ledgers.
</div>
</div>
</div>
<div class=\\"ni-session-footer\\"></div>
</div>
Expand Down