Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Training fund page #11821

Open
wants to merge 19 commits into
base: main
Choose a base branch
from
Open
Binary file not shown.
Binary file not shown.
Binary file added apps/web/src/assets/img/it-training-fund-2.webp
Binary file not shown.
Binary file added apps/web/src/assets/img/it-training-fund-3.webp
Binary file not shown.
5 changes: 5 additions & 0 deletions apps/web/src/components/Router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,11 @@ const createRoute = (locale: Locales) =>
},
],
},
{
path: "it-training-fund",
lazy: () =>
import("../pages/ItTrainingFundPage/ItTrainingFundPage"),
},
{
path: "*",
loader: () => {
Expand Down
3 changes: 3 additions & 0 deletions apps/web/src/hooks/useRoutes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,9 @@ const getRoutes = (lang: Locales) => {
managerRequestHistory: () =>
[baseUrl, "manager", "talent-requests"].join("/"),

// IT Training Fund
itTrainingFund: () => [baseUrl, "it-training-fund"].join("/"),

/**
* Deprecated
*
Expand Down
148 changes: 148 additions & 0 deletions apps/web/src/lang/fr.json

Large diffs are not rendered by default.

61 changes: 31 additions & 30 deletions apps/web/src/pages/Home/HomePage/components/Featured/Featured.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,42 +8,43 @@ import FeatureBlock from "~/components/FeatureBlock/FeatureBlock";
import FlourishContainer from "~/components/FlourishContainer/FlourishContainer";
import useRoutes from "~/hooks/useRoutes";
import glassesOnBooks from "~/assets/img/glasses-on-books.webp";
// import digitalAmbitionImg from "~/assets/img/check_it_out_digital_ambition.webp";
import iapManagerImg from "~/assets/img/check_it_out_IAP_manager_callout.webp";
import itTrainingFundImg from "~/assets/img/check_it_out_it_training_fund.webp";

const Featured = () => {
const intl = useIntl();
const paths = useRoutes();

// TEMP: Removed in https://github.com/GCTC-NTGC/gc-digital-talent/pull/6143
// const digitalAmbition = {
// key: "digital-ambition",
// title: intl.formatMessage({
// defaultMessage: "The Digital Ambition",
// id: "tTuBmE",
// description: "Title for the digital ambition featured item",
// }),
// summary: intl.formatMessage({
// defaultMessage:
// 'The Digital Ambition outlines the Government of Canada\'s commitment to create modern, accessible digital services. Achieving these priorities will result in a government that provides improved "digital-first," user-centred, and barrier-free services and programs.',
// id: "CbzWqJ",
// description: "Summary of the digital ambition featured item",
// }),
// img: { path: digitalAmbitionImg },
// link: {
// path:
// locale === "en"
// ? "https://www.canada.ca/en/government/system/digital-government/government-canada-digital-operations-strategic-plans/canada-digital-ambition.html"
// : "https://www.canada.ca/fr/gouvernement/systeme/gouvernement-numerique/plans-strategiques-operations-numeriques-gouvernement-canada/ambition-numerique-canada.html",
// label: intl.formatMessage({
// defaultMessage: "Read the Digital Ambition",
// id: "Gil1Zj",
// description: "Link text to read the Digital Ambition",
// }),
// },
// };

const featured = [
{
key: "it-training-fund",
title: intl.formatMessage({
defaultMessage: "IT Community Training and Development Fund",
id: "030Tsr",
description: "Title for the it training fund page",
}),
summary: (
<p>
{intl.formatMessage({
defaultMessage:
"Through this fund, IT employees can now access a variety of additional training opportunities, including self-paced learning, instructor-led courses, and certification exam vouchers.",
id: "xfdk0g",
description: "Summary of the it training fund featured item",
})}
</p>
),

img: { path: itTrainingFundImg, position: "center" },
link: {
path: paths.itTrainingFund(),
label: intl.formatMessage({
defaultMessage:
"Learn more<hidden> about the IT Community Training and Development Fund</hidden>",
id: "g1YoPl",
description: "Link text to the IT training fund",
}),
},
},
{
key: "directive-on-digital-talent",
title: intl.formatMessage({
Expand Down Expand Up @@ -119,7 +120,7 @@ const Featured = () => {
</Heading>
<div
data-h2-display="base(grid)"
data-h2-grid-template-columns="base(1fr) p-tablet(repeat(2, minmax(0, 1fr)))"
data-h2-grid-template-columns="base(1fr) p-tablet(repeat(3, minmax(0, 1fr)))"
data-h2-gap="base(x1)"
data-h2-padding="base(x2, 0, 0, 0)"
>
Expand Down
Loading
Loading