-
Notifications
You must be signed in to change notification settings - Fork 9
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 #29 from dgading/PGOV-322_369_370-goal-page
Goal Page, Breadcrumbs, and Footer
- Loading branch information
Showing
273 changed files
with
952 additions
and
257 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,22 @@ | ||
uuid: 2e0e5832-3a42-4b66-8451-092421bc836e | ||
langcode: en | ||
status: true | ||
dependencies: | ||
module: | ||
- node | ||
id: goal | ||
label: Goal | ||
type: 'canonical_entities:node' | ||
pattern: '/agencies[node:field_plan:entity:field_agency:entity:field_acronym]/[node:title]' | ||
selection_criteria: | ||
9702f5f9-3d17-4be3-baea-5c2cf4f01fe3: | ||
id: 'entity_bundle:node' | ||
negate: false | ||
uuid: 9702f5f9-3d17-4be3-baea-5c2cf4f01fe3 | ||
context_mapping: | ||
node: node | ||
bundles: | ||
goal: goal | ||
selection_logic: and | ||
weight: -5 | ||
relationships: { } |
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,28 @@ | ||
export function FieldGoalType({field_goal_type}) { | ||
let goalTypeName = ""; | ||
let goalTypeClasses = ""; | ||
switch (field_goal_type) { | ||
case "apg": | ||
goalTypeName = "Agency priority goal"; | ||
goalTypeClasses = "bg-primary-vivid"; | ||
break; | ||
case "strategic": | ||
goalTypeName = "Strategic goal"; | ||
goalTypeClasses = "bg-base-darkest"; | ||
break; | ||
default: | ||
goalTypeClasses = "bg-base"; | ||
break; | ||
} | ||
|
||
return ( | ||
<div className={`goal-type goal-type--${field_goal_type}`}> | ||
<span className={`usa-tag ${goalTypeClasses} text-white`}> | ||
{goalTypeName} | ||
</span> | ||
</div> | ||
); | ||
} | ||
|
||
|
||
|
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,30 @@ | ||
import Image from "next/image"; | ||
import { absoluteUrl } from "lib/utils"; | ||
|
||
export interface FieldLogoProps { | ||
field_logo: { | ||
name: string; | ||
field_media_image: { | ||
uri: { | ||
url: string; | ||
} | ||
} | ||
}; | ||
} | ||
|
||
export function FieldLogo({field_logo} : FieldLogoProps) { | ||
const { field_media_image, name } = field_logo; | ||
return ( | ||
<Image | ||
src={absoluteUrl(field_media_image.uri.url)} | ||
width={150} | ||
height={150} | ||
alt={name} | ||
priority | ||
className="margin-top-3" | ||
/> | ||
); | ||
} | ||
|
||
|
||
|
Oops, something went wrong.