Compare commits
2 Commits
0e0a4f5c07
...
606a58be1b
Author | SHA1 | Date | |
---|---|---|---|
606a58be1b | |||
8347793ec9 |
@ -104,7 +104,7 @@ const BannerAvatar = ({
|
|||||||
const Bio = ({ bio }: { bio: string }): ReactElement => (
|
const Bio = ({ bio }: { bio: string }): ReactElement => (
|
||||||
<SimpleTooltip content={bio}>
|
<SimpleTooltip content={bio}>
|
||||||
<div className="p-2 bg-zinc-100 dark:bg-zinc-950/65 text-sm rounded-xl">
|
<div className="p-2 bg-zinc-100 dark:bg-zinc-950/65 text-sm rounded-xl">
|
||||||
{truncateText(bio, 15)}
|
{truncateText(bio, 10)}
|
||||||
</div>
|
</div>
|
||||||
</SimpleTooltip>
|
</SimpleTooltip>
|
||||||
);
|
);
|
||||||
|
@ -10,6 +10,7 @@ import Project from "@/types/project";
|
|||||||
import { ScrollArea } from "@/components/ui/scroll-area";
|
import { ScrollArea } from "@/components/ui/scroll-area";
|
||||||
import Image from "next/image";
|
import Image from "next/image";
|
||||||
import { truncateText } from "@/lib/utils";
|
import { truncateText } from "@/lib/utils";
|
||||||
|
import SimpleTooltip from "@/components/ui/simple-tooltip";
|
||||||
|
|
||||||
const projects: Project[] = [
|
const projects: Project[] = [
|
||||||
{
|
{
|
||||||
@ -76,12 +77,16 @@ const MyWork = (): ReactElement => {
|
|||||||
return (
|
return (
|
||||||
<ScrollArea className="h-[17.75rem]">
|
<ScrollArea className="h-[17.75rem]">
|
||||||
<div className="max-w-[55rem] flex flex-wrap gap-3 justify-center">
|
<div className="max-w-[55rem] flex flex-wrap gap-3 justify-center">
|
||||||
{projects.map((project, index) => (
|
{projects.map((project: Project, index: number) => (
|
||||||
<Link
|
<SimpleTooltip
|
||||||
key={index}
|
key={index}
|
||||||
href={project.link || "#"}
|
content={
|
||||||
target="_blank"
|
<p className="max-w-[23rem] text-center">
|
||||||
|
{project.description}
|
||||||
|
</p>
|
||||||
|
}
|
||||||
>
|
>
|
||||||
|
<Link href={project.link || "#"} target="_blank">
|
||||||
<MagicCard
|
<MagicCard
|
||||||
className="w-[15rem] lg:w-[25rem] p-3.5 opacity-95"
|
className="w-[15rem] lg:w-[25rem] p-3.5 opacity-95"
|
||||||
gradientColor={
|
gradientColor={
|
||||||
@ -104,12 +109,16 @@ const MyWork = (): ReactElement => {
|
|||||||
</div>
|
</div>
|
||||||
<div className="flex gap-1 text-sm">
|
<div className="flex gap-1 text-sm">
|
||||||
<span className="text-green-400/80">
|
<span className="text-green-400/80">
|
||||||
{project.startDate.format("MMM YYYY")}
|
{project.startDate.format(
|
||||||
|
"MMM YYYY"
|
||||||
|
)}
|
||||||
</span>
|
</span>
|
||||||
🞄
|
🞄
|
||||||
{project.endDate ? (
|
{project.endDate ? (
|
||||||
<span className="text-red-400/80">
|
<span className="text-red-400/80">
|
||||||
{project.endDate.format("MMM YYYY")}
|
{project.endDate.format(
|
||||||
|
"MMM YYYY"
|
||||||
|
)}
|
||||||
</span>
|
</span>
|
||||||
) : (
|
) : (
|
||||||
<span className="text-green-400/80">
|
<span className="text-green-400/80">
|
||||||
@ -125,6 +134,7 @@ const MyWork = (): ReactElement => {
|
|||||||
</p>
|
</p>
|
||||||
</MagicCard>
|
</MagicCard>
|
||||||
</Link>
|
</Link>
|
||||||
|
</SimpleTooltip>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
</ScrollArea>
|
</ScrollArea>
|
||||||
|
Reference in New Issue
Block a user