File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed
Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 11import React from 'react' ;
22import Label from './Label' ;
33import { Star } from '@phosphor-icons/react' ;
4+ import { FaExternalLinkAlt } from 'react-icons/fa' ;
45
56const LogMetadata = ( { metadata } ) => {
67 if ( ! metadata ) {
@@ -87,7 +88,7 @@ const LogMetadata = ({ metadata }) => {
8788 { metadata . link && (
8889 < div >
8990 < Label > Link</ Label >
90- < p className = "text-gray-300 ml-1 mt-1" > < a href = { metadata . link } target = "_blank" rel = "noopener noreferrer" className = "text-indigo-400 hover:text-indigo-300 " > View</ a > </ p >
91+ < p className = "text-gray-300 ml-1 mt-1" > < a href = { metadata . link } target = "_blank" rel = "noopener noreferrer" className = "text-amber-500 hover:text-amber-400 flex items-center " > View < FaExternalLinkAlt className = "ml-1" size = { 12 } /> </ a > </ p >
9192 </ div >
9293 ) }
9394 </ div >
Original file line number Diff line number Diff line change 11import React from 'react' ;
22import { Link } from 'react-router-dom' ;
3+ import { FaExternalLinkAlt } from 'react-icons/fa' ;
34
45const ProjectCard = ( { project, size = 1 } ) => {
56 const colSpanClass = size === 2 ? 'md:col-span-2' : size === 3 ? 'md:col-span-3' : 'col-span-1' ;
@@ -8,9 +9,9 @@ const ProjectCard = ({ project, size = 1 }) => {
89 < Link to = { `/projects/${ project . slug } ` } className = { `block bg-gray-800/50 p-6 rounded-lg shadow-lg hover:bg-gray-800/80 transition-colors border border-gray-700/50 cursor-pointer flex flex-col ${ colSpanClass } ` } >
910 < h3 className = "text-xl font-semibold text-white" > { project . title } </ h3 >
1011 < p className = "mt-2 text-gray-400 flex-grow" > { project . description } </ p >
11- < span className = "mt-4 inline-block text-primary-400 hover:text-title-hover hover:underline transition-colors mt-auto" >
12- View Project →
13- </ span >
12+ < a href = { project . link || `/projects/ ${ project . slug } ` } target = "_blank" rel = "noopener noreferrer" className = "mt-4 inline-block text-red-500 hover:text-red-300 transition-colors mt-auto flex items-center " >
13+ View Project < FaExternalLinkAlt className = "ml-1" size = { 12 } />
14+ </ a >
1415 </ Link >
1516 ) ;
1617} ;
Original file line number Diff line number Diff line change 11import React from 'react' ;
22import Label from './Label' ;
3+ import { FaExternalLinkAlt } from 'react-icons/fa' ;
34
45const ProjectMetadata = ( { project } ) => {
56 if ( ! project ) {
@@ -18,7 +19,7 @@ const ProjectMetadata = ({ project }) => {
1819 { project . link && (
1920 < div >
2021 < Label > Link</ Label >
21- < p className = "text-gray-300 ml-1 mt-1" > < a href = { project . link } target = "_blank" rel = "noopener noreferrer" className = "text-indigo-400 hover:text-indigo-300 " > View Project</ a > </ p >
22+ < p className = "text-gray-300 ml-1 mt-1" > < a href = { project . link } target = "_blank" rel = "noopener noreferrer" className = "text-amber-500 hover:text-amber-400 flex items-center " > View Project < FaExternalLinkAlt className = "ml-1" size = { 12 } /> </ a > </ p >
2223 </ div >
2324 ) }
2425 { project . pinned && (
You can’t perform that action at this time.
0 commit comments