Skip to content

Commit

Permalink
add bigger font-size on all survey buttons and adjust top margin for …
Browse files Browse the repository at this point in the history
…welcome title
  • Loading branch information
dacianavram committed Jul 19, 2023
1 parent b19dd04 commit 932f9e1
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,15 @@ function handleClick(button) {
{/if}
<div class="flex flex-row justify-around mt-10 mb-5 text-center">
<div>
<button class="relative px-8 overflow-hidden transition-all transform btn bg-cpurple border-warning text-warning" on:click="{() => handleClick('back')}">
<button class="relative px-8 overflow-hidden transition-all transform btn bg-cpurple border-warning text-warning text-lg" on:click="{() => handleClick('back')}">
{$_("dapps.o-homepage.components.survey.button.goBack")}</button>
</div>
<div>
{#if $myForm.dirty}
<button class="relative px-8 overflow-hidden transition-all transform btn btn-primary bg-primary text-cpurple" on:click="{() => handleClick('next')}" disabled="{!$myForm.valid}">
<button
class="relative px-8 overflow-hidden transition-all transform btn btn-primary bg-primary text-cpurple text-lg"
on:click="{() => handleClick('next')}"
disabled="{!$myForm.valid}">
{$_("dapps.o-homepage.components.survey.button.next")}</button>
{/if}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,15 @@ function handleClick(button) {
{/if}
<div class="flex flex-row justify-around mt-10 mb-5 text-center">
<div>
<button class="relative px-8 overflow-hidden transition-all transform btn bg-cpurple border-warning text-warning" on:click="{() => handleClick('back')}">
<button class="relative px-8 overflow-hidden transition-all transform btn bg-cpurple border-warning text-warning text-lg" on:click="{() => handleClick('back')}">
{$_("dapps.o-homepage.components.survey.button.goBack")}</button>
</div>
<div>
{#if $myForm.dirty}
<button class="relative px-8 overflow-hidden transition-all transform btn btn-primary bg-primary text-cpurple" on:click="{() => handleClick('next')}" disabled="{!$myForm.valid}">
<button
class="relative px-8 overflow-hidden transition-all transform btn btn-primary bg-primary text-cpurple text-lg"
on:click="{() => handleClick('next')}"
disabled="{!$myForm.valid}">
{$_("dapps.o-homepage.components.survey.button.next")}</button>
{/if}
</div>
Expand Down
4 changes: 2 additions & 2 deletions shell/src/dapps/o-survey/components/SignUpInvitation.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ async function handleClick(button) {
<div class="text-sm text-center text-info">
<Label key="dapps.o-homepage.components.survey.signupInvitation.noInvitationCode" />
</div>
<button class="relative px-8 mt-6 overflow-hidden transition-all transform btn btn-primary" on:click="{() => handleClick('back')}">
<button class="relative px-8 mt-6 overflow-hidden transition-all transform btn btn-primary text-lg" on:click="{() => handleClick('back')}">
{$_("dapps.o-homepage.components.survey.button.goBack")}</button>
{:else}
<button class="relative px-8 overflow-hidden transition-all transform btn btn-primary" on:click="{() => handleClick('submit')}">
<button class="relative px-8 overflow-hidden transition-all transform btn btn-primary text-lg" on:click="{() => handleClick('submit')}">
{$_("dapps.o-homepage.components.survey.button.signUpNow")}</button>
{/if}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ const options = {
{#if $inviteUrl}
<span class="text-sm grow text-success">{$_("dapps.o-homepage.components.survey.userDataCollection.inviteValid")}</span>
{:else}
<button class="px-8 overflow-hidden transition-all transform grow btn btn-primary" on:click="{() => handleClick('openQRCode')}" disabled="{$inviteUrl}">
<button class="px-8 overflow-hidden transition-all transform grow btn btn-primary text-lg" on:click="{() => handleClick('openQRCode')}" disabled="{$inviteUrl}">
{$_("dapps.o-homepage.components.survey.button.scanInviteNow")}
</button>
{/if}
Expand All @@ -279,12 +279,15 @@ const options = {
{/if}
<div class="flex flex-row justify-between w-full pr-4 mt-10 mb-5 text-center">
<div>
<button class="relative px-8 overflow-hidden transition-all transform btn bg-cpurple border-warning text-warning" on:click="{() => handleClick('back')}">
<button class="relative px-8 overflow-hidden transition-all transform btn bg-cpurple border-warning text-warning text-lg" on:click="{() => handleClick('back')}">
{$_("dapps.o-homepage.components.survey.button.goBack")}</button>
</div>
<div>
{#if $myForm.dirty}
<button class="relative px-8 overflow-hidden transition-all transform btn btn-primary bg-primary text-cpurple" on:click="{() => handleClick('next')}" disabled="{!$myForm.valid}">
<button
class="relative px-8 overflow-hidden transition-all transform btn btn-primary bg-primary text-cpurple text-lg"
on:click="{() => handleClick('next')}"
disabled="{!$myForm.valid}">
{$_("dapps.o-homepage.components.survey.button.next")}</button>
{/if}
</div>
Expand Down
4 changes: 2 additions & 2 deletions shell/src/dapps/o-survey/components/WelcomeSurvey.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function handleClick() {
</script>

<div class="p-1 px-4 overflow-hidden text-white whitespace-pre-line xs:p-3 xs:-mt-2 font-heading">
<div class="flex flex-col items-center justify-center">
<div class="flex flex-col items-center justify-center mt-8">
<div class="ml-2 text-4xl text-white uppercase">
<Label key="dapps.o-homepage.components.survey.title.top" />
</div>
Expand All @@ -30,7 +30,7 @@ function handleClick() {
</div>
<div class="flex flex-row items-start justify-around pt-8 mb-5 text-center align-top">
<div>
<button class="relative px-8 overflow-hidden transition-all transform btn btn-primary bg-primary text-cpurple" on:click="{() => handleClick()}">
<button class="relative px-8 overflow-hidden transition-all transform btn btn-primary bg-primary text-cpurple text-lg" on:click="{() => handleClick()}">
{$_("dapps.o-homepage.components.survey.button.next")}</button>
</div>
</div>
Expand Down

0 comments on commit 932f9e1

Please sign in to comment.