Skip to content

Commit eef734a

Browse files
committed
Add alert for skill profile
1 parent 8e252cc commit eef734a

File tree

2 files changed

+76
-20
lines changed

2 files changed

+76
-20
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
import { CheckCircle, FileBadge } from 'lucide-react';
2+
3+
const ideas = [
4+
'Add a link to your profile in your social media bio',
5+
'Include your profile link in your resume to showcase your skills',
6+
'Add a link to your profile in your email signature',
7+
'Showcase your skills in your GitHub profile',
8+
'Share your profile with potential employers',
9+
];
10+
11+
export function SkillProfileAlert() {
12+
return (
13+
<div className="relative mb-5 rounded-lg bg-yellow-200 px-3 py-3 text-sm text-yellow-800">
14+
<FileBadge className="absolute hidden sm:block bottom-3 right-3 h-20 w-20 stroke-2 text-yellow-500 opacity-50" />
15+
16+
<h2 className="mb-1 text-base font-semibold">
17+
Announcing Skill Profiles!{' '}
18+
</h2>
19+
<p className="text-sm">
20+
Create your skill profile to showcase your skills or learning progress.
21+
Here are some of the ways you can use your skill profile:
22+
</p>
23+
24+
<div className="my-3 ml-2 flex flex-col gap-1 sm:ml-3">
25+
{ideas.map((idea) => (
26+
<p
27+
key={idea}
28+
className="flex flex-row items-start gap-1.5 sm:items-center"
29+
>
30+
<CheckCircle className="relative top-[3px] h-3.5 w-3.5 flex-shrink-0 stroke-[2.5] sm:top-0" />
31+
<span>{idea}</span>
32+
</p>
33+
))}
34+
</div>
35+
36+
<p className="text-sm">
37+
Make sure to mark your expertise{' '}
38+
<a
39+
href="/roadmaps"
40+
target="_blank"
41+
className="font-semibold underline underline-offset-2"
42+
>
43+
in the roadmaps.
44+
</a>
45+
</p>
46+
</div>
47+
);
48+
}

src/components/UpdateProfile/UpdatePublicProfileForm.tsx

Lines changed: 28 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,20 @@ import type {
88
UserDocument,
99
} from '../../api/user';
1010
import { SelectionButton } from '../RoadCard/SelectionButton';
11-
import { ArrowUpRight, Eye, EyeOff } from 'lucide-react';
11+
import {
12+
ArrowUpRight,
13+
CheckCircle,
14+
Eye,
15+
EyeOff,
16+
FileBadge,
17+
Trophy,
18+
} from 'lucide-react';
1219
import { useToast } from '../../hooks/use-toast';
1320
import { CreateRoadmapModal } from '../CustomRoadmap/CreateRoadmap/CreateRoadmapModal.tsx';
1421
import { VisibilityDropdown } from './VisibilityDropdown.tsx';
1522
import { ProfileUsername } from './ProfileUsername.tsx';
1623
import UploadProfilePicture from './UploadProfilePicture.tsx';
24+
import { SkillProfileAlert } from './SkillProfileAlert.tsx';
1725

1826
type RoadmapType = {
1927
id: string;
@@ -202,11 +210,11 @@ export function UpdatePublicProfileForm() {
202210
<CreateRoadmapModal onClose={() => setIsCreatingRoadmap(false)} />
203211
)}
204212

213+
<SkillProfileAlert />
214+
205215
<div className="mb-8 flex flex-col justify-between gap-2 sm:mb-1 sm:flex-row">
206216
<div className="flex flex-grow flex-row items-center gap-2 sm:items-center">
207-
<h3 className="mr-1 text-xl font-bold sm:text-3xl">
208-
Personal Profile
209-
</h3>
217+
<h3 className="mr-1 text-xl font-bold sm:text-3xl">Skill Profile</h3>
210218
{publicProfileUrl && (
211219
<a
212220
href={publicProfileUrl}
@@ -224,7 +232,7 @@ export function UpdatePublicProfileForm() {
224232
/>
225233
</div>
226234
<p className="mb-8 mt-2 hidden text-sm text-gray-400 sm:mt-0 sm:block sm:text-base">
227-
Set up your profile to showcase your skills.
235+
Create your skill profile to showcase your skills.
228236
</p>
229237

230238
<UploadProfilePicture
@@ -283,21 +291,21 @@ export function UpdatePublicProfileForm() {
283291
value={email}
284292
/>
285293
<div className="flex items-center justify-end gap-2 rounded-md text-xs text-gray-400">
286-
<div className="flex select-none items-center justify-end gap-2 rounded-md text-xs text-gray-400">
287-
<input
288-
type="checkbox"
289-
name="isEmailVisible"
290-
id="isEmailVisible"
291-
checked={isEmailVisible}
292-
onChange={(e) => setIsEmailVisible(e.target.checked)}
293-
/>
294-
<label
295-
htmlFor="isEmailVisible"
296-
className="flex-grow cursor-pointer py-1.5"
297-
>
298-
Show my email on profile
299-
</label>
300-
</div>
294+
<div className="flex select-none items-center justify-end gap-2 rounded-md text-xs text-gray-400">
295+
<input
296+
type="checkbox"
297+
name="isEmailVisible"
298+
id="isEmailVisible"
299+
checked={isEmailVisible}
300+
onChange={(e) => setIsEmailVisible(e.target.checked)}
301+
/>
302+
<label
303+
htmlFor="isEmailVisible"
304+
className="flex-grow cursor-pointer py-1.5"
305+
>
306+
Show my email on profile
307+
</label>
308+
</div>
301309
</div>
302310
</div>
303311

0 commit comments

Comments
 (0)