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
2c04d5a
commit 9461df9
Showing
4 changed files
with
177 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
<template> | ||
<footer class="usa-footer usa-footer--big"> | ||
<div class="usa-footer__primary-section"> | ||
<div class="grid-container"> | ||
<div class="grid-row grid-gap"> | ||
<div class="tablet:grid-col-8">left</div> | ||
|
||
<div class="tablet:grid-col-4">right</div> | ||
<ul> | ||
<li | ||
v-for="item in beta.footer.column1" | ||
:key="item.linkText" | ||
class="usa-process-list__item padding-bottom-4"> | ||
<p> | ||
{{ $t("item.linkText") }} | ||
{{ item.linkText }} | ||
</p> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
</footer> | ||
</template> | ||
|
||
<script> | ||
import _ from "lodash" | ||
// import { tObj } from "~/services/translation" | ||
import sanitizeUrl from "~/mixins/SanitizeBears" | ||
export default { | ||
mixins: [sanitizeUrl], | ||
props: { | ||
testEnv: { | ||
type: Boolean, | ||
default: false, | ||
required: false, | ||
}, | ||
}, | ||
data() { | ||
return { | ||
uniqueId: _.uniqueId("foo-"), | ||
} | ||
}, | ||
switchLanguage() { | ||
let route = "" | ||
const locale = this.$i18n.locale | ||
if (locale === "en") { | ||
route = `/es/` | ||
this.$i18n.setLocale("es") | ||
} else { | ||
// route = `/` | ||
this.$i18n.setLocale("en") | ||
} | ||
this.$router.push(route) | ||
}, | ||
mounted() { | ||
this.uniqueId = _.uniqueId("id-") | ||
}, | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
<template> | ||
<div> | ||
<div class="grid-container"> | ||
<div class="grid-row"> | ||
<div class="grid-col"> | ||
<div | ||
class="usa-summary-box footer-summary-box" | ||
role="region" | ||
aria-labelledby="summary-box-key-information-disclaimer"> | ||
<div class="usa-summary-box__body"> | ||
<h2 | ||
id="summary-box-key-information-disclaimer" | ||
class="usa-summary-box__heading"> | ||
{{ disclaimer.heading }} | ||
</h2> | ||
<div class="usa-summary-box__text"> | ||
<ul class="usa-list"> | ||
<li style="max-width: unset"> | ||
{{ disclaimer.bullet }} | ||
</li> | ||
<li style="max-width: unset"> | ||
{{ disclaimer.bullet1 }} | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="grid-container usa-footer__return-to-top"> | ||
<a | ||
id="return-to-top" | ||
href="#" | ||
@click.prevent="scrollToTop"> | ||
{{ $t("returnToTop") }} | ||
</a> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import { tObj } from "~/services/translation" | ||
export default { | ||
props: { | ||
testEnv: { | ||
type: Boolean, | ||
default: false, | ||
required: false, | ||
}, | ||
}, | ||
data() { | ||
return { | ||
disclaimer: {}, | ||
} | ||
}, | ||
async fetch() { | ||
this.disclaimer = tObj.call(this, await this.$content("disclaimer").fetch()) | ||
}, | ||
methods: { | ||
scrollToTop() { | ||
window.scrollTo(0, 0) | ||
}, | ||
}, | ||
} | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
.footer-summary-box { | ||
border-color: transparent; | ||
background-color: transparent; | ||
color: #1b1b1b; | ||
} | ||
</style> |
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