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

Customize the team site. Visual representation of the dropdown and use of an avatar #2

Merged
merged 3 commits into from
Oct 27, 2024
Merged
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
47 changes: 26 additions & 21 deletions src/components/TeamProfileCard/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ export default function TeamProfileCard({
}) {
const [isDropdownOpen, setIsDropdownOpen] = useState(false);

// Prüfen, ob mindestens ein Link vorhanden ist
const hasLinks = hawEmail || github || linkedIn || researchGate || googleScholar || mastodon || twitter || webSite;

const toggleDropdown = () => {
setIsDropdownOpen(!isDropdownOpen);
};
Expand All @@ -36,27 +39,29 @@ export default function TeamProfileCard({

{description && <p className="m-teamprofilecard-description">{description}</p>}

{/* Dropdown für Links */}
<div className="dropdown">
<button
onClick={toggleDropdown}
className="button button--outline button--secondary"
>
Links anzeigen
</button>
{isDropdownOpen && (
<ul className="dropdown-content">
{hawEmail && <li><a href={`mailto:${hawEmail}`} target="_blank" rel="noopener noreferrer">Email</a></li>}
{github && <li><a href={github} target="_blank" rel="noopener noreferrer">GitHub</a></li>}
{linkedIn && <li><a href={linkedIn} target="_blank" rel="noopener noreferrer">LinkedIn</a></li>}
{researchGate && <li><a href={researchGate} target="_blank" rel="noopener noreferrer">ResearchGate</a></li>}
{googleScholar && <li><a href={googleScholar} target="_blank" rel="noopener noreferrer">Google Scholar</a></li>}
{mastodon && <li><a href={mastodon} target="_blank" rel="noopener noreferrer">Mastodon</a></li>}
{twitter && <li><a href={twitter} target="_blank" rel="noopener noreferrer">Twitter</a></li>}
{webSite && <li><a href={webSite} target="_blank" rel="noopener noreferrer">Website</a></li>}
</ul>
)}
</div>
{/* Dropdown nur anzeigen, wenn Links vorhanden sind */}
{hasLinks && (
<div className="dropdown">
<button
onClick={toggleDropdown}
className="button button--outline button--secondary"
>
Links anzeigen
</button>
{isDropdownOpen && (
<ul className="dropdown-content">
{hawEmail && <li><a href={`mailto:${hawEmail}`} target="_blank" rel="noopener noreferrer">Email</a></li>}
{github && <li><a href={github} target="_blank" rel="noopener noreferrer">GitHub</a></li>}
{linkedIn && <li><a href={linkedIn} target="_blank" rel="noopener noreferrer">LinkedIn</a></li>}
{researchGate && <li><a href={researchGate} target="_blank" rel="noopener noreferrer">ResearchGate</a></li>}
{googleScholar && <li><a href={googleScholar} target="_blank" rel="noopener noreferrer">Google Scholar</a></li>}
{mastodon && <li><a href={mastodon} target="_blank" rel="noopener noreferrer">Mastodon</a></li>}
{twitter && <li><a href={twitter} target="_blank" rel="noopener noreferrer">Twitter</a></li>}
{webSite && <li><a href={webSite} target="_blank" rel="noopener noreferrer">Website</a></li>}
</ul>
)}
</div>
)}
</div>
</div>
</div>
Expand Down
8 changes: 7 additions & 1 deletion src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,13 @@


.m-teamprofilecard {

display: flex;
flex-direction: column;
justify-content: space-between;
height: 100%; /* gesamte Kartenhöhe */
}


.m-teamprofilecard-name {
margin-bottom: 0.25em;
}
Expand Down Expand Up @@ -107,6 +112,7 @@
.dropdown {
position: relative;
display: inline-block;
margin-bottom: 1rem; /* Abstand unter dem Dropdown */
}

.dropdown-content {
Expand Down
32 changes: 31 additions & 1 deletion src/pages/team.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import TeamProfileCard from '@site/src/components/TeamProfileCard';
linkedIn="https://www.linkedin.com/in/thomas-clemen-8237b5/"
researchGate="https://www.researchgate.net/profile/Thomas-Clemen"
googleScholar="https://scholar.google.com/citations?user=LY1IGYUAAAAJ&hl=en"
img="/img/team/thomas-clemen.jpeg"
img="/img/team/thomas-clemen.jpg"
/>
<TeamProfileCard
name="Christian Lins"
Expand All @@ -35,31 +35,37 @@ import TeamProfileCard from '@site/src/components/TeamProfileCard';
<TeamProfileCard
name="Marina Tropmann-Frick"
description="Data Science: Analytics and Visualization"
img="/img/team/avatar.png"
/>

<TeamProfileCard
name="Karen Bradshaw"
description="GPU-based simulation, teaching socio-ecological modelling. Computer Science Department, Rhodes University, South Africa"
img="/img/team/avatar.png"
/>

<TeamProfileCard
name="Yanling Zhou"
description="IoT, Smart Cities, Hefei University, China"
img="/img/team/avatar.png"
/>

<TeamProfileCard
name="Greg Kiker"
description="KNP model development and simulation platform comparison. Dept. of Agricultural and Biological Engineering, University of Florida"
img="/img/team/avatar.png"
/>

<TeamProfileCard
name="Michael Köhler-Bußmeier"
description="Theoretical Computer Science, Computational Organisation Theory"
img="/img/team/avatar.png"
/>

<TeamProfileCard
name="Jan Sudeikat"
description="Cyber-physical Systems, Self-Organization in MAS"
img="/img/team/avatar.png"
/>
</div>

Expand All @@ -71,16 +77,19 @@ import TeamProfileCard from '@site/src/components/TeamProfileCard';
<TeamProfileCard
name="Ulfia A. Lenfers"
description="Conceptual Modeling, Model Development, Requirements Engineering, Outreach"
img="/img/team/avatar.png"
/>

<TeamProfileCard
name="Devotha Nyambo"
description="Conceptual Modeling and Model Development – ESIDA Project"
img="/img/team/avatar.png"
/>

<TeamProfileCard
name="Rebecca Sarku"
description="Climate Adaptation, Climate Information Services, Designing Innovative Governance Arrangements, Adaptive Decision-making, and Digital Technologies for Agricultural and Sustainable Food Systems"
img="/img/team/avatar.png"
/>
</div>

Expand All @@ -92,11 +101,13 @@ import TeamProfileCard from '@site/src/components/TeamProfileCard';
<TeamProfileCard
name="Daniel Glake"
description="SmartOpen Hamburg. Technical Architect of MARS Systems, MARS Runtime, MARS DSL, OpenData Discovery and Integration"
img="/img/team/avatar.png"
/>

<TeamProfileCard
name="Juliane Bönecke"
description="Epidemiological Research – ESIDA project"
img="/img/team/avatar.png"
/>
</div>

Expand Down Expand Up @@ -171,96 +182,115 @@ import TeamProfileCard from '@site/src/components/TeamProfileCard';
name="Jonathan Ströbele"
year="2023"
description="ESIDA Project"
img="/img/team/avatar.png"
/>
<TeamProfileCard
name="Jan-Niklas Voß"
year="2022"
description="Jan-Niklas Voß, MARS Explorer"
img="/img/team/avatar.png"
/>
<TeamProfileCard
name="Julius Weyl"
year="2019"
description="SmartOpen Hamburg"
img="/img/team/avatar.png"
/>
<TeamProfileCard
name="Andreas Löffler"
year="2018"
description="Smart Rescue Model"
img="/img/team/avatar.png"
/>
<TeamProfileCard
name="Philipp Kayser"
year="2018"
description="GPU-based distributed environment"
img="/img/team/avatar.png"
/>
<TeamProfileCard
name="Jan Dalski"
year="2018"
description="Generic Agent Architecture, WebGL Visualization and Website."
img="/img/team/avatar.png"
/>
<TeamProfileCard
name="Lennart Karsten"
year="2018"
description="GIS data processing, public relations, infrastructure and Linux support."
img="/img/team/avatar.png"
/>
<TeamProfileCard
name="Lukas Grundmann"
year="2018"
description="Immune system simulation, infrastructure and Linux support"
img="/img/team/avatar.png"
/>
<TeamProfileCard
name="Petar Krastev"
year="2018"
description="Cascading deletion of assets"
img="/img/team/avatar.png"
/>
<TeamProfileCard
name="Prannoy Mulmi"
year="2018"
description="Archiving finished simulation data"
img="/img/team/avatar.png"
/>
<TeamProfileCard
name="Christian Hüning"
year="2016"
description="Development of MARS LIFE application and MARS Cloud"
img="/img/team/avatar.png"
/>
<TeamProfileCard
name="Daniel Steiman"
year="2015"
description="Context awareness for multi agent simulations based on reactive computing"
img="/img/team/avatar.png"
/>
<TeamProfileCard
name="Jana Asmussen"
year="2015"
description="Modelling of cheetah/impala hunting behaviour"
img="/img/team/avatar.png"
/>
<TeamProfileCard
name="Daniela Niemeyer"
year="2015"
description="Goal-oriented action planning in evacuation scenarios"
img="/img/team/avatar.png"
/>
<TeamProfileCard
name="Alexander Schnoor"
year="2015"
description="View protocol specification and Unity-based visualization"
img="/img/team/avatar.png"
/>
<TeamProfileCard
name="Jan Steffen"
year="2015"
description="A spatio-temporal data warehouse for heterogenous ecological data"
img="/img/team/avatar.png"
/>
<TeamProfileCard
name="Torben Woggan"
year="2015"
description="Layer logging service for simulation data output"
img="/img/team/avatar.png"
/>
<TeamProfileCard
name="Mariusz Baldowski"
year="2014"
description="Investigation of forest biomass growth with a spatial composite indicator"
img="/img/team/avatar.png"
/>
<TeamProfileCard
name="Hodabalo Pereki"
year="2013"
description="Simulation of tree growth and biomass fluctuations in Abdoulaye Wildlife Reserve"
img="/img/team/avatar.png"
/>
</div>

Expand Down
Binary file added static/img/team/avatar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed static/img/team/thomas-clemen.jpeg
Binary file not shown.
Binary file added static/img/team/thomas-clemen.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading