diff --git a/src/components/ProjectCard.tsx b/src/components/ProjectCard.tsx index 5e41f6b..5aa40e1 100644 --- a/src/components/ProjectCard.tsx +++ b/src/components/ProjectCard.tsx @@ -11,10 +11,18 @@ const ProjectTag = ({ children }:{children?: ReactNode}) => { }; const ProjectLink = ({ children, link, newTab } : {children?: ReactNode, link: string, newTab?: true}) => { + const LinkContent = ({ children }:{children?: ReactNode}) => { + return ( +
+ {children} +
+ ); + }; + return ( -
- {children} {newTab && } +
+ {children} {newTab && }
); @@ -37,26 +45,31 @@ const ProjectCard = ({ title, description, repoLink, demoLink, videoLink, design {videoLink && + video } {demoLink && + demo } {repoLink && + code } {designLink && + design } {paperLink && + paper }
diff --git a/src/styles/components/project-card.css b/src/styles/components/project-card.css index d5fb74b..71bec46 100644 --- a/src/styles/components/project-card.css +++ b/src/styles/components/project-card.css @@ -19,6 +19,14 @@ .project-card-links .project-card-link { @apply py-2 px-4 min-w-[72px] bg-orange-500 bg-opacity-30 rounded-full hover:text-orange-600 dark:hover:text-orange-300; + + .project-card-link-content-container { + @apply flex justify-center gap-1; + } + + .project-card-link-content-container .project-card-link-content { + @apply flex gap-1; + } } .project-card-tags { diff --git a/src/styles/index.css b/src/styles/index.css index a11a832..7950503 100644 --- a/src/styles/index.css +++ b/src/styles/index.css @@ -1,4 +1,5 @@ @import "fonts.css"; +@import "utils.css"; @import "pages/pages.css"; @import "pages/home.css"; diff --git a/src/styles/utils.css b/src/styles/utils.css new file mode 100644 index 0000000..9d210fa --- /dev/null +++ b/src/styles/utils.css @@ -0,0 +1,7 @@ +.hide-on-mobile { + @apply md:block hidden; +} + +.hide-on-desktop { + @apply md:hidden; +}