1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
/** @jsxImportSource https://esm.sh/react */
import { ArrowDownIcon, ChevronRightIcon } from "npm:@heroicons/react/20/solid";
import { Hono } from "npm:hono@3";
import { renderToString } from "npm:react-dom/server";
const timeline = [
{
id: 1,
slogan: "git repository hosting - no longer a pain in the ass",
href: "https://web.archive.org/web/20080514210148/http://github.com/",
date: "2008",
imgURL: "https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/8891cf87-f3aa-4251-4d2d-4861c6cadb00/public",
imageAlt: "GitHub Screenshot 2008",
datetime: "2020-09-20",
iconBackground: "bg-gray-400",
},
{
id: 2,
slogan: "GitHub is for Public Open Source and Private Business Code",
href: "https://web.archive.org/web/20091115131017/http://github.com/",
date: "2009",
imgURL: "https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/51cb8caf-4ce1-42fb-6ff2-b00490866800/public",
datetime: "2020-09-22",
iconBackground: "bg-blue-500",
},
{
id: 3,
slogan: "Completed phone screening with",
target: "Martha Gardner",
href: "#",
date: "Sep 28",
datetime: "2020-09-28",
imgURL: "https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/406c6e61-88b0-4c2b-22a6-e12db477fa00/public",
iconBackground: "bg-green-500",
},
{
id: 4,
slogan: "Advanced to interview by",
target: "Bethany Blake",
href: "#",
date: "Sep 30",
imgURL: "https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/406c6e61-88b0-4c2b-22a6-e12db477fa00/public",
datetime: "2020-09-30",
iconBackground: "bg-blue-500",
},
{
id: 5,
slogan: "Completed interview with",
target: "Katherine Snyder",
href: "#",
date: "Oct 4",
imgURL: "https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/406c6e61-88b0-4c2b-22a6-e12db477fa00/public",
datetime: "2020-10-04",
iconBackground: "bg-green-500",
},
];
function classNames(...classes) {
return classes.filter(Boolean).join(" ");
}
const Screenshots = (props: { screenshots }) => {
return (
<div className="w-full flex justify-center">
<div className="max-w-7xl mx-auto">
<ul role="list" className="-mb-8">
{timeline.map((event, eventIdx) => (
<li key={event.id}>
<div className="flex flex-col items-center pb-2">
{eventIdx !== 0
? <ArrowDownIcon className="w-8 h-8 text-indigo-500" />
: null}
<div className="relative flex justify-start space-x-6 items-end w-[32rem]">
<div className="max-w-md bg-white rounded-lg shadow-lg border w-[32rem]">
<div className="flex items-center justify-between bg-gray-300 px-2 py-1 rounded-t-lg w-[32rem]">
<div className="flex space-x-1">
<div className="w-2 h-2 bg-red-500 rounded-full"></div>
<div className="w-2 h-2 bg-yellow-500 rounded-full"></div>
<div className="w-2 h-2 bg-green-500 rounded-full"></div>
</div>
<div className="text-gray-500 text-xs">github.com</div>
</div>
<div className="w-[32rem]">
<div className="relative w-[32rem]">
<div className="relative rounded-lg w-[32rem]">
<img
alt={event.imageAlt}
src={event.imgURL}
className="rounded-b-lg w-[32rem] h-[18rem]"
/>
</div>
<div className="absolute inset-x-0 top-0 flex h-[18rem] items-end justify-end overflow-hidden rounded-lg p-4">
<div
aria-hidden="true"
className="absolute inset-x-0 bottom-0 h-36 bg-gradient-to-t from-black opacity-50"
/>