This repository has been archived by the owner on May 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0faf9ff
commit 2f1ebee
Showing
3 changed files
with
49 additions
and
29 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<template> | ||
<!-- Subscribe to the newsletter. --> | ||
<div class="tablet:grid-col-4"> | ||
<div class="usa-sign-up"> | ||
<h2 class="usa-sign-up__heading">{{ $t("footer.GroupThree.header") }}</h2> | ||
<form | ||
class="usa-form" | ||
action="https://connect.usa.gov/subscribe" | ||
method="get"> | ||
<label | ||
class="usa-label" | ||
for="signup-email"> | ||
{{ $t("footer.GroupThree.formLabel") }} | ||
</label> | ||
<input | ||
id="signup-email" | ||
class="usa-input" | ||
name="email" | ||
type="email" /> | ||
<button | ||
class="usa-button" | ||
type="submit"> | ||
{{ $t("footer.GroupThree.buttonText") }} | ||
</button> | ||
</form> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import sanitizeUrl from "~/mixins/SanitizeBears" | ||
export default { | ||
name: "BetaUsaGovFooterSignUp", | ||
mixins: [sanitizeUrl], | ||
methods: { | ||
sanitizedBearsUrl(benefitUrl, defaultValue = "#") { | ||
if (benefitUrl && benefitUrl.length > 0) { | ||
return this.sanitizeUrl(benefitUrl) | ||
} else { | ||
return defaultValue | ||
} | ||
}, | ||
}, | ||
} | ||
</script> |
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