-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
a33584e
commit 141f76b
Showing
7 changed files
with
253 additions
and
262 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,145 @@ | ||
import Image from "next/image" | ||
|
||
export default function Experience() { | ||
return ( | ||
<div> | ||
<p className="font-bold text-3xl tracking-tight mb-4 text-black dark:text-white"> | ||
Experience | ||
</p> | ||
<h3 className="font-bold text-2xl tracking-tight mb-4 text-black dark:text-white"> | ||
Full-time positions | ||
</h3> | ||
<ul> | ||
{fullTimePositions.map((position) => ( | ||
<li key={position.company}> | ||
<Position position={position} /> | ||
</li> | ||
))} | ||
</ul> | ||
<h3 className="font-bold text-2xl tracking-tight mb-4 text-black dark:text-white"> | ||
Part-time positions | ||
</h3> | ||
<ul> | ||
{partTimePositions.map((position) => ( | ||
<li key={position.company}> | ||
<Position position={position} /> | ||
</li> | ||
))} | ||
</ul> | ||
</div> | ||
) | ||
} | ||
|
||
interface PositionProps { | ||
position: { | ||
title: string; | ||
company: string; | ||
image: string; | ||
url: string; | ||
startDate: string; | ||
finishDate?: string; | ||
} | ||
} | ||
|
||
const Position: React.FC<PositionProps> = ({ position }) => { | ||
const startDate = new Date(position.startDate) | ||
const options: Intl.DateTimeFormatOptions = { year: 'numeric', month: 'short' }; | ||
const startDateTag = (<time dateTime={startDate.toISOString()}>{startDate.toLocaleDateString('en-US', options)}</time>) | ||
let finishDateTag = (<p>{`Current`}</p>) | ||
if (position.finishDate != undefined) { | ||
const finishDate = new Date(position.finishDate) | ||
finishDateTag = (<time dateTime={finishDate.toISOString()}>{finishDate.toLocaleDateString('en-US', options)}</time>) | ||
} | ||
return ( | ||
<div className="flex flex-row items-start gap-4 mb-4"> | ||
<Image | ||
className="rounded" | ||
priority | ||
alt={position.company} | ||
src={position.image} | ||
width={40} | ||
height={40} | ||
/> | ||
<div className="flex flex-col items-start"> | ||
<p className="text-xl text-black dark:text-white">{position.title}</p> | ||
<a className="text-base underline text-black dark:text-white" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
href={position.url}> | ||
{position.company} | ||
</a> | ||
<div className="flex items-center gap-1 text-sm text-gray-600 dark:text-gray-400"> | ||
{startDateTag} | ||
{`→`} | ||
{finishDateTag} | ||
</div> | ||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
const fullTimePositions = [ | ||
{ | ||
title: "iOS Developer", | ||
company: "Welltory", | ||
image: "/images/companies/welltory.png", | ||
url: "https://welltory.com", | ||
startDate: "2022-06", | ||
}, | ||
{ | ||
title: "iOS Developer", | ||
company: "Skyeng", | ||
image: "/images/companies/skyeng.png", | ||
url: "https://skyeng.ru", | ||
startDate: "2020-07", | ||
finishDate: "2022-06", | ||
}, | ||
{ | ||
title: "iOS Developer", | ||
company: "Rosberry", | ||
image: "/images/companies/rosberry.png", | ||
url: "https://rosberry.com", | ||
startDate: "2014-11", | ||
finishDate: "2020-07", | ||
}, | ||
{ | ||
title: "iOS Developer", | ||
company: "Burning Buttons", | ||
image: "/images/companies/burning_buttons.png", | ||
url: "https://burningbuttons.com", | ||
startDate: "2014-02", | ||
finishDate: "2014-05", | ||
} | ||
] | ||
|
||
const partTimePositions = [ | ||
{ | ||
title: "iOS Expert", | ||
company: "Netology", | ||
image: "/images/companies/netology.png", | ||
url: "https://netology.ru/programs/ios-developer", | ||
startDate: "2020-08", | ||
}, | ||
{ | ||
title: "iOS Mentor", | ||
company: "Solvery", | ||
image: "/images/companies/solvery.png", | ||
url: "https://solvery.io/ru/mentor/artemnovichkov", | ||
startDate: "2021-07", | ||
}, | ||
{ | ||
title: "iOS Mentor", | ||
company: "Codementor", | ||
image: "/images/companies/codementor.png", | ||
url: "https://www.codementor.io/@artemnovichkov", | ||
startDate: "2017-12", | ||
}, | ||
{ | ||
title: "Freelance iOS Developer", | ||
company: "Upwork", | ||
image: "/images/companies/upwork.png", | ||
url: "https://www.upwork.com/freelancers/~01be851609bdb126f7", | ||
startDate: "2015-09", | ||
finishDate: "2018-09", | ||
}, | ||
] |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import Link from "next/link"; | ||
|
||
export default function Header() { | ||
return ( | ||
<header className="sticky-nav w-full py-4"> | ||
<nav> | ||
<Link href="/" className="p-4 text-gray-900 hover:text-gray-600 dark:text-white"> | ||
Home | ||
</Link> | ||
<Link href="/blog" className="p-4 text-gray-900 hover:text-gray-600 dark:text-white"> | ||
Blog | ||
</Link> | ||
<Link href="/feed.xml" className="p-4 text-gray-900 hover:text-gray-600 dark:text-white"> | ||
RSS | ||
</Link> | ||
</nav> | ||
</header> | ||
) | ||
} |
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,20 @@ | ||
import { getAllPosts } from "@/lib/api"; | ||
import Container from "../_components/container"; | ||
import PostPreview from "../_components/post-preview"; | ||
|
||
export default function Blog() { | ||
const posts = getAllPosts(); | ||
return ( | ||
<main> | ||
<Container> | ||
<p className="font-bold text-3xl tracking-tight mb-8 text-black dark:text-white">Blog</p> | ||
<div> | ||
<section> | ||
<ul> | ||
{posts.map((post) => ( | ||
<li key={post.slug}> | ||
<PostPreview post={post} /> | ||
</li> | ||
))} | ||
</ul> | ||
</section> | ||
</div> | ||
</Container> | ||
<section> | ||
<ul> | ||
{posts.map((post) => ( | ||
<li key={post.slug}> | ||
<PostPreview post={post} /> | ||
</li> | ||
))} | ||
</ul> | ||
</section> | ||
</main> | ||
); | ||
} |
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.