Skip to content

Commit

Permalink
Merge pull request #110 from cds-snc/alpha-banner
Browse files Browse the repository at this point in the history
feat: add alpha banner to each page above header
  • Loading branch information
Dylan authored Jul 5, 2022
2 parents fd10e1e + c41e085 commit f0694de
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions app/components/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
</div>
</div> -->
<!-- CDS Banner-->
<Banner />

<!-- <nav class="bg-white border-cds-yellow border-t-2 text-black"> -->
<nav class="bg-white text-black">
Expand Down
3 changes: 1 addition & 2 deletions app/layouts/expandedSearch.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
<template>
<div class="flex flex-col min-h-screen">
<!-- <Banner /> -->
<Header />
<main class="flex-grow">
<Banner />
<!-- <BannerSearch /> -->
<div class="max-w-7xl mx-auto px-4">
<Nuxt />
</div>
Expand Down
2 changes: 2 additions & 0 deletions app/nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ module.exports = {
name: 'English',
dir: 'ltr',
domain: process.env.DOMAIN_EN,
// For local testing
// domain: 'en.learning-resources:8080',
},
{
Expand All @@ -195,6 +196,7 @@ module.exports = {
file: 'fr.json',
name: 'Français',
domain: process.env.DOMAIN_FR,
// For local testing
// domain: 'fr.learning-resources:8080',
},
],
Expand Down
2 changes: 1 addition & 1 deletion app/pages/fr/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export default {
async asyncData({ $axios, payload }) {
// Contentful --

const contentfulEndpoint = `https://graphql.contentful.com/content/v1/spaces/${process.env.CTF_SPACE_ID}`;
const contentfulEndpoint = `https://graphql.contentful.com/content/v1/spaces/${process.env.CTF_SPACE_ID}`

// const locale = app.i18n.locale + '-CA'

Expand Down
3 changes: 1 addition & 2 deletions app/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,7 @@ export default {
layout: 'expandedSearch',

async asyncData({ $axios, payload }) {

const contentfulEndpoint = `https://graphql.contentful.com/content/v1/spaces/${process.env.CTF_SPACE_ID}`;
const contentfulEndpoint = `https://graphql.contentful.com/content/v1/spaces/${process.env.CTF_SPACE_ID}`

// const locale = app.i18n.locale + '-CA'

Expand Down
1 change: 1 addition & 0 deletions app/pages/resource/_resource.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ import { documentToHtmlString } from '@contentful/rich-text-html-renderer'
import { BLOCKS } from '@contentful/rich-text-types'

export default {
layout: 'expandedSearch',
// Hooks ------------------------------------------------------------------------------------------------------------

async asyncData({ app, params, $axios, store, payload }) {
Expand Down
2 changes: 2 additions & 0 deletions app/pages/topic/_topic.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ export default {
},
},
layout: 'expandedSearch',
// Hooks ------------------------------------------------------------------------------------------------------------
async asyncData({ app, params, $axios, store, payload }) {
Expand Down

0 comments on commit f0694de

Please sign in to comment.