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.
#582 - break off footer into comp. files
- Loading branch information
1 parent
c97db22
commit e484b35
Showing
7 changed files
with
100 additions
and
75 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
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,43 @@ | ||
<template> | ||
<!-- Footer social links. --> | ||
<div class="usa-footer__contact-links mobile-lg:grid-col-6"> | ||
<h2 class="usa-footer__contact-heading">Find us on social media</h2> | ||
<div class="usa-footer__social-links en-links grid-row grid-gap-1"> | ||
<!-- Footer social links loop. --> | ||
<div | ||
v-for="item in $t('beta.footer.social')" | ||
:id="`social-id-${item.linkID}`" | ||
:key="`social-id-${item.linkID}`" | ||
class="grid-col-auto"> | ||
<a | ||
class="usa-social-link" | ||
:href="sanitizedBearsUrl(item.linkURL)"> | ||
<img | ||
:src="require(`@/assets/img/${item.icon}`)" | ||
:alt="item.name" | ||
:width="item.width" | ||
:height="item.height" /> | ||
<span class="is-hidden">{{ item.name }}</span> | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import sanitizeUrl from "~/mixins/SanitizeBears" | ||
export default { | ||
name: "BetaUsaGovFooterNav", | ||
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
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