Skip to content

Commit

Permalink
add field for optional caption to prize message (#4567)
Browse files Browse the repository at this point in the history
  • Loading branch information
julianjelfs authored Oct 12, 2023
1 parent 9f46295 commit f35005f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
12 changes: 6 additions & 6 deletions frontend/app/src/components/home/PrizeContent.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@
}
}
.prize {
max-width: 400px;
}
.top {
position: relative;
padding: 30px 0 30px 0;
Expand Down Expand Up @@ -178,17 +182,13 @@
}
}
.caption {
@include font(bold, normal, fs-100);
margin-bottom: $sp3;
}
.number-claimed {
@include font(bold, normal, fs-80);
margin-bottom: $sp3;
}
.click {
.click,
.caption {
@include font(book, normal, fs-80);
color: var(--txt);
margin-bottom: $sp4;
Expand Down
10 changes: 10 additions & 0 deletions frontend/app/src/components/home/PrizeContentBuilder.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import CryptoSelector from "./CryptoSelector.svelte";
import EqualDistribution from "../icons/EqualDistribution.svelte";
import RandomDistribution from "../icons/RandomDistribution.svelte";
import TextArea from "../TextArea.svelte";
const ONE_HOUR = 1000 * 60 * 60;
const ONE_DAY = ONE_HOUR * 24;
Expand Down Expand Up @@ -249,6 +250,15 @@
maxAmount={maxAmount(cryptoBalance)}
bind:amount={draftAmount} />
</div>
<div class="message">
<Legend label={$_("tokenTransfer.message")} />
<TextArea
maxlength={200}
rows={3}
autofocus={false}
placeholder={$_("tokenTransfer.messagePlaceholder")}
bind:value={message} />
</div>
<div class="winners">
<Legend
label={$_("prizes.numberOfWinners")}
Expand Down

0 comments on commit f35005f

Please sign in to comment.