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

Add support for subtitles #80

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 13 additions & 9 deletions frameworks/people.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
path: "/frameworks/people"
path: "/people"
title: "🙂 People"
sidebarTitle: "🙂 People"
sidebarGroup:
yaml: true
levels: 7
homepage: false
topics:
- name: "communication: transparent communication; giving and receiving feedback"
- name: "communication"
title:
subtitle: "Transparent communication; giving and receiving feedback"
content:
- level: 1
criteria:
Expand Down Expand Up @@ -43,8 +44,9 @@ topics:
- "Proactively communicates major changes to the board, executive team and senior leaders so there are no surprises. Confidently delivers high-impact, inspiring communications to Monzo and beyond. Makes complex messages clear and easy to understand."
- "Shows vulnerability and is approachable as a leader. Creates a culture where people thrive on feedback. Gives feedback in the moment and accepts constructive feedback graciously. Leads by example on personal development using humility, foresight and EQ."
- "Builds capability of exec team to surface and resolve conflict."
- name: "impact: ambiguity and impact of their work; thinking ahead"
- name: "impact"
title:
subtitle: "Ambiguity and impact of their work; thinking ahead"
content:
- level: 1
criteria:
Expand Down Expand Up @@ -95,8 +97,9 @@ topics:
- "Anticipates and mitigates People problems long before they occur and coaches leaders to do the same. Thinks multiple years ahead but inspires leaders to make things happen now."
- "Champions scalability for the collective to make sure all teams continue to grow in line with the company whilst remaining lean and flexible. Builds the capability of leaders to keep challenging themselves on how to use automation and tech-led solutions to fulfil the People mission."
- "Sets out inspiring vision and sense of purpose to enable leaders to set ambitious goals. Empower and challenge teams to surprise themselves by hitting them."
- name: "knowledge and thinking: breadth and depth of knowledge; thinking skills; self-development"
title:
- name: "knowledge-and-thinking"
title: "🧠 Knowledge & Thinking"
subtitle: "Breadth and depth of knowledge; thinking skills; self-development"
content:
- level: 1
criteria:
Expand Down Expand Up @@ -146,8 +149,8 @@ topics:
- "Creates a culture where data drives good decision making. Has high expectations of leaders using data and encouraging their teams to upskill themselves to use and interpret data."
- "Contributes to thought leadership on effective and creative ways to run an excellent org from a People perspective."
- "Is a thought leader. Is sought out by other industry experts for their ideas, knowledge and expertise."
- name: "teamwork: teamwork skills; level of autonomy"
title:
- name: "teamwork-and-autonomy"
title: "🤝 Teamwork & Autonomy"
content:
- level: 1
criteria:
Expand Down Expand Up @@ -197,8 +200,9 @@ topics:
- "Establishes a network of internal and external counterparts and executive communities of practice to keep ahead of emerging People and specialist trends, ideas and industry/sector insights, locally and internationally."
- "Creates a culture where everyone belongs and is included. Sets strategic vision for building a diverse company and holds senior leaders to account for valuing and promoting this."
- "Sees the holistic picture of skills required a year from now and nurtures talent internally. Makes strategic hires, cultivating relationships over many months to get people over to Monzo who didn’t realise they needed a new job. Cultivates and drives initatives to build employer brand at the highest level."
- name: "conduct & culture: level of risk & compliance knowledge and ownership; professional conduct"
title:
- name: "conduct-and-culture"
title: "👩‍💻 Conduct & Culture"
subtitle: "Level of risk & compliance knowledge and ownership; professional conduct"
content:
- level: 1
criteria:
Expand Down
2 changes: 2 additions & 0 deletions src/components/renderers/levelledRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
Card,
CardContentList,
CardTitle,
CardSubtitle,
CardTitleGroup,
CenteredElement,
FrameworkCard,
Expand Down Expand Up @@ -222,6 +223,7 @@ export default class LevelledRenderer extends React.Component<Props, State> {
<FrameworkCard key={topic.name}>
<CardTitleGroup>
<CardTitle>{title}</CardTitle>
<CardSubtitle>{topic.subtitle}</CardSubtitle>
</CardTitleGroup>
<CardContentList>
{frameworkCriteria != null && !R.isEmpty(frameworkCriteria)
Expand Down
10 changes: 10 additions & 0 deletions src/components/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,16 @@ export const CardTitle = styled.p`
font-size: 1.4rem;
`

export const CardSubtitle = styled.p`
font-family: 'MaisonNeue', 'HelveticaNeue', 'Helvetica Neue', 'Helvetica',
'Arial', sans-serif;
font-weight: 600;
color: ${MIDNIGHT_SKY};
margin-top: 0;
font-size: 1rem;
opacity: 0.5;
`

export const CardTitleGroup = styled.div`
margin-top: 0.2em;
`
Expand Down
2 changes: 2 additions & 0 deletions src/views/FrameworkView.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export const pageQuery = graphql`
topics @include(if: $isYaml) {
name
title
subtitle
content {
level
criteria
Expand All @@ -92,6 +93,7 @@ export const pageQuery = graphql`
topics @include(if: $isYaml) {
name
title
subtitle
content {
level
criteria
Expand Down