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

project library updates #211

Merged
merged 1 commit into from
Oct 22, 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
14 changes: 7 additions & 7 deletions app/[lang]/projects/sections/ProjectContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,44 +125,44 @@ export const ProjectContent = ({
</span>
</span>
)}
<div className="flex flex-col w-full gap-4 text-base font-normal leading-relaxed">
<div className="flex flex-col w-full text-base font-normal leading-relaxed">
{content?.description && (
<Markdown
components={{
h1: ({ node, ...props }) =>
createMarkdownElement("h1", {
className:
"text-neutral-700 text-[22px] leading-6 font-bold",
"text-neutral-700 text-[22px] leading-6 font-bold pt-10 pb-4",
...props,
}),
h2: ({ node, ...props }) =>
createMarkdownElement("h2", {
className:
"text-neutral-700 text-[22px] leading-6 font-bold",
"text-neutral-700 text-[22px] leading-6 font-bold pt-10 pb-4",
...props,
}),
h3: ({ node, ...props }) =>
createMarkdownElement("h3", {
className:
"text-neutral-700 text-[22px] leading-6 font-bold",
"text-neutral-700 text-[22px] leading-6 font-bold pt-10 pb-4",
...props,
}),
h4: ({ node, ...props }) =>
createMarkdownElement("h4", {
className:
"text-neutral-700 text-[22px] leading-6 font-bold",
"text-neutral-700 text-[22px] leading-6 font-bold pt-10 pb-4",
...props,
}),
h5: ({ node, ...props }) =>
createMarkdownElement("h5", {
className:
"text-neutral-700 text-[22px] leading-6 font-bold",
"text-neutral-700 text-[22px] leading-6 font-bold pt-10 pb-4",
...props,
}),
h6: ({ node, ...props }) =>
createMarkdownElement("h6", {
className:
"text-neutral-700 text-[22px] leading-6 font-bold",
"text-neutral-700 text-[22px] leading-6 font-bold pt-10 pb-4",
...props,
}),
p: ({ node, ...props }) =>
Expand Down
17 changes: 1 addition & 16 deletions components/project/project-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export default function ProjectCard({
}}
>
{showBanner && (
<div className="relative flex flex-col">
<div className="relative flex flex-col border-b border-black/10">
<Image
src={`/project-banners/${image ? image : "fallback.webp"}`}
alt={`${name} banner`}
Expand All @@ -84,21 +84,6 @@ export default function ProjectCard({
)}
<div className="flex flex-col justify-between h-full p-4 bg-white rounded-b-lg">
<div className="flex flex-col justify-start gap-2">
<div className="flex gap-2 mb-2">
{tags?.themes?.map((theme, index) => {
const { label } = ThemesButtonMapping(lang)?.[theme]
const icon = TagsIconMapping?.[theme]

return (
<CategoryTag variant="blue" key={index}>
<div className="flex items-center gap-1">
{icon}
<span>{label ?? theme}</span>
</div>
</CategoryTag>
)
})}
</div>
<h1 className="text-xl font-bold text-black">{name}</h1>
{projectContent?.tldr && (
<div className="flex flex-col gap-4 h-28">
Expand Down
2 changes: 1 addition & 1 deletion components/project/project-detail-tags.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export function ProjectTags({ project, lang }: IProjectTags) {
const { t } = useTranslation(lang, "common")

return (
<div className="flex flex-col gap-4">
<div className="flex flex-col gap-4 pt-10">
{Object.entries(FilterLabelMapping(lang)).map(([key]) => {
const keyTags = project?.tags?.[key as ProjectFilter]
const hasItems = keyTags && keyTags?.length > 0
Expand Down
2 changes: 1 addition & 1 deletion data/projects/maci-platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const maciPlatform: ProjectInterface = {
section: "pse",
projectStatus: ProjectStatus.ACTIVE,
content,
image: "maci-rpgf.png",
image: "maci-platform.png",
name: "MACI Platform",
links: {
github: "https://github.com/privacy-scaling-explorations/maci-platform",
Expand Down
Binary file added public/project-banners/maci-platform.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 public/project-banners/maci-rpgf.png
Binary file not shown.
Loading