@breathe-ds/ui 0.6.8 → 0.6.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/components/FounderSpotlight.tsx +109 -0
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -198,6 +198,10 @@ from color, not from extra markup.
|
|
|
198
198
|
portrait on the left (photo or `living`, the team pages' living portrait), then
|
|
199
199
|
eyebrow, name, role, registration, bio and `actions`. `variant` `plain` (on the page
|
|
200
200
|
color) or `card` (white card). Stacks on phones.
|
|
201
|
+
- **FounderSpotlight**: the family founder (Mariangela, creator of RTA and TTCAB) in one
|
|
202
|
+
block: `ProfileSpotlight` card + living portrait on hover, filled with the text validated
|
|
203
|
+
on ttcab (pt/en/es), her Instagram and the courses link. `<FounderSpotlight locale="pt" />`.
|
|
204
|
+
Media live in each site's `public/` (`/images/mariangela.png`, `/equipe/vivas/mariangela.mp4|.webp`).
|
|
201
205
|
- **Texture & rhythm (opt-in)**: `.cg-grain` adds a barely-there paper grain (noise in
|
|
202
206
|
the ink color) to any background — the body, a band. `bg-surface-alt` (token
|
|
203
207
|
`--cg-surface-alt`, falls back to `surface`) is a band one step deeper than the page,
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import { ProfileSpotlight } from "./ProfileSpotlight";
|
|
3
|
+
import { IconGraduationCap, IconInstagram } from "./icons";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* The founder of the family: Mariangela Pinheiro de Lima, who created the RTA
|
|
7
|
+
* Method and TTCAB. One block, one text, for every site of the family (ttcab,
|
|
8
|
+
* metodorta, creeta…), so she reads the same everywhere. The text is the one
|
|
9
|
+
* validated on the ttcab site (06/11/2026), in pt, en and es.
|
|
10
|
+
*
|
|
11
|
+
* Media stay in each site's `public/` (the package ships no binaries); copy them
|
|
12
|
+
* from the ttcab site, or pass your own paths:
|
|
13
|
+
* /images/mariangela.png still portrait (4:5)
|
|
14
|
+
* /equipe/vivas/mariangela.mp4 + .webp living portrait (plays on hover)
|
|
15
|
+
*/
|
|
16
|
+
export const FOUNDER = {
|
|
17
|
+
name: "Mariangela Pinheiro de Lima",
|
|
18
|
+
registration: "CREFITO-10/2894-F",
|
|
19
|
+
instagram: "https://www.instagram.com/mariangela.rta/",
|
|
20
|
+
courses: "https://metodorta.com.br/cursos-e-eventos/",
|
|
21
|
+
pt: {
|
|
22
|
+
eyebrow: "Idealizadora",
|
|
23
|
+
role: "Criadora do método Reequilíbrio Toracoabdominal e fundadora da Escola Brasileira de RTA e Biomecânica Respiratória",
|
|
24
|
+
roleShort: "Criadora do Método RTA e do TTCAB",
|
|
25
|
+
bio: "Mariangela tem mais de 40 anos de carreira na Fisioterapia, com experiências marcantes na área pediátrica e respiratória. Iniciou como professora na PUCPR e atuou por sete anos nos hospitais Pequeno Príncipe e César Pernetta, em Curitiba. Especializou-se no Método Bobath, com influência de Oacy Veronesi e Sherry Arndt. Seu interesse em Fisioterapia Respiratória a levou a criar o Método Reequilíbrio Toracoabdominal (RTA), difundido há mais de três décadas por todo o Brasil. Também idealizou o TTCAB, a formação para o tratamento do torcicolo congênito e de outras assimetrias no bebê.",
|
|
26
|
+
instagram: "Instagram da Mariangela",
|
|
27
|
+
courses: "Cursos no site do Método RTA",
|
|
28
|
+
newTab: "(abre em nova aba)",
|
|
29
|
+
},
|
|
30
|
+
en: {
|
|
31
|
+
eyebrow: "Founder",
|
|
32
|
+
role: "Creator of the Reequilíbrio Toracoabdominal method and founder of the Escola Brasileira de RTA e Biomecânica Respiratória",
|
|
33
|
+
roleShort: "Creator of the RTA Method and of TTCAB",
|
|
34
|
+
bio: "Mariangela has a career of more than 40 years in Physiotherapy, with remarkable experience in paediatrics and respiratory care. She began as a lecturer at PUCPR and worked for seven years at the Pequeno Príncipe and César Pernetta hospitals in Curitiba. She specialised in the Bobath Concept, influenced by Oacy Veronesi and Sherry Arndt. Her interest in Respiratory Physiotherapy led her to create the Thoracoabdominal Rebalancing Method (RTA), taught across Brazil for more than three decades. She also created TTCAB, the training in the treatment of congenital torticollis and other asymmetries in babies.",
|
|
35
|
+
instagram: "Mariangela's Instagram",
|
|
36
|
+
courses: "Courses on the Método RTA website",
|
|
37
|
+
newTab: "(opens in a new tab)",
|
|
38
|
+
},
|
|
39
|
+
es: {
|
|
40
|
+
eyebrow: "Idealizadora",
|
|
41
|
+
role: "Creadora del método Reequilíbrio Toracoabdominal y fundadora de la Escola Brasileira de RTA e Biomecânica Respiratória",
|
|
42
|
+
roleShort: "Creadora del Método RTA y del TTCAB",
|
|
43
|
+
bio: "Mariangela tiene más de 40 años de carrera en la Fisioterapia, con experiencias destacadas en el área pediátrica y respiratoria. Comenzó como profesora en la PUCPR y trabajó durante siete años en los hospitales Pequeno Príncipe y César Pernetta, en Curitiba. Se especializó en el Método Bobath, con influencia de Oacy Veronesi y Sherry Arndt. Su interés por la Fisioterapia Respiratoria la llevó a crear el Método Reequilibrio Toracoabdominal (RTA), difundido desde hace más de tres décadas en todo Brasil. También ideó el TTCAB, la formación para el tratamiento de la tortícolis congénita y otras asimetrías en el bebé.",
|
|
44
|
+
instagram: "Instagram de Mariangela",
|
|
45
|
+
courses: "Cursos en el sitio del Método RTA",
|
|
46
|
+
newTab: "(se abre en una pestaña nueva)",
|
|
47
|
+
},
|
|
48
|
+
} as const;
|
|
49
|
+
|
|
50
|
+
export type FounderLocale = "pt" | "en" | "es";
|
|
51
|
+
|
|
52
|
+
type Props = {
|
|
53
|
+
locale?: FounderLocale;
|
|
54
|
+
/** Where "courses" points (default: the Método RTA courses page). */
|
|
55
|
+
coursesHref?: string;
|
|
56
|
+
/** Media paths in the site's public/ (defaults above). */
|
|
57
|
+
photo?: string;
|
|
58
|
+
living?: { src: string; poster: string } | false;
|
|
59
|
+
/** Your own image element (e.g. next/image) in place of the photo. */
|
|
60
|
+
media?: ReactNode;
|
|
61
|
+
/** Links or buttons at the foot, after the text. */
|
|
62
|
+
actions?: ReactNode;
|
|
63
|
+
variant?: "plain" | "card";
|
|
64
|
+
headingLevel?: "h2" | "h3";
|
|
65
|
+
id?: string;
|
|
66
|
+
className?: string;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Founder spotlight: `ProfileSpotlight` (card, living portrait on hover) filled
|
|
71
|
+
* with the founder's validated text, her Instagram and the courses link. Sites
|
|
72
|
+
* only drop it in: `<FounderSpotlight locale="pt" />`.
|
|
73
|
+
*/
|
|
74
|
+
export function FounderSpotlight({
|
|
75
|
+
locale = "pt",
|
|
76
|
+
coursesHref = FOUNDER.courses,
|
|
77
|
+
photo = "/images/mariangela.png",
|
|
78
|
+
living = { src: "/equipe/vivas/mariangela.mp4", poster: "/equipe/vivas/mariangela.webp" },
|
|
79
|
+
media,
|
|
80
|
+
actions,
|
|
81
|
+
variant = "card",
|
|
82
|
+
headingLevel = "h2",
|
|
83
|
+
id,
|
|
84
|
+
className,
|
|
85
|
+
}: Props) {
|
|
86
|
+
const t = FOUNDER[locale];
|
|
87
|
+
return (
|
|
88
|
+
<ProfileSpotlight
|
|
89
|
+
variant={variant}
|
|
90
|
+
headingLevel={headingLevel}
|
|
91
|
+
id={id}
|
|
92
|
+
className={className}
|
|
93
|
+
eyebrow={t.eyebrow}
|
|
94
|
+
name={FOUNDER.name}
|
|
95
|
+
role={t.role}
|
|
96
|
+
registration={FOUNDER.registration}
|
|
97
|
+
bio={t.bio}
|
|
98
|
+
photo={{ src: photo, alt: FOUNDER.name }}
|
|
99
|
+
living={living || undefined}
|
|
100
|
+
media={media}
|
|
101
|
+
actions={actions}
|
|
102
|
+
social={[
|
|
103
|
+
{ label: t.instagram, href: FOUNDER.instagram, Icon: IconInstagram },
|
|
104
|
+
{ label: t.courses, href: coursesHref, Icon: IconGraduationCap },
|
|
105
|
+
]}
|
|
106
|
+
newTabLabel={t.newTab}
|
|
107
|
+
/>
|
|
108
|
+
);
|
|
109
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@breathe-ds/ui",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.9",
|
|
4
4
|
"description": "Breathe DS — the design system of the Cuidado Global family of sites (creeta, ttcab, metodorta). Themeable tokens + React components.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -100,6 +100,7 @@
|
|
|
100
100
|
"./components/SidePanel": "./components/SidePanel.tsx",
|
|
101
101
|
"./components/PullQuote": "./components/PullQuote.tsx",
|
|
102
102
|
"./components/ProfileSpotlight": "./components/ProfileSpotlight.tsx",
|
|
103
|
+
"./components/FounderSpotlight": "./components/FounderSpotlight.tsx",
|
|
103
104
|
"./components/FilterBar": "./components/FilterBar.tsx",
|
|
104
105
|
"./components/Callout": "./components/Callout.tsx",
|
|
105
106
|
"./components/KenBurnsImage": "./components/KenBurnsImage.tsx"
|