-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #66 from savoirfairelinux/Dev-Move_CIUSSS_logo_to_top
Dev move ciusss logo to top
- Loading branch information
Showing
40 changed files
with
8,082 additions
and
5,866 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: 🚀 Build and deploy subdomain | ||
on: | ||
push: | ||
branches: | ||
- subdomain_aom | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 14 | ||
cache: 'npm' | ||
- name: Install dependencies | ||
run: npm i | ||
- name: Install Browser List | ||
run: npx browserslist@latest --update-db | ||
- name: Build gatsby for translation | ||
run: npm run build | ||
- name: Extract translations | ||
run: npm run extract | ||
- name: Compile translations | ||
run: npm run compile | ||
- name: Build gatsby | ||
run: npm run build | ||
- name: 📂 Deploy to aom.prismref.ca | ||
uses: SamKirkland/[email protected] | ||
with: | ||
server: ftp.prismref.ca | ||
username: ${{ secrets.ftp_username }} | ||
password: ${{ secrets.ftp_password }} | ||
local-dir: public/ | ||
server-dir: /aom.prismref.ca/ |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Binary file not shown.
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,56 @@ | ||
import React from "react" | ||
import { Link } from "gatsby" | ||
|
||
import CookieConsent from "react-cookie-consent"; | ||
|
||
/* Translation using lingui */ | ||
import { I18nProvider } from "@lingui/react" | ||
import catalogEn from "../locales/en/messages" | ||
import catalogFr from "../locales/fr/messages" | ||
import { Trans } from "@lingui/macro" | ||
|
||
const ConsentPopup = () => { | ||
const [language, setLanguage] = React.useState("en") | ||
|
||
React.useEffect(() => { | ||
if (localStorage.getItem("language") !== "") { | ||
setLanguage(localStorage.getItem("language")) | ||
} | ||
}, []) | ||
|
||
|
||
return ( | ||
<I18nProvider | ||
language={language} | ||
catalogs={{ | ||
en: catalogEn, | ||
fr: catalogFr, | ||
}} | ||
> | ||
<CookieConsent | ||
location="bottom" | ||
buttonText={<Trans id="msg.tracking_consent_message_accept">Accept</Trans>} | ||
declineButtonText={<Trans id="msg.tracking_consent_message_decline">Decline</Trans>} | ||
cookieName="consentGuiven" | ||
style={{ background: "#e0e2e5", color: "#323232", fontWeight: "500" }} | ||
buttonStyle={{ background: "#ffffff", color: "#323232", fontSize: "13px", width: "6rem" }} | ||
declineButtonStyle={{background: "#323232", color: "#ffffff", fontSize: "13px", width: "6rem" }} | ||
expires={150} | ||
onAccept={() => { | ||
window._paq.push(['setConsentGiven']); | ||
}} | ||
enableDeclineButton | ||
> | ||
<Trans id="msg.tracking_consent_text">We use cookies to collect information about the use of this Website to help us evaluate and improve this new Referral Service. To learn more, read our </Trans>{" "} | ||
<Link | ||
to="/privacy-policy" | ||
onClick={() => { | ||
localStorage.setItem("language", language) | ||
}} | ||
><Trans id="msg.tracking_consent_text_privacy_policy">privacy policy</Trans></Link>. | ||
</CookieConsent> | ||
</I18nProvider> | ||
) | ||
} | ||
|
||
export default ConsentPopup |
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,47 @@ | ||
import React from "react" | ||
import { Link } from "gatsby" | ||
|
||
import CookieConsent from "react-cookie-consent"; | ||
|
||
/* Translation using lingui */ | ||
import { I18nProvider } from "@lingui/react" | ||
import catalogEn from "../locales/en/messages" | ||
import catalogFr from "../locales/fr/messages" | ||
import { Trans } from "@lingui/macro" | ||
|
||
const HomeConsentPopup = () => { | ||
|
||
|
||
return ( | ||
<CookieConsent | ||
location="bottom" | ||
buttonText="I accept/ J'accepte" | ||
declineButtonText="I decline/ Je refuse" | ||
cookieName="consentGuiven" | ||
style={{ background: "#e0e2e5", color: "#323232", fontWeight: "500" }} | ||
buttonStyle={{ background: "#ffffff", color: "#323232", fontSize: "13px", width: "10rem" }} | ||
declineButtonStyle={{background: "#323232", color: "#ffffff", fontSize: "13px", width: "10rem" }} | ||
expires={150} | ||
onAccept={() => { | ||
window._paq.push(['setConsentGiven']); | ||
}} | ||
enableDeclineButton | ||
> | ||
We use cookies to collect information about the use of this Website to help us evaluate and improve this new Referral Service. To learn more, read our <Link | ||
to="/privacy-policy" | ||
onClick={() => { | ||
localStorage.setItem("language", "en") | ||
}} | ||
>privacy policy</Link>.<br/><br/> | ||
Nous utilisons des cookies pour collecter des informations concernant l’utilisation de ce site web et ainsi nous aider à évaluer et à améliorer ce nouveau service de référence. Pour en connaître davantage, consultez notre {" "} | ||
<Link | ||
to="/privacy-policy" | ||
onClick={() => { | ||
localStorage.setItem("language", "fr") | ||
}} | ||
>politique de confidentialité</Link>. | ||
</CookieConsent> | ||
) | ||
} | ||
|
||
export default HomeConsentPopup |
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
Oops, something went wrong.