mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-08-28 11:39:52 +02:00
Add alert for skill profile
This commit is contained in:
48
src/components/UpdateProfile/SkillProfileAlert.tsx
Normal file
48
src/components/UpdateProfile/SkillProfileAlert.tsx
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
import { CheckCircle, FileBadge } from 'lucide-react';
|
||||||
|
|
||||||
|
const ideas = [
|
||||||
|
'Add a link to your profile in your social media bio',
|
||||||
|
'Include your profile link in your resume to showcase your skills',
|
||||||
|
'Add a link to your profile in your email signature',
|
||||||
|
'Showcase your skills in your GitHub profile',
|
||||||
|
'Share your profile with potential employers',
|
||||||
|
];
|
||||||
|
|
||||||
|
export function SkillProfileAlert() {
|
||||||
|
return (
|
||||||
|
<div className="relative mb-5 rounded-lg bg-yellow-200 px-3 py-3 text-sm text-yellow-800">
|
||||||
|
<FileBadge className="absolute hidden sm:block bottom-3 right-3 h-20 w-20 stroke-2 text-yellow-500 opacity-50" />
|
||||||
|
|
||||||
|
<h2 className="mb-1 text-base font-semibold">
|
||||||
|
Announcing Skill Profiles!{' '}
|
||||||
|
</h2>
|
||||||
|
<p className="text-sm">
|
||||||
|
Create your skill profile to showcase your skills or learning progress.
|
||||||
|
Here are some of the ways you can use your skill profile:
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<div className="my-3 ml-2 flex flex-col gap-1 sm:ml-3">
|
||||||
|
{ideas.map((idea) => (
|
||||||
|
<p
|
||||||
|
key={idea}
|
||||||
|
className="flex flex-row items-start gap-1.5 sm:items-center"
|
||||||
|
>
|
||||||
|
<CheckCircle className="relative top-[3px] h-3.5 w-3.5 flex-shrink-0 stroke-[2.5] sm:top-0" />
|
||||||
|
<span>{idea}</span>
|
||||||
|
</p>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<p className="text-sm">
|
||||||
|
Make sure to mark your expertise{' '}
|
||||||
|
<a
|
||||||
|
href="/roadmaps"
|
||||||
|
target="_blank"
|
||||||
|
className="font-semibold underline underline-offset-2"
|
||||||
|
>
|
||||||
|
in the roadmaps.
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
@@ -8,12 +8,20 @@ import type {
|
|||||||
UserDocument,
|
UserDocument,
|
||||||
} from '../../api/user';
|
} from '../../api/user';
|
||||||
import { SelectionButton } from '../RoadCard/SelectionButton';
|
import { SelectionButton } from '../RoadCard/SelectionButton';
|
||||||
import { ArrowUpRight, Eye, EyeOff } from 'lucide-react';
|
import {
|
||||||
|
ArrowUpRight,
|
||||||
|
CheckCircle,
|
||||||
|
Eye,
|
||||||
|
EyeOff,
|
||||||
|
FileBadge,
|
||||||
|
Trophy,
|
||||||
|
} from 'lucide-react';
|
||||||
import { useToast } from '../../hooks/use-toast';
|
import { useToast } from '../../hooks/use-toast';
|
||||||
import { CreateRoadmapModal } from '../CustomRoadmap/CreateRoadmap/CreateRoadmapModal.tsx';
|
import { CreateRoadmapModal } from '../CustomRoadmap/CreateRoadmap/CreateRoadmapModal.tsx';
|
||||||
import { VisibilityDropdown } from './VisibilityDropdown.tsx';
|
import { VisibilityDropdown } from './VisibilityDropdown.tsx';
|
||||||
import { ProfileUsername } from './ProfileUsername.tsx';
|
import { ProfileUsername } from './ProfileUsername.tsx';
|
||||||
import UploadProfilePicture from './UploadProfilePicture.tsx';
|
import UploadProfilePicture from './UploadProfilePicture.tsx';
|
||||||
|
import { SkillProfileAlert } from './SkillProfileAlert.tsx';
|
||||||
|
|
||||||
type RoadmapType = {
|
type RoadmapType = {
|
||||||
id: string;
|
id: string;
|
||||||
@@ -202,11 +210,11 @@ export function UpdatePublicProfileForm() {
|
|||||||
<CreateRoadmapModal onClose={() => setIsCreatingRoadmap(false)} />
|
<CreateRoadmapModal onClose={() => setIsCreatingRoadmap(false)} />
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
<SkillProfileAlert />
|
||||||
|
|
||||||
<div className="mb-8 flex flex-col justify-between gap-2 sm:mb-1 sm:flex-row">
|
<div className="mb-8 flex flex-col justify-between gap-2 sm:mb-1 sm:flex-row">
|
||||||
<div className="flex flex-grow flex-row items-center gap-2 sm:items-center">
|
<div className="flex flex-grow flex-row items-center gap-2 sm:items-center">
|
||||||
<h3 className="mr-1 text-xl font-bold sm:text-3xl">
|
<h3 className="mr-1 text-xl font-bold sm:text-3xl">Skill Profile</h3>
|
||||||
Personal Profile
|
|
||||||
</h3>
|
|
||||||
{publicProfileUrl && (
|
{publicProfileUrl && (
|
||||||
<a
|
<a
|
||||||
href={publicProfileUrl}
|
href={publicProfileUrl}
|
||||||
@@ -224,7 +232,7 @@ export function UpdatePublicProfileForm() {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<p className="mb-8 mt-2 hidden text-sm text-gray-400 sm:mt-0 sm:block sm:text-base">
|
<p className="mb-8 mt-2 hidden text-sm text-gray-400 sm:mt-0 sm:block sm:text-base">
|
||||||
Set up your profile to showcase your skills.
|
Create your skill profile to showcase your skills.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<UploadProfilePicture
|
<UploadProfilePicture
|
||||||
|
Reference in New Issue
Block a user