Skip to content
Open
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
1 change: 1 addition & 0 deletions src/components/sections/social-section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export function SocialSection({ register, errors, watch }: SocialSectionProps) {
{ key: 'dribbble', label: 'Dribbble', icon: '🎨', placeholder: 'username' },
{ key: 'behance', label: 'Behance', icon: '🎭', placeholder: 'username' },
{ key: 'discord', label: 'Discord', icon: 'πŸ’¬', placeholder: 'invite-code' },
{ key: 'telegram', label: 'Telegram', icon: '✈️', placeholder: '@username' },
{ key: 'rssurl', label: 'RSS Feed', icon: 'πŸ“‘', placeholder: 'https://...' },
];

Expand Down
1 change: 1 addition & 0 deletions src/constants/defaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ export const DEFAULT_SOCIAL: SocialLinks = {
hackerearth: '',
geeks_for_geeks: '',
discord: '',
telegram: '',
rssurl: '',
twitterBadge: false,
};
Expand Down
1 change: 1 addition & 0 deletions src/images/icons/Social/telegram.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions src/lib/markdown-generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const socialPlatformUrls: Record<string, (username: string) => string> = {
hackerearth: (u) => `https://hackerearth.com/${u}`,
geeks_for_geeks: (u) => `https://auth.geeksforgeeks.org/user/${u}`,
discord: (u) => `https://discord.gg/${u}`,
telegram: (u) => `https://t.me/${u.replace(/^@/, '')}`,
};

const socialIcons: Record<string, string> = {
Expand All @@ -62,6 +63,7 @@ const socialIcons: Record<string, string> = {
hackerearth: 'hackerearth.svg',
geeks_for_geeks: 'geeks-for-geeks.svg',
discord: 'discord.svg',
telegram: 'telegram.svg',
};

// Generate skill icon URL - uses skillicons.dev for consistent dark mode support
Expand Down
1 change: 1 addition & 0 deletions src/lib/validations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ export const socialSchema = z.object({
hackerearth: z.string().max(100),
geeks_for_geeks: z.string().max(100),
discord: z.string().max(100),
telegram: z.string().max(100),
rssurl: z.string().url('Invalid URL').or(z.literal('')),

// Twitter Badge Enhancement
Expand Down
1 change: 1 addition & 0 deletions src/types/profile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ export interface SocialLinks {
hackerearth: string;
geeks_for_geeks: string;
discord: string;
telegram: string;
rssurl: string;
twitterBadge: boolean;
}
Expand Down