Skip to content

Commit 857ba61

Browse files
committedOct 30, 2024
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
 

Diff for: ‎src/components/about/SmallPortraitCard.tsx

+9-5
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
);

Diff for: ‎src/components/about/SubTeam.tsx

+6-3
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>

Diff for: ‎src/components/about/styles.module.css

+2-1
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.
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.
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Diff for: ‎src/pages/about/sylvain.tsx renamed to ‎src/pages/about/Trung.tsx

-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
import Layout from "@theme/Layout";
22
import { About } from "@site/src/components/about";
33
import BrowserOnly from "@docusaurus/BrowserOnly";
4-
import { useRef } from "react";
54

65
export default function AboutPage(): JSX.Element {
7-
const elementRef = useRef(null);
8-
console.log('elementRef:', elementRef)
96
return (
107
<Layout>
118
<BrowserOnly>{() => <About/>}</BrowserOnly>

0 commit comments

Comments
 (0)