Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
grubengraeber committed Jul 31, 2024
1 parent 4cb9760 commit b4411c9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,12 @@ function TechnologySkillBaseMobile({items, label } : {items: TechnologySkill[],
{items.map((item, index) => (
<Dialog key={index}>
<DialogTrigger asChild>
{/* TODO: Animate the click on the following div to be visually seeable like a click animation */}


<motion.div
className={`inline-block h-full ${colors[index % colors.length]}`}

className={`inline-block h-full ${colors[index % colors.length]} `}
style={{ width: `${(item.level / totalLevel) * 100}%` }}
initial={{
scaleX: 0,
Expand All @@ -36,6 +40,8 @@ function TechnologySkillBaseMobile({items, label } : {items: TechnologySkill[],
}
}}
animate={{ width: `${(item.level / totalLevel) * 100}%` }}
whileTap={{ scale: 0.8 }}

></motion.div>
</DialogTrigger>

Expand Down
2 changes: 1 addition & 1 deletion app/projects/[projectName]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const projectData: Project[] = [
),
];

const ProjectDetailPage: NextPage = () => {
function ProjectDetailPage() {
const params = useParams<{ projectName: string }>()
const projectName = params.projectName;
const project = projectData.find(p => p.title === projectName);
Expand Down

0 comments on commit b4411c9

Please sign in to comment.