Skip to content

Commit 04a3523

Browse files
[chore 🇧🇩🎉] improve profile creations form
1 parent dfbee0f commit 04a3523

3 files changed

Lines changed: 20 additions & 29 deletions

File tree

src/components/contents/ProfileCard.tsx

Lines changed: 18 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -17,26 +17,26 @@ const ProfileCard = ({
1717
social,
1818
}: TUserSchema) => {
1919
return (
20-
<Card className="w-full backdrop-blur-3xl shadow flex flex-col dark:bg-zinc-700 border-none">
20+
<Card className="w-full backdrop-blur-3xl shadow flex flex-col dark:bg-zinc-700 border-none transition-all ease-out duration-300">
2121
{/* header */}
22-
<CardHeader className="flex justify-between items-stretch flex-row gap-4 overflow-hidden">
23-
<Avatar className="w-24 h-24 object-cover">
22+
<CardHeader className="flex justify-between items-stretch flex-row lg:gap-4 md:gap-2 gap-1 overflow-hidden">
23+
<Avatar className="lg:w-24 md:w-20 w-16 lg:h-24 md:h-20 h-16 object-cover transition-all ease-out duration-300">
2424
<AvatarImage
2525
src={profileImage}
2626
className="object-fill"
2727
alt="profile photo"
2828
/>
2929
<AvatarFallback>{name.substring(0, 2).toUpperCase()}</AvatarFallback>
3030
</Avatar>
31-
<div className="flex-start w-full overflow-hidden flex-col gap-1">
32-
<h2 className="lg:text-2xl font-semibold text-gray-700 dark:text-zinc-200 text-1xl">
31+
<div className="flex-start w-full overflow-hidden flex-col lg:gap-1 gap-0.5">
32+
<h2 className="lg:text-2xl md:text-xl sm:text-lg text-base font-semibold text-gray-700 dark:text-zinc-200 ">
3333
{name}
3434
</h2>
35-
<p className="flex-center gap-2 text-base">
36-
<MapPin size={20} />
35+
<p className="flex-center lg:gap-2 md:gap-1 gap-0 lg:text-xl md:text-lg sm:text-base text-xs">
36+
<MapPin size={16} />
3737
{location}
3838
</p>
39-
<Carousel className="w-full mt-1.5">
39+
<Carousel className="w-full lg:mt-1.5 md:mt-0.5 mt-0">
4040
<CarouselContent
4141
id="skills"
4242
className="flex justify-start items-center"
@@ -45,7 +45,7 @@ const ProfileCard = ({
4545
<CarouselItem key={index} className="w-auto basis-[-29-px]">
4646
<Badge
4747
variant="secondary"
48-
className="text-sm cursor-all-scroll select-none"
48+
className="lg:text-sm text-xs cursor-all-scroll select-none"
4949
>
5050
{sk}
5151
</Badge>
@@ -55,29 +55,23 @@ const ProfileCard = ({
5555
</Carousel>
5656
</div>
5757

58-
<div className="lg:flex-end w-52 hidden">
58+
<div>
5959
<Link
6060
href={portfolio ?? "https://github.com/devlopersabbir"}
61-
className="hover:underline text-green-600 flex-start gap-2"
61+
className="hover:underline text-green-600 flex gap-2 font-semibold"
6262
>
63-
View Profile
64-
<ArrowRight size={20} />
63+
<span className="lg:text-lg md:text-md sm:text-base text-xs">
64+
Profile
65+
</span>
66+
<ArrowRight size={18} />
6567
</Link>
6668
</div>
6769
</CardHeader>
6870

69-
{/* For Tab & Mobile */}
70-
<div className="m-6 w-52 block lg:hidden">
71-
<Link
72-
href={portfolio ?? "https://github.com/devlopersabbir"}
73-
className="hover:underline text-green-600 flex-start gap-2"
74-
>
75-
View Profile
76-
<ArrowRight size={20} />
77-
</Link>
78-
</div>
7971
<CardContent>
80-
<p className="font-serif text-lg">{description}</p>
72+
<p className="font-thin lg:text-lg md:text-base text-xs">
73+
{description}
74+
</p>
8175
<div className="flex-start mt-3 gap-4">
8276
{social?.map((net: TNetwork, i: number) => (
8377
<Link

src/components/forms/CreateProfile.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,7 @@ const CreateProfile = ({
178178
<FormItem>
179179
<FormLabel className="font-semibold">Portfolio url</FormLabel>
180180
<FormControl>
181-
<Input
182-
placeholder="https://github.com/devlopersabbir"
183-
{...field}
184-
/>
181+
<Input placeholder="https://eample.com" {...field} />
185182
</FormControl>
186183
<FormMessage />
187184
</FormItem>

src/components/forms/SearchProfiles.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const SearchProfiles = () => {
3434
<SearchIcon
3535
size={30}
3636
className={
37-
"absolute right-2 cursor-pointer hover:text-red-600 transition-all duration-300"
37+
"absolute right-2 cursor-pointer hover:text-red-600 transition-all duration-300 hidden md:block"
3838
}
3939
/>
4040
</>

0 commit comments

Comments
 (0)