Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
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
/** @jsxImportSource https://esm.sh/react */
// import { faCoffee } from "npm:@fortawesome/free-solid-svg-icons";
import {
faGithub,
faInstagram,
faLinkedin,
faThreads,
faTwitter,
faXTwitter,
} from "npm:@fortawesome/free-brands-svg-icons";
import { FontAwesomeIcon } from "npm:@fortawesome/react-fontawesome";
import { renderToString } from "npm:react-dom/server";
export default async function(req: Request) {
return new Response(
renderToString(
<html>
<head>
<meta charSet="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Jack Ellis Links</title>
</head>
<body
style={{ padding: "30px", width: "300px", margin: "0 auto", fontFamily: "sans-serif", textAlign: "center" }}
>
<h1>Jack Ellis</h1>
<p>Just an average Jack</p>
<div style={{ display: "flex", flexDirection: "column", gap: "15px" }}>
<a href="https://www.instagram.com/opeala" style={itemStyle}>
Instagram <FontAwesomeIcon icon={faInstagram} style={iconStyle} />
</a>
<a href="https://github.com/opeala" style={itemStyle}>
Github <FontAwesomeIcon icon={faGithub} style={iconStyle} />
</a>
<a href="https://www.linkedin.com/injack-ellis-dev/" style={itemStyle}>
LinkedIn <FontAwesomeIcon icon={faLinkedin} style={iconStyle} />
</a>
<a href="https://twitter.com/opeala" style={itemStyle}>
Twitter <FontAwesomeIcon icon={faXTwitter} style={iconStyle} />
</a>
<a href="https://www.threads.net/@opeala" style={itemStyle}>
Threads <FontAwesomeIcon icon={faThreads} style={iconStyle} />
</a>
</div>
</body>
</html>,
),
{
headers: {
"Content-Type": "text/html",
},
},
);
}
const itemStyle = {
padding: "10px",
color: "white",
// background: "12c2e9",
// background: "-webkit-linear-gradient(to right, #f64f59, #c471ed, #12c2e9)",
background: "linear-gradient(to right, #f64f59, #c471ed, #12c2e9)",
borderRadius: "20px",
textDecoration: "none",
display: "flex",
flexDirection: "row",
justifyContent: "center",
alignItems: "center",
gap: "10px",
fontSize: "20px",
// fontWeight: "bold",
boxShadow: "0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",
};
const iconStyle = {
fontSize: "20px",
maxWidth: "24px",
// color: "blue",
};
opeala-linkinbiotemplate.web.val.run
September 13, 2024