1
- import { Briefcase } from 'lucide-react'
1
+ import { ArrowUpRight , Briefcase } from 'lucide-react'
2
2
import { useMediaQuery } from '@/hooks/useMediaQuery'
3
3
import Image from 'next/image'
4
4
5
5
export type ExperienceTileProps = {
6
6
companyLogo : string
7
7
companyName : string
8
+ companyLink : string
8
9
position : string
9
10
period : string
10
11
responsibilities : string [ ]
11
12
}
12
13
13
14
14
15
15
- export function ExperienceTile ( { companyLogo, companyName, position, period, responsibilities } : ExperienceTileProps ) {
16
+ export function ExperienceTile ( { companyLogo, companyName, companyLink , position, period, responsibilities } : ExperienceTileProps ) {
16
17
const isDesktop = useMediaQuery ( '(min-width: 768px)' )
17
18
return (
18
19
< div className = "mb-8 flex items-center" >
@@ -35,18 +36,18 @@ export function ExperienceTile({ companyLogo, companyName, position, period, res
35
36
) }
36
37
< div className = "pl-8 md:pl-16 py-3" >
37
38
< div className = "flex flex-col md:items-start justify-between sm:flex-row mb-4" >
38
- { ! isDesktop ? (
39
- < div >
39
+ < div >
40
40
< h2 className = "text-xl font-bold" > { position } </ h2 >
41
- < h3 className = "text-lg font-semibold" > { companyName } </ h3 >
42
- < h3 className = "text-gray-600 font-typewriter dark:text-gray-400" > { period } </ h3 >
43
- </ div >
44
- ) : (
45
- < div >
46
- < h2 className = "text-xl font-bold" > { position } </ h2 >
47
- < h3 className = "text-lg font-semibold" > { companyName } </ h3 >
48
- </ div >
49
- ) }
41
+ < a
42
+ href = { companyLink } target = "_blank"
43
+ rel = "noopener noreferrer" aria-label = { `Link to ${ companyName } ` }
44
+ >
45
+ < h3 className = "text-lg font-semibold inline-flex items-center" >
46
+ { companyName } < ArrowUpRight className = "w-4 h-4 md:w-5 md:h-5" />
47
+ </ h3 >
48
+ </ a >
49
+ { ( ! isDesktop ) && < h3 className = "text-gray-600 font-typewriter dark:text-gray-400" > { period } </ h3 > }
50
+ </ div >
50
51
{ isDesktop && ( < h3 className = "text-gray-600 font-typewriter dark:text-gray-400" > { period } </ h3 > ) }
51
52
</ div >
52
53
< div className = "mt-4" >
0 commit comments