11import React from "react" ;
22
33const timelineData = [
4+ {
5+ type : "project" ,
6+ name : "Dog2 🐶" ,
7+ startDate : "Sep 2024" ,
8+ } ,
49 {
510 type : "employment" ,
611 company : "Starshipit" ,
712 logo : "timeline/starshipit.jpeg" ,
8- startDate : "Jan 2024 - Present " ,
13+ startDate : "Jan 2024" ,
914 endDate : "Present" ,
1015 } ,
1116 {
@@ -22,8 +27,8 @@ const timelineData = [
2227 type : "employment" ,
2328 company : "Lightspeed" ,
2429 logo : "timeline/lightspeed.jpeg" ,
25- startDate : "Oct 2022 - Jan 2024 " ,
26- endDate : "Present " ,
30+ startDate : "Oct 2022" ,
31+ endDate : "Jan 2024 " ,
2732 } ,
2833 {
2934 type : "project" ,
@@ -76,12 +81,7 @@ const timelineData = [
7681 } ,
7782 {
7883 type : "project" ,
79- name : "Started scott-the-programmer.com" ,
80- startDate : "Feb 2022" ,
81- } ,
82- {
83- type : "project" ,
84- name : "Created droid-up (mobile backup utility)" ,
84+ name : "Started scott.murray.kiwi" ,
8585 startDate : "Feb 2022" ,
8686 } ,
8787 {
@@ -119,22 +119,6 @@ const timelineData = [
119119 } ,
120120] ;
121121
122- function renderName ( name ?: string ) {
123- if ( name === undefined ) {
124- return < > </ > ;
125- }
126- const emojiRegex = / ( \p{ Emoji_Presentation} ) / u;
127- return name
128- . split ( emojiRegex )
129- . map ( ( part , index ) =>
130- emojiRegex . test ( part ) ? (
131- < span key = { index } > { part } </ span >
132- ) : (
133- < p key = { index } > { part } </ p >
134- ) ,
135- ) ;
136- }
137-
138122const Timeline : React . FC = ( ) => {
139123 return (
140124 < div className = "flex flex-col items-center w-full" >
@@ -168,7 +152,7 @@ const Timeline: React.FC = () => {
168152 : "left-1/2 text-left pl-4"
169153 } `}
170154 >
171- { renderName ( item . name ) }
155+ { item . name }
172156 </ div >
173157 </ div >
174158 ) }
0 commit comments