Created
April 3, 2021 17:25
-
-
Save omirobarcelo/042f9e349f998a28cfbc75011966146b to your computer and use it in GitHub Desktop.
WebHero - 4 - Backend response 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} | |
{#if serverRes.successful} | |
<div class="alert success" role="alert"> | |
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12"> | |
<path stroke-width="2" stroke="white" fill="none" d="M0.5,8 L4,11.5 L11.5,3" /> | |
</svg> | |
<p>Your contact request was successfully received!</p> | |
</div> | |
{:else} | |
<div class="alert error" role="alert"> | |
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12"> | |
<path stroke-width="2" stroke="white" fill="none" d="M0.5,0.5 L11.5,11.5 M11.5,0.5 L0.5,11.5" /> | |
</svg> | |
<p> | |
{serverRes.errorMsg ? serverRes.errorMsg : 'There was a problem sending your contact request. Please, try again.'} | |
</p> | |
</div> | |
{/if} | |
{/if} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment