-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ivo
committed
Apr 21, 2023
1 parent
4c9807d
commit 6fb771b
Showing
7 changed files
with
116 additions
and
83 deletions.
There are no files selected for viewing
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
{ | ||
"acknowledgements": "Thanks to the entire team responsible for the development and maintenance of GROMACS and Grace/Xmgr", | ||
"description": "Visual Dynamics is an open source tool that accelerates implementations and learning in the area of molecular dynamics simulation. Available for free and supported by all major web browsers. Visual Dynamics is powered by Flask and NextJS, both are free and open-source frameworks for web development.", | ||
"maintainers": { | ||
"title": "Maintainers", | ||
"active": "Active", | ||
"inactive": "Previous" | ||
}, | ||
"title": "About" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
interface Maintainer { | ||
name: string; | ||
link?: string; | ||
active: boolean; | ||
image?: string; | ||
work?: ("idea" | "code" | "manuscript")[]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
import { Code, Lightbulb, Newspaper } from "lucide-react"; | ||
import Link from "next/link"; | ||
|
||
import { BlurImage } from "../BlurImage"; | ||
|
||
interface MaintainerCardProps { | ||
maintainer: Maintainer; | ||
} | ||
|
||
export function MaintainerCard({ maintainer }: MaintainerCardProps) { | ||
const WorkIcon = { | ||
idea: Lightbulb, | ||
code: Code, | ||
manuscript: Newspaper | ||
}; | ||
|
||
return ( | ||
<Link | ||
href={maintainer.link ?? "#"} | ||
target={ | ||
maintainer.link && maintainer.link.startsWith("http") | ||
? "_blank" | ||
: undefined | ||
} | ||
className="group p-2 flex gap-x-2 items-center rounded-md hover:bg-zinc-800/20 transition-all duration-500" | ||
key={maintainer.name} | ||
> | ||
{maintainer.image ? ( | ||
<BlurImage | ||
alt={maintainer.name} | ||
className="h-14 w-14 rounded-full" | ||
height={0} | ||
width={0} | ||
src={maintainer.image} | ||
unoptimized | ||
/> | ||
) : null} | ||
<div> | ||
<p className="transition-all duration-500 text-primary-800 group-hover:text-primary-700"> | ||
{maintainer.name} | ||
</p> | ||
<div className="flex gap-1 flex-wrap"> | ||
{maintainer.work && maintainer.work.length > 0 | ||
? maintainer.work.map((w) => { | ||
const Icon = WorkIcon[w]; | ||
|
||
return ( | ||
<Icon | ||
className="h-5 w-5" | ||
key={maintainer.name + w} | ||
/> | ||
); | ||
}) | ||
: null} | ||
</div> | ||
</div> | ||
</Link> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters