-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9b24aef
commit 3198728
Showing
14 changed files
with
722 additions
and
829 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,26 @@ | ||
import {useTheme} from 'next-themes' | ||
import { useTheme } from 'next-themes'; | ||
|
||
const DarkMode = () => { | ||
|
||
const {theme, setTheme} = useTheme() | ||
|
||
const { theme, setTheme } = useTheme(); | ||
|
||
return ( | ||
<svg | ||
onClick={() => setTheme(theme === 'dark' ? 'light' : 'dark')} | ||
className="absolute cursor-pointer top-2 right-2 w-6 h-6" | ||
fill="none" stroke="currentColor" | ||
className="absolute cursor-pointer top-2 right-2 w-6 h-6 print:hidden" | ||
fill="none" | ||
stroke="currentColor" | ||
viewBox="0 0 24 24" | ||
xmlns="http://www.w3.org/2000/svg"> | ||
<path | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
strokeWidth="2" | ||
fill="#fff" | ||
d="M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z" | ||
></path> | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<path | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
strokeWidth="2" | ||
fill="#fff" | ||
d="M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z" | ||
></path> | ||
</svg> | ||
) | ||
} | ||
); | ||
}; | ||
|
||
export default DarkMode | ||
export default DarkMode; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,30 @@ | ||
import Link from 'next/link' | ||
import Title from './Title' | ||
import Item from './Item' | ||
import Link from 'next/link'; | ||
import Title from './Title'; | ||
import Item from './Item'; | ||
|
||
const Educations = (props) => { | ||
const items = props.items | ||
const items = props.items; | ||
|
||
return ( | ||
<div className="section"> | ||
<Title title="Educations" icon={`<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 14l9-5-9-5-9 5 9 5z"></path><path d="M12 14l6.16-3.422a12.083 12.083 0 01.665 6.479A11.952 11.952 0 0012 20.055a11.952 11.952 0 00-6.824-2.998 12.078 12.078 0 01.665-6.479L12 14z"></path><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 14l9-5-9-5-9 5 9 5zm0 0l6.16-3.422a12.083 12.083 0 01.665 6.479A11.952 11.952 0 0012 20.055a11.952 11.952 0 00-6.824-2.998 12.078 12.078 0 01.665-6.479L12 14zm-4 6v-7.5l4-2.222"></path></svg>`} /> | ||
<div className="section pt-4"> | ||
<Title | ||
title="Educations" | ||
icon={`<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 14l9-5-9-5-9 5 9 5z"></path><path d="M12 14l6.16-3.422a12.083 12.083 0 01.665 6.479A11.952 11.952 0 0012 20.055a11.952 11.952 0 00-6.824-2.998 12.078 12.078 0 01.665-6.479L12 14z"></path><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 14l9-5-9-5-9 5 9 5zm0 0l6.16-3.422a12.083 12.083 0 01.665 6.479A11.952 11.952 0 0012 20.055a11.952 11.952 0 00-6.824-2.998 12.078 12.078 0 01.665-6.479L12 14zm-4 6v-7.5l4-2.222"></path></svg>`} | ||
/> | ||
|
||
<div className="pl-8"> | ||
{items.map((item, index) => | ||
{items.map((item, index) => ( | ||
<Item | ||
key={index} | ||
title={item.area} | ||
location={item.institution} | ||
startDate={item.startDate} | ||
endDate={item.endDate} | ||
/> | ||
)} | ||
))} | ||
</div> | ||
</div> | ||
) | ||
} | ||
); | ||
}; | ||
|
||
export default Educations | ||
export default Educations; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,25 @@ | ||
import Title from './Title' | ||
import Title from './Title'; | ||
|
||
const Interests = (props) => { | ||
const items = props.items | ||
const items = props.items; | ||
|
||
return ( | ||
<div className="section"> | ||
<Title title="Interests" icon={`<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 4a2 2 0 114 0v1a1 1 0 001 1h3a1 1 0 011 1v3a1 1 0 01-1 1h-1a2 2 0 100 4h1a1 1 0 011 1v3a1 1 0 01-1 1h-3a1 1 0 01-1-1v-1a2 2 0 10-4 0v1a1 1 0 01-1 1H7a1 1 0 01-1-1v-3a1 1 0 00-1-1H4a2 2 0 110-4h1a1 1 0 001-1V7a1 1 0 011-1h3a1 1 0 001-1V4z"></path></svg>`} /> | ||
<Title | ||
title="Interests" | ||
icon={`<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 4a2 2 0 114 0v1a1 1 0 001 1h3a1 1 0 011 1v3a1 1 0 01-1 1h-1a2 2 0 100 4h1a1 1 0 011 1v3a1 1 0 01-1 1h-3a1 1 0 01-1-1v-1a2 2 0 10-4 0v1a1 1 0 01-1 1H7a1 1 0 01-1-1v-3a1 1 0 00-1-1H4a2 2 0 110-4h1a1 1 0 001-1V7a1 1 0 011-1h3a1 1 0 001-1V4z"></path></svg>`} | ||
/> | ||
|
||
<div className="pl-8 text-sm text-gray-600 dark:text-gray-500"> | ||
{items.map((item, index) => | ||
{items.map((item, index) => ( | ||
<span key={index}> | ||
{item.name} | ||
{index !== props.items.length - 1 ? ', ' : ''} | ||
</span> | ||
)} | ||
))} | ||
</div> | ||
</div> | ||
) | ||
} | ||
); | ||
}; | ||
|
||
export default Interests | ||
export default Interests; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,28 @@ | ||
import Title from './Title' | ||
import Title from './Title'; | ||
|
||
const Languages = (props) => { | ||
const items = props.items | ||
const items = props.items; | ||
|
||
return ( | ||
<div className="section"> | ||
<Title title="Languages" icon={`<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 5h12M9 3v2m1.048 9.5A18.022 18.022 0 016.412 9m6.088 9h7M11 21l5-10 5 10M12.751 5C11.783 10.77 8.07 15.61 3 18.129"></path></svg>`} /> | ||
<Title | ||
title="Languages" | ||
icon={`<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 5h12M9 3v2m1.048 9.5A18.022 18.022 0 016.412 9m6.088 9h7M11 21l5-10 5 10M12.751 5C11.783 10.77 8.07 15.61 3 18.129"></path></svg>`} | ||
/> | ||
|
||
<div className="md:flex justify-between pl-8"> | ||
{items.map((item, index) => | ||
{items.map((item, index) => ( | ||
<div className="flex items-center" key={index}> | ||
<div className="mr-2 text-sm"> | ||
{item.flag} | ||
</div> | ||
<div className="mr-2 text-sm">{item.flag}</div> | ||
<div className="text-sm"> | ||
<span className="mr-1">{item.language}</span> | ||
<small className="text-gray-400 text-sm">[{item.fluency}]</small> | ||
</div> | ||
</div> | ||
)} | ||
))} | ||
</div> | ||
</div> | ||
) | ||
} | ||
); | ||
}; | ||
|
||
export default Languages | ||
export default Languages; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
const Title = (props) => { | ||
return ( | ||
<h2 className="text-2xl font-light mb-4 flex"> | ||
<span className="mr-2 mt-1 text-gray-400" dangerouslySetInnerHTML={{__html: props.icon}}></span> | ||
<span className="border-b-4 border-green-400 pb-1"> | ||
{props.title} | ||
</span> | ||
<h2 className="text-2xl font-light mb-4 flex print:text-black"> | ||
<span | ||
className="mr-2 mt-1 text-gray-400 print:text-slate-500" | ||
dangerouslySetInnerHTML={{ __html: props.icon }} | ||
></span> | ||
<span className="border-b-4 border-green-400 pb-1">{props.title}</span> | ||
</h2> | ||
) | ||
} | ||
); | ||
}; | ||
|
||
export default Title | ||
export default Title; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.