Skip to content
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
6 changes: 3 additions & 3 deletions app/bot-commands/devpool-docs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ const DevPoolDocs = () => {
<div className="grid grid-cols-1 lg:grid-cols-5 gap-4">
{/* Achievements */}
<div
className={`col-span-1 lg:col-span-3 ${classes.cardBg} backdrop-blur-xl rounded-3xl p-4 md:p-6 ${classes.cardBorder} shadow-xl`}
className={`col-span-1 lg:col-span-5 ${classes.cardBg} backdrop-blur-xl rounded-3xl p-4 md:p-6 ${classes.cardBorder} shadow-xl`}
>
<div className="flex items-center gap-3 mb-4">
<div className="flex-shrink-0 aspect-square w-12 bg-slate-500/20 backdrop-blur-sm rounded-2xl flex items-center justify-center border border-white/30">
Expand Down Expand Up @@ -199,7 +199,7 @@ const DevPoolDocs = () => {
</div>

{/* Extensions */}
<div
{/* <div
className={`col-span-1 lg:col-span-2 ${classes.cardBg} backdrop-blur-xl rounded-3xl p-4 ${classes.cardBorder} shadow-xl`}
>
<div className="flex items-center gap-2 mb-3">
Expand All @@ -223,7 +223,7 @@ const DevPoolDocs = () => {
<p className={`${classes.cardText} text-xs`}>
Grant additional time through discussion channels.
</p>
</div>
</div> */}
</div>
</div>
</div>
Expand Down
7 changes: 6 additions & 1 deletion app/components/dashboard-components/ParticipantAvatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ interface ParticipantAvatarProps {

const ParticipantAvatar = ({ username, className }: ParticipantAvatarProps) => {
const [isIntersecting, setIsIntersecting] = useState(false);
const [imageError, setImageError] = useState(false);
const ref = useRef<HTMLDivElement>(null);

useEffect(() => {
Expand All @@ -36,18 +37,22 @@ const ParticipantAvatar = ({ username, className }: ParticipantAvatarProps) => {
};
}, []);

const showAvatarImage = Boolean(username?.trim() && !imageError);

return (
<Avatar
ref={ref}
className={className}
>
{isIntersecting ? (
{isIntersecting && showAvatarImage ? (
<AvatarImage
src={`https://github.com/${username}.png`}
alt={`${username}'s avatar`}
loading="lazy"
onError={() => setImageError(true)}
/>
) : null}

<AvatarFallback>
<img
src="/icon-badge.png"
Expand Down
2 changes: 1 addition & 1 deletion app/components/dashboard-components/hallOfFame.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const HallOfFame = () => {
'go',
'rust',
'kotlin',
'zig',
// 'zig',
'haskell',
];

Expand Down
8 changes: 5 additions & 3 deletions app/components/dashboard-components/leaderboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -334,9 +334,11 @@ const Leaderboard = ({ user }: { user: AuthUser | null }) => {
<div className={`${classes.cardText} font-semibold`}>
{data.fullName || data.username}
</div>
<div className={`${classes.cardText} text-sm`}>
@{data.username}
</div>
{data.username && (
<div className={`${classes.cardText} text-sm`}>
@{data.username}
</div>
)}
</div>
</div>
{currentView === 'leaderboard' && (
Expand Down
5 changes: 2 additions & 3 deletions app/components/hof-components/badge.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
'use client';
import { tierStyles } from '@/app/components/profile-components/BadgeVariants';
import { useTheme } from '@/app/components/theme-context';
import Image from 'next/image';
import { useCallback, useEffect, useRef, useState } from 'react';
import { createPortal } from 'react-dom';
interface BadgeProps {
Expand All @@ -15,8 +14,8 @@ interface BadgeProps {
const badgeNamesMapping: Record<string, string> = {
'rust-first': '2 Piners and maximum effort',
'rust-second': 'Crabby Coder',
'zig-first': "Salamander's spirit",
'zig-second': "Salamander's Totem",
// 'zig-first': "Salamander's spirit",
// 'zig-second': "Salamander's Totem",
'python-first': 'Mamba Mentality',
'python-second': 'Basilisk Defanged',
'go-first': 'Apex Gopher',
Expand Down
8 changes: 4 additions & 4 deletions app/components/hof-components/language-pill.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ interface LanguagePillProps {
const badgeIconsMapping: Record<string, string> = {
'cpp-first': '/Badges/The Iron Sentinel.jpeg',
'cpp-second': '/Badges/Pointer Warden.jpeg',
'python-first': "/Badges/Mamba's Mentality.jpg",
'python-first': '/Badges/Mamba-Mentality.jpg',
'python-second': '/Badges/Basilisk Defanged.jpg',
'javascript-first': '/Badges/Forge Smelter.jpg',
'javascript-second': '/Badges/Prop Driller.jpg',
Expand All @@ -24,8 +24,8 @@ const badgeIconsMapping: Record<string, string> = {
'java-second': '/Badges/Bytecode Bender.jpeg',
'go-first': '/Badges/Apex Gopher.jpg',
'go-second': '',
'zig-first': "/Badges/Salamander's Spirit.jpg",
'zig-second': "/Badges/Salamander's Totem.jpg",
// 'zig-first': "/Badges/Salamander's Spirit.jpg",
// 'zig-second': "/Badges/Salamander's Totem.jpg",
'haskell-first': '/Badges/Monad Sage.jpg',
'haskell-second': '/Badges/Lazy Architect.jpg',
'flutter-first': '/Badges/Winged Architect.jpeg',
Expand All @@ -36,7 +36,7 @@ const badgeIconsMapping: Record<string, string> = {

const badgeDescriptionsMapping: Record<string, string> = {
rust: 'Most Rust Pull Requests Merged',
zig: 'Most Zig Pull Requests Merged',
// zig: 'Most Zig Pull Requests Merged',
python: 'Most Python Pull Requests Merged',
go: 'Most Go Pull Requests Merged',
javascript: 'Most JS/TS Pull Requests Merged',
Expand Down
12 changes: 6 additions & 6 deletions app/components/profile-components/AchivementTree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@ export default function AchievementTree({
language: 'Rust',
badges: categoryBadges.filter((b) => b.position <= 2),
},
{
language: 'Zig',
badges: categoryBadges.filter(
(b) => b.position >= 3 && b.position <= 4,
),
},
// {
// language: 'Zig',
// badges: categoryBadges.filter(
// (b) => b.position >= 3 && b.position <= 4,
// ),
// },
{
language: 'Python',
badges: categoryBadges.filter(
Expand Down
20 changes: 10 additions & 10 deletions app/components/profile-components/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,16 +227,16 @@ export const allBadges: Badge[] = [
category: 'mastery',
position: 2,
},
{
id: 20,
title: 'Enamoured',
description: 'Got a PR accepted every week for a month.',
icon: '/Badges/image4.png',
unlocked: false,
tier: 'bronze',
category: 'mastery',
position: 3,
},
// {
// id: 20,
// title: 'Enamoured',
// description: 'Got a PR accepted every week for a month.',
// icon: '/Badges/image4.png',
// unlocked: false,
// tier: 'bronze',
// category: 'mastery',
// position: 3,
// },
];

export const badgeMap: Record<string, Badge> = allBadges.reduce(
Expand Down
11 changes: 9 additions & 2 deletions public/data/team.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"name": "Adithya Menon R",
"username": "adithya-menon-r",
"avatar": "https://avatars.githubusercontent.com/u/115925529?v=4",
"tags": ["Maintainer", "Developer", "Organizer"],
"tags": ["Developer", "Organizer"],
"designation": "ACM Amrita Webmaster"
},
{
Expand Down Expand Up @@ -116,7 +116,7 @@
"name": "Revanth Singothu",
"username": "rev-sin",
"avatar": "https://avatars.githubusercontent.com/u/143745956?v=4",
"tags": ["Organizer"],
"tags": ["Maintainer"],
"designation": "Volunteer"
},
{
Expand Down Expand Up @@ -153,6 +153,13 @@
"avatar": "https://avatars.githubusercontent.com/u/167768158?v=4",
"tags": ["Maintainer"],
"designation": "ACM Member"
},
{
"name": "Naganathan M",
"username": "Naganathan05",
"avatar": "https://avatars.githubusercontent.com/u/116747452?v=4",
"tags": ["Maintainer"],
"designation": "Volunteer"
}
]
}
Binary file modified public/icon-badge.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 37 additions & 0 deletions public/icons/d3.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
41 changes: 41 additions & 0 deletions public/icons/vs code api.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.