Created
April 3, 2021 17:26
-
-
Save omirobarcelo/804576586b3d39309c7819ce9f7119fc to your computer and use it in GitHub Desktop.
WebHero - 4 - Succinct feedback
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{#if serverRes} | |
<div class="alert success" role="alert"> | |
<img | |
src={serverRes.successful ? 'check.svg' : 'cross.svg'} | |
alt={serverRes.successful ? 'success icon' : 'error icon'} | |
/> | |
<p> | |
{ | |
serverRes.successful | |
? 'Your contact request was successfully received!' | |
: serverRes.errorMsg | |
? serverRes.errorMsg | |
: 'There was a problem sending your contact request. Please, try again.' | |
} | |
</p> | |
</div> | |
{/if} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment