Skip to content

Commit 857ba61

Browse files
Add a capital letter at the beginning of the page name of the persons of the team.
1 parent 555f185 commit 857ba61

28 files changed

+17
-12
lines changed

src/components/about/SmallPortraitCard.tsx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,22 @@ import LargePortraitCard from "./LargePortraitCard";
66
import Avatar from "./Avatar";
77

88
const contentStyle = {
9+
position: "fixed",
10+
top: "50%",
11+
left: "50%",
12+
transform: "translate(-50%, -50%)",
913
background: "white",
10-
borderRadius: "10px",
11-
opacity: 1.0
14+
borderRadius: "20px",
15+
opacity: 1.0,
16+
zIndex: "4000"
1217
};
1318

1419
const overlayStyle = {
1520
backgroundColor: "var(--ifm-background-color-popup-overlay)",
1621
opacity: 0.4,
1722
width: "100%",
1823
height: "100%",
24+
zIndex: "1000",
1925
};
2026

2127
function getCenterOfViewport() {
@@ -68,9 +74,7 @@ export function SmallPortraitCard({ person, setOffsets }) {
6874
>
6975
{person.position}
7076
</div>
71-
<div style={{ marginTop: "var(--ifm-spacing-xl)" }}>
72-
<SocialMediaContacts person={person}></SocialMediaContacts>
73-
</div>
77+
7478
</div>
7579
</div>
7680
);

src/components/about/SubTeam.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ import Link from "@docusaurus/Link";
44
import { useLocation } from "@docusaurus/router";
55

66
export default function SubTeam({ subTeamName, subTeam }) {
7-
const firstName = useLocation().pathname.split("/about/")[1];
7+
let firstName = useLocation().pathname.split("/about/")[1];
8+
console.log('First name before transformation:', firstName);
9+
10+
811
return (
912
<div className={styles.subteam_container}>
1013
<h2 className={"text--center"}> {subTeamName}</h2>
@@ -15,11 +18,11 @@ export default function SubTeam({ subTeamName, subTeam }) {
1518
!void 0 && (
1619
<li className="cards-list" key={index}>
1720
<div className="col">
18-
<Link href={`/about/${person.firstName.toLowerCase()}`}>
21+
<Link href={`/about/${person.firstName}`}>
1922
<PopupPortrait
2023
person={person}
2124
isPopupOpen={
22-
firstName === person.firstName.toLowerCase()
25+
firstName === person.firstName
2326
}
2427
/>
2528
</Link>

src/components/about/styles.module.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,8 @@ div .join_the_team_text {
210210
.large_portrait_card {
211211
width: 1000px;
212212
padding: var(--ifm-spacing-xl) var(--ifm-spacing-2xl);
213-
background-color: orange;
213+
border-radius: 10px;
214+
214215
}
215216

216217
.subteam_container {
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)