File tree 3 files changed +11
-16
lines changed
3 files changed +11
-16
lines changed Original file line number Diff line number Diff line change @@ -6,33 +6,28 @@ import Timeline from "./Timeline";
6
6
const ExperienceTabs = ( ) => {
7
7
const [ activeTab , setActiveTab ] = useState ( EXPERIENCE_TABS [ 1 ] ?. tabName ) ;
8
8
return (
9
- < div className = "mt-10 flex h-full w-full flex-col items-center p-2" >
10
- < div className = "mb-5 flex h-20 w-1/2 items-center justify-center gap-5 md:gap-10 " >
9
+ < div className = "container mt-10 flex-col items-center p-2" >
10
+ < div className = "mb-5 flex items-center justify-center gap-20 " >
11
11
{ EXPERIENCE_TABS . map ( ( { tabName, tabIcon : Icon } ) => (
12
12
< button
13
13
key = { tabName }
14
14
onClick = { ( ) => setActiveTab ( tabName ) }
15
- className = { `relative flex w-full items-center justify-center gap-2 p-2 pb-2 font-medium leading-5 md:text-lg md:leading-7 ${
15
+ className = { `relative flex items-center justify-center gap-3 p-2 pb-2 font-medium leading-5 md:text-lg md:leading-7 ${
16
16
activeTab === tabName
17
17
? "text-custom-violet dark:text-custom-yellow"
18
18
: "text-gray-500 dark:text-gray-100"
19
19
} `}
20
20
>
21
- < Icon
22
- className = { `text-2xl md:text-3xl ${ activeTab === tabName ? "text-light-blue" : "" } ` }
23
- />
21
+ < Icon className = "text-2xl" />
24
22
{ tabName }
25
23
{ activeTab === tabName && (
26
- < motion . div
27
- layoutId = "underline"
28
- className = "absolute bottom-0 left-0 right-0 h-0.5 rounded bg-light-blue"
29
- />
24
+ < motion . div layoutId = "underline" className = "absolute" />
30
25
) }
31
26
</ button >
32
27
) ) }
33
28
</ div >
34
29
35
- < div className = "h-full sm:w-10/12 md:mt-2" >
30
+ < div className = "h-full w-full md:mt-2" >
36
31
< AnimatePresence mode = "wait" >
37
32
< motion . div
38
33
key = { activeTab }
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { EXPERIENCE } from "../utils/constants";
4
4
const Timeline = ( { type } ) => {
5
5
return (
6
6
< div className = "relative mx-auto flex flex-col space-y-8 px-6" >
7
- < div className = "line absolute inset-0 left-8 h-full w-2 rounded-xl bg-custom-violet shadow-md md:left-0 md:right-0 md:mx-auto" />
7
+ < div className = "line absolute inset-0 left-8 h-full w-2 rounded-xl bg-gradient-to-t from-light-blue to- custom-violet shadow-md md:left-0 md:right-0 md:mx-auto" />
8
8
{ type == "work"
9
9
? EXPERIENCE . work . map (
10
10
(
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ const TimelineCard = ({
10
10
} ) => {
11
11
return (
12
12
< div className = "relative" >
13
- < div className = "xs:absolute flex h-6 w-6 cursor-pointer items-center justify-center rounded-full border-2 border-custom-violet bg-white duration-300 hover:scale-105 md:left-0 md:right-0 md:mx-auto dark:border-custom-yellow" >
13
+ < div className = "flex h-6 w-6 cursor-pointer items-center justify-center rounded-full border-2 border-custom-violet bg-white duration-300 hover:scale-105 xs:absolute md:left-0 md:right-0 md:mx-auto dark:border-custom-yellow" >
14
14
< a href = { link || "#" } >
15
15
< img
16
16
src = { logo }
@@ -21,14 +21,14 @@ const TimelineCard = ({
21
21
</ div >
22
22
23
23
< div
24
- className = { `${ index % 2 === 1 ? "xs:pl-9 md:ml-auto md:pl-6" : "xs:pl-9 md:mr-auto md:pr-6" } xs:pt-0 relative pt-3 md:w-1/2` }
24
+ className = { `${ index % 2 === 1 ? "xs:pl-9 md:ml-auto md:pl-6" : "xs:pl-9 md:mr-auto md:pr-6" } relative pt-3 xs:pt-0 md:w-1/2` }
25
25
>
26
26
< div
27
- className = { `xs :left-7 absolute inset-0 left-1 top-1 h-4 w-4 rotate-45 transform rounded-sm bg-slate-500 shadow-lg ${ index % 2 === 1 ? "md :left-4" : "md:left-auto md:right-3 md:pl-7" } ` }
27
+ className = { `${ index % 2 === 1 ? "md :left-4" : "md:left-auto md:right-3 md:pl-7" } absolute inset-0 left-1 top-1 h-4 w-4 rotate-45 transform rounded-sm bg-slate-500 shadow-lg xs :left-7 ` }
28
28
> </ div >
29
29
30
30
< div
31
- className = { `xs: left-0 xs:-top-1 relative -left-1 rounded-lg bg-slate-100 p-6 shadow-lg` }
31
+ className = { `${ index % 2 === 1 ? "" : "md: left-0.5" } relative -left-1 rounded-lg bg-slate-100 p-6 shadow-lg xs:-top-1 xs:left-0 ` }
32
32
>
33
33
< h4 className = "text-sm font-semibold text-dark-blue" >
34
34
{ score && < span > { score } </ span > } { degree }
You can’t perform that action at this time.
0 commit comments