File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import projects from "@/constants/projects.json";
33import { motion } from "framer-motion" ;
44import { fadeIn , textVariant , staggerContainer } from "@/components/utils/motions" ;
55import { styles as utilStyles } from "@/components/utils/styles" ;
6- import { IoIosArrowDown } from "react-icons/io" ;
6+ import { IoIosArrowUp , IoIosArrowDown } from "react-icons/io" ;
77import { useState } from "react" ;
88import ProjectCard from "../ProjectCard" ;
99
@@ -40,7 +40,30 @@ const ProjectsSection: React.FC = () => {
4040 />
4141 ) ) }
4242 </ motion . div >
43- { ! showMoreProjects && (
43+ { showMoreProjects ?
44+ (
45+ < motion . div
46+ className = "w-full flex flex-col items-center pt-10 cursor-pointer"
47+ onClick = { ( ) => {
48+ setShowMoreProjects ( false ) ;
49+ } }
50+ variants = { fadeIn ( "" , "" , 1.1 , 1 ) }
51+ >
52+ < motion . div
53+ animate = { { y : [ 0 , - 20 ] , opacity : [ 1 , 0 ] } }
54+ transition = { {
55+ ease : "easeIn" ,
56+ repeat : Infinity ,
57+ duration : 1 ,
58+ repeatDelay : 0.5 ,
59+ } }
60+ >
61+ < IoIosArrowUp size = { 30 } />
62+ </ motion . div >
63+ < div > hide</ div >
64+ </ motion . div >
65+ )
66+ : (
4467 < motion . div
4568 className = "w-full flex flex-col items-center pt-10 cursor-pointer"
4669 onClick = { ( ) => {
You can’t perform that action at this time.
0 commit comments