-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
consts.ts
46 lines (40 loc) · 1.35 KB
/
consts.ts
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
import { env } from "env/client";
export const ORIGIN =
env.NEXT_PUBLIC_HOST ?? env.NEXT_PUBLIC_VERCEL_URL ?? ("www.zagrodzki.me" as const);
export const PROTOCOL = process.env.NODE_ENV === "production" ? "https" : "http";
export const HOST = `${PROTOCOL}://${ORIGIN}` as const;
export const SEPARATOR = " • ";
export const SITE_TITLE = "Bartosz Zagrodzki";
export const SITE_TITLE_TEMPLATE = `%s ${SEPARATOR} ${SITE_TITLE}`;
export const SHORT_DESCRIPTION = "My personal website";
export const DEFAULT_DESCRIPTION =
"Software engineer building products to help people lead better lives. In love with creative solutions - constantly learning and discovering new stuff.";
export const DEFAULT_IMAGE_URL = `/img/banner.png`;
export const SOCIALS = [
{
id: "x",
name: "x (twitter)",
color: "#000000",
link: `https://x.com/${env.NEXT_PUBLIC_X_USERNAME}`,
},
{
id: "linkedin",
name: "linkedin",
color: "#2867B2",
link: `https://www.linkedin.com/in/${env.NEXT_PUBLIC_LINKEDIN_USERNAME}`,
},
{
id: "github",
name: "github",
color: "#333",
link: `https://github.com/${env.NEXT_PUBLIC_GITHUB_USERNAME}`,
},
{
id: "rss",
name: "rss",
color: "#ee802f",
link: "/feed",
},
] as const;
export const EMAIL_REGEX = /^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+.[a-zA-Z0-9-.]+$/;
export const CONTENT_ID = "content";