Skip to content

Commit

Permalink
Merge pull request #366 from ftsrg/ftsrg30-update
Browse files Browse the repository at this point in the history
Update members for 2024
  • Loading branch information
as3810t authored Jul 11, 2024
2 parents b3a646a + d6f6449 commit 6360269
Show file tree
Hide file tree
Showing 14 changed files with 145 additions and 38 deletions.
37 changes: 22 additions & 15 deletions src/components/aboutpage-components/FormerMembersSection.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { ImageDataLike } from 'gatsby-plugin-image'
import { useI18next } from 'gatsby-plugin-react-i18next'
import React from 'react'
import { FaLinkedin } from 'react-icons/fa'
import { FaCross, FaLinkedin } from 'react-icons/fa'
import Hero from '~components/Hero'
import { MemberProps } from '~utils/props'
import { memberSort } from '~utils/position-order'

type Props = {
nodes: Array<MemberProps>
Expand All @@ -13,26 +14,32 @@ type Props = {
const FormerMembersSection: React.FC<Props> = ({ nodes, heroBackgroundImage }) => {
const { t } = useI18next()

function memberCoreName(props: MemberProps) {
return t('about.members.name', {
firstName: props.firstName,
lastName: props.lastName
})
}

function memberName(props: MemberProps) {
return t('about.members.name', { firstName: props.firstName, lastName: props.lastName })
return `${props.namePrefix ? `${props.namePrefix} ` : ''}${memberCoreName(props)}${props.nameSuffix ? ` ${props.nameSuffix}` : ''}`
}

return (
<Hero id="formermembers" bgImage={heroBackgroundImage} heroTitle="about.formermembers.heroTitle">
<div className="card-columns alumni-list">
{nodes
.sort((member1, member2) => memberName(member1).localeCompare(memberName(member2)))
.map((formermember) => (
<div key={formermember.firstName + formermember.lastName} className="alumni">
{memberName(formermember)}
{formermember.title ? `, ${formermember.title}` : ''}
{formermember.linkedInPage && (
<a target="_blank" rel="noopener noreferrer" href={formermember.linkedInPage}>
<FaLinkedin style={{ marginLeft: '0.25rem', marginBottom: '0.25rem' }} />
</a>
)}
</div>
))}
{nodes.sort(memberSort(t)).map((formermember) => (
<div key={formermember.firstName + formermember.lastName} className="alumni">
{memberName(formermember)}
{formermember.title ? `, ${formermember.title}` : ''}
{formermember.inMemoriam && <FaCross title="In memoriam" style={{ marginLeft: '0.25rem' }} />}
{formermember.linkedInPage && (
<a target="_blank" rel="noopener noreferrer" href={formermember.linkedInPage}>
<FaLinkedin style={{ marginLeft: '0.25rem', marginBottom: '0.25rem' }} />
</a>
)}
</div>
))}
</div>
</Hero>
)
Expand Down
7 changes: 6 additions & 1 deletion src/components/aboutpage-components/IntroSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ const IntroSection: React.FC<Props> = ({ numOfMembers, numOfPhD }) => {
<Container>
<Row>
<Col lg={6} className="order-1 order-lg-2 mb-4 mb-lg-0">
<StaticImage src="../../../static/images/members.jpg" alt={t('about.members.title')} className="img-fluid" layout="fullWidth" />
<StaticImage
src="../../../static/images/members2024.jpg"
alt={t('about.members.title')}
className="img-fluid"
layout="fullWidth"
/>
</Col>
<Col lg={5} className="me-auto align-self-center order-2 order-lg-1">
<h2 className="section-title-underline mb-5">
Expand Down
12 changes: 10 additions & 2 deletions src/components/aboutpage-components/Member.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
import { MemberProps } from '~utils/props'
import { GatsbyImage, getImage } from 'gatsby-plugin-image'
import { FaGithub, FaHome, FaLinkedin, FaTwitter } from 'react-icons/fa'
import { FaGithub, FaHome, FaLinkedin, FaTwitter, FaUser } from 'react-icons/fa'
import { AiCV, AiDblp, AiGoogleScholar, AiMtmt, AiOrcid } from '~components/Academicons'
import React from 'react'
import { useI18next } from 'gatsby-plugin-react-i18next'
import { memberName } from '~utils/member-name'

const Member: React.FC<MemberProps> = ({
avatar,
firstName,
lastName,
namePrefix,
nameSuffix,
title,
position,
homePage,
Expand All @@ -27,9 +30,14 @@ const Member: React.FC<MemberProps> = ({
return (
<div className="feature-1 border person text-center d-flex flex-column justify-content-between">
{avatarImage && <GatsbyImage image={avatarImage} className="img-fluid" alt={firstName + lastName} />}
{!avatarImage && (
<div className="img-fluid">
<FaUser />
</div>
)}
<div className="feature-1-content">
<h2>
{t('about.members.name', { firstName, lastName })}
{memberName(t, { firstName, lastName, namePrefix, nameSuffix })}
{title && `, ${title}`}
</h2>
<span className="position mb-3 d-block">{position && t(`about.members.position.${position}`)}</span>
Expand Down
5 changes: 2 additions & 3 deletions src/content/achievements/achievements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
- translationPrefix: education.achievements.scholarships
featuredImage: ../images/achievements/tdk-awards.png
links:
- https://www.mit.bme.hu/events/2020/11/12/magas-tanszeki-reszvetel-es-kiemelkedo-eredmenyek-az-idei-tdk-konferencian
- https://www.mit.bme.hu/events/2019/04/24/kiemelkedo-sikerek-az-otdk-n
- https://www.mit.bme.hu/events/2023/11/20/tdk-2023-minden-eddiginel-tobb-dolgozat
- https://www.mit.bme.hu/events/2023/04/19/otdk-2023-elsopro-sikerek-az-informatikatudomanyi-szekcioban
- https://www.mit.bme.hu/events/2018/09/05/unkp-osztondij-sikerek
- http://inf.mit.bme.hu/news/2017/12/kutat%C3%B3csoportunk-nyolc-hallgat%C3%B3ja-nemzeti-fels%C5%91oktat%C3%A1si-%C3%B6szt%C3%B6nd%C3%ADjban-r%C3%A9szes%C3%BClt
26 changes: 17 additions & 9 deletions src/content/members/active.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
position: prof
avatar: ../images/members/pataricza.jpg
linkedInPage: https://hu.linkedin.com/in/andras-pataricza-6651345
homePage: http://inf.mit.bme.hu/members/pataric
homePage: https://www.mit.bme.hu/general/staff/pataric
mtmtPage: https://m2.mtmt.hu/gui2/?type=authors&mode=browse&sel=10004524
cvPage: https://drive.google.com/file/d/0BwMh_IMLEYWRSVBENVdkSUc0SEE/edit?usp=sharing
namePrefix: ''
nameSuffix: ''
- firstName: Dániel
lastName: Varró
title: DSc
Expand All @@ -22,7 +24,7 @@
position: assocProfHabil
avatar: ../images/members/majzik.jpg
linkedInPage: https://hu.linkedin.com/in/istvan-majzik-a2033387
homePage: http://inf.mit.bme.hu/members/majzik
homePage: https://www.mit.bme.hu/general/staff/majzik
mtmtPage: https://m2.mtmt.hu/gui2/?type=authors&mode=browse&sel=10001448
scholarPage: https://scholar.google.com/citations?user=z8LwwiAAAAAJ
- firstName: Zoltán
Expand All @@ -44,23 +46,24 @@
title: PhD
position: assocProf
avatar: ../images/members/gonczy.jpg
homePage: http://inf.mit.bme.hu/members/gonczy
homePage: https://www.mit.bme.hu/general/staff/gonczy
mtmtPage: https://m2.mtmt.hu/gui2/?type=authors&mode=browse&sel=10041117
linkedInPage: https://www.linkedin.com/in/laszlo-gonczy-80684411/
- firstName: András
lastName: Vörös
title: PhD
position: assocProf
avatar: ../images/members/voros.jpg
homePage: http://inf.mit.bme.hu/members/vorosa
homePage: https://www.mit.bme.hu/general/staff/vori
mtmtPage: https://m2.mtmt.hu/gui2/?type=authors&mode=browse&sel=10042280
cvPage: https://share.mit.bme.hu/index.php/s/x6zj2cKzA5TxieJ
linkedInPage: https://www.linkedin.com/in/andr%C3%A1s-v%C3%B6r%C3%B6s-665b0818a/
- firstName: Imre
lastName: Kocsis
title: PhD
position: assistProf
avatar: ../images/members/kocsis.png
homePage: http://inf.mit.bme.hu/members/ikocsis
homePage: https://www.mit.bme.hu/general/staff/ikocsis
mtmtPage: https://m2.mtmt.hu/gui2/?type=authors&mode=browse&sel=10040986
cvPage: http://mit.bme.hu/~ikocsis/Kocsis_Imre_CV_eng.pdf
linkedInPage: https://www.linkedin.com/in/imre-kocsis/
Expand All @@ -70,7 +73,7 @@
position: assistProf
avatar: ../images/members/molnar.jpg
linkedInPage: https://www.linkedin.com/in/molnarv
homePage: http://inf.mit.bme.hu/members/molnarv
homePage: https://www.mit.bme.hu/general/staff/molnarv
mtmtPage: https://m2.mtmt.hu/gui2/?type=authors&mode=browse&sel=10049620
githubPage: https://github.com/vincemolnar
- firstName: Oszkár
Expand All @@ -82,6 +85,7 @@
cvPage: https://oszkarsemerath.github.io/content/SemerathCV-en.pdf
mtmtPage: https://m2.mtmt.hu/gui2/?type=authors&mode=browse&sel=10045161
scholarPage: https://scholar.google.com/citations?user=eURCwRYAAAAJ
linkedInPage: https://www.linkedin.com/in/oszk%C3%A1r-semer%C3%A1th-a05a0074/
- firstName: Gábor
lastName: Huszerl
position: masterLecturer
Expand Down Expand Up @@ -125,7 +129,7 @@
lastName: Farkas
position: assistResFellow
avatar: ../images/members/farkas.jpg
homePage: http://inf.mit.bme.hu/members/farkasr
homePage: https://www.mit.bme.hu/general/staff/farkasr
mtmtPage: https://m2.mtmt.hu/gui2/?type=authors&mode=browse&sel=10058544
- firstName: András
lastName: Földvári
Expand All @@ -137,7 +141,7 @@
lastName: Graics
position: assistResFellow
avatar: ../images/members/graics.jpg
homePage: http://inf.mit.bme.hu/members/graicsb
homePage: https://www.mit.bme.hu/node/12022
cvPage: http://mit.bme.hu/~graics/cv-graics-en.pdf
linkedInPage: https://www.linkedin.com/in/bence-graics-9085a6125/
mtmtPage: https://m2.mtmt.hu/gui2/?type=authors&mode=browse&sel=10068239
Expand All @@ -149,20 +153,23 @@
homePage: https://www.mit.bme.hu/general/phd/szabo
cvPage: https://rorck.github.io/files/richard_szabo_cv.pdf
mtmtPage: https://m2.mtmt.hu/gui2/?type=authors&mode=browse&sel=10068607
linkedInPage: https://www.linkedin.com/in/rich%C3%A1rd-szab%C3%B3-037450230/
- firstName: Dániel
lastName: Szekeres
position: phdStudent
avatar: ../images/members/szekeres.png
homePage: https://www.mit.bme.hu/general/phd/szekeres
cvPage: https://szdan97.github.io/cv_szekeres.pdf
mtmtPage: https://m2.mtmt.hu/gui2/?type=authors&mode=browse&sel=10078570
linkedInPage: https://www.linkedin.com/in/d%C3%A1niel-szekeres-0619b8178/
- firstName: Levente
lastName: Bajczi
position: phdStudent
avatar: ../images/members/bajczi.jpg
homePage: https://www.mit.bme.hu/general/phd/bajczi
cvPage: https://leventebajczi.github.io/leventebajczi-cv/leventebajczi_cv_en.pdf
mtmtPage: https://m2.mtmt.hu/gui2/?type=authors&mode=browse&sel=10073070
linkedInPage: https://www.linkedin.com/in/leventebajczi/
- firstName: Attila
lastName: Ficsor
position: phdStudent
Expand All @@ -185,6 +192,7 @@
cvPage: http://mit.bme.hu/~bpeter/cve.pdf
scholarPage: https://scholar.google.com/citations?user=mo8l6mQAAAAJ
githubPage: https://github.com/bzp99
linkedInPage: https://www.linkedin.com/in/bertalan-zolt%C3%A1n-p%C3%A9ter-2204732b2/
- firstName: Milán
lastName: Mondok
position: phdStudent
Expand All @@ -203,7 +211,7 @@
scholarPage: https://scholar.google.com/citations?hl=en&user=8lSh8hYAAAAJ
linkedInPage: www.linkedin.com/in/zsofiaadam4224
mtmtPage: https://m2.mtmt.hu/gui2/?type=authors&mode=browse&sel=10077295
- firstName:
- firstName:
lastName: Kangogo Damaris Jepkurui
position: phdStudent
avatar: ../images/members/damaris.jpg
Expand Down
9 changes: 7 additions & 2 deletions src/content/members/honorary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,26 @@
title: PhD
position: honAssocProf
avatar: ../images/members/horvath.jpg
homePage: http://inf.mit.bme.hu/members/ahorvath
mtmtPage: https://m2.mtmt.hu/gui2/?type=authors&mode=browse&sel=10030432
linkedInPage: https://www.linkedin.com/in/akoshorvathincquerylabs/
homePage: ''
cvPage: ''
twitterPage: ''
orcidPage: ''
scholarPage: ''
dblpPage: ''
githubPage: ''
order: ''
namePrefix: ''
nameSuffix: ''
- firstName: István
lastName: Ráth
title: PhD
position: honAssocProf
avatar: ../images/members/rath.jpg
homePage: http://inf.mit.bme.hu/members/rath
mtmtPage: https://m2.mtmt.hu/gui2/?type=authors&mode=browse&sel=10030433
linkedInPage: https://www.linkedin.com/in/istvanrath/
- firstName: Zsolt
lastName: Kocsis
position: honAssocProf
linkedInPage: https://www.linkedin.com/in/zsoltkocsis/
46 changes: 46 additions & 0 deletions src/content/members/inactive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
lastName: Balogh
title: PhD
linkedInPage: https://hu.linkedin.com/in/andr%C3%A1s-balogh-0758b562
namePrefix: ''
nameSuffix: ''
- firstName: Tamás
lastName: Bartha
title: PhD
Expand All @@ -28,6 +30,7 @@
- firstName: Csaba
lastName: Debreceni
title: PhD
linkedInPage: https://www.linkedin.com/in/debrecenics/
- firstName: Szilvia
lastName: Gyapay
title: PhD
Expand Down Expand Up @@ -74,8 +77,10 @@
linkedInPage: https://www.linkedin.com/in/ujhelyiz/
- firstName: Szilárd
lastName: Bozóki
linkedInPage: https://www.linkedin.com/in/szilard-bozoki/
- firstName: Tamás
lastName: Demián
linkedInPage: https://www.linkedin.com/in/tam%C3%A1s-demi%C3%A1n-618b4936/
- firstName: Orsolya
lastName: Dobán
- firstName: Benedek
Expand Down Expand Up @@ -118,3 +123,44 @@
- firstName: Gábor
lastName: Urbanics
linkedInPage: https://www.linkedin.com/in/gaborurbanics/
- firstName: Balázs
lastName: Benyó
linkedInPage: https://www.linkedin.com/in/dr-bal%C3%A1zs-beny%C3%B3-9405389/
title: PhD
- firstName: Nikol
lastName: Biró
linkedInPage: https://www.linkedin.com/in/nikol-bir%C3%B3-b10b7974/
inMemoriam: true
- firstName: Péter
lastName: Domokos
linkedInPage: https://www.linkedin.com/in/pdomokos/
- firstName: Zoltán
lastName: Égel
linkedInPage: https://www.linkedin.com/in/zoltan-egel-258a5a2b/
- firstName: Zoltán
lastName: Hornák
linkedInPage: https://www.linkedin.com/in/zoltanhornak/
- firstName: Judit
lastName: Jávorszky
linkedInPage: https://www.linkedin.com/in/judit-javorszky-8713801/
- firstName: Viktória
lastName: Keresztély
linkedInPage: https://www.linkedin.com/in/viktoria-keresztely-0a068b4/
- firstName: Dániel
lastName: Petri
linkedInPage: https://www.linkedin.com/in/d%C3%A1niel-petri-b8a32a3/
- firstName: Balázs
lastName: Sallay
linkedInPage: https://www.linkedin.com/in/balazs-sallay-203ab03/
- firstName: Judit
lastName: Spanics
linkedInPage: https://www.linkedin.com/in/judit-spanics-77017694/
- firstName: Béla
lastName: Tolvaj
linkedInPage: https://www.linkedin.com/in/b%C3%A9la-tolvaj-b8092464/
- firstName: Péter Tamás
lastName: Kovács
- firstName: András
lastName: Petri
namePrefix: ifj.

2 changes: 1 addition & 1 deletion src/locales/hu/education.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,5 @@
"education.achievements.workplaces.title": "Jellemző munkahelyek",
"education.achievements.workplaces.desc": "Hallgatóinknak nem esik nehezükre elhelyezkedni a végzés után: start-up cégeknél, multinacionális cégek hazai vagy akár nemzetközi fejlesztőközpontjaiban mind-mind megtalálhatók volt hallgatóink, nem ritkán senior pozícióban.",
"education.achievements.scholarships.title": "Pályázatok és ösztöndíjak",
"education.achievements.scholarships.desc": "A <0>TDK</0> és <1>OTDK</1> versenyeken, <2>ÚNKP</2>, <3>NFÖD</3> és KBME pályázatokon hallgatóink minden évben kiemelkedően teljesítenek. Tanulmányaik alatt sokan külföldi ösztöndíjprogramokon és tanulmányutakon vesznek részt (pl. Svájc, Németország, Írország)."
"education.achievements.scholarships.desc": "A <0>TDK</0> és <1>OTDK</1> versenyeken, <2>ÚNKP</2> és KBME pályázatokon hallgatóink minden évben kiemelkedően teljesítenek. Tanulmányaik alatt sokan külföldi ösztöndíjprogramokon és tanulmányutakon vesznek részt (pl. Svájc, Németország, Írország)."
}
7 changes: 7 additions & 0 deletions src/pages/about.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ export const query = graphql`
nodes {
firstName
lastName
namePrefix
nameSuffix
title
position
order
Expand All @@ -71,6 +73,8 @@ export const query = graphql`
nodes {
firstName
lastName
namePrefix
nameSuffix
title
position
order
Expand All @@ -94,8 +98,11 @@ export const query = graphql`
nodes {
firstName
lastName
namePrefix
nameSuffix
title
linkedInPage
inMemoriam
}
}
locales: allLocale(filter: { ns: { in: ["about", "commons"] }, language: { eq: $language } }) {
Expand Down
13 changes: 13 additions & 0 deletions src/utils/member-name.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { MemberProps } from '~utils/props'
import { TFunction } from 'i18next'

export function memberCoreName(t: TFunction<'translation', undefined, 'translation'>, props: MemberProps) {
return t('about.members.name', {
firstName: props.firstName,
lastName: props.lastName
})
}

export function memberName(t: TFunction<'translation', undefined, 'translation'>, props: MemberProps) {
return `${props.namePrefix ? `${props.namePrefix} ` : ''}${memberCoreName(t, props)}${props.nameSuffix ? ` ${props.nameSuffix}` : ''}`
}
Loading

0 comments on commit 6360269

Please sign in to comment.