Skip to content

Commit 9a625da

Browse files
committed
Add a specific page for Jesse
Turns out the external-sites.json file only works for GitHub Docs.
1 parent 25c5ff2 commit 9a625da

File tree

2 files changed

+44
-3
lines changed

2 files changed

+44
-3
lines changed

src/external-sites.json

-3
This file was deleted.

src/pages/calendars/jesse.jsx

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
import Head from "next/head";
2+
import { useEffect } from "react";
3+
import { Header } from "@/components/Header";
4+
import { Footer } from "@/components/Footer";
5+
import { Container } from "@/components/Container";
6+
7+
export default function Redirect() {
8+
const redirectUrl =
9+
"https://calendar.google.com/calendar/u/0/appointments/AcZssZ10w4zrHjSvRNuOXRCvkruv_l4rT9O14mvM4yw=?gv=true";
10+
11+
useEffect(() => {
12+
window.location.href = redirectUrl;
13+
}, []);
14+
15+
return (
16+
<>
17+
<Head>
18+
<meta httpEquiv="refresh" content={`0; url=${redirectUrl}`} />
19+
<title>Redirecting...</title>
20+
</Head>
21+
<Header />
22+
<main>
23+
<section
24+
id="why-ratio"
25+
aria-label="Features for simplifying everyday business tasks"
26+
className="pb-14 pt-20 sm:pb-20 sm:pt-32 lg:pb-32"
27+
>
28+
<Container>
29+
<div className="mx-auto max-w-2xl md:text-center">
30+
<h2 className="font-display text-3xl tracking-tight text-slate-900 sm:text-4xl">
31+
Redirecting to Jesse's appointment calendar...
32+
</h2>
33+
<p className="mt-4 text-lg tracking-tight text-slate-700">
34+
If you are not redirected automatically,{" "}
35+
<a href={redirectUrl}>click here</a>.
36+
</p>
37+
</div>
38+
</Container>
39+
</section>
40+
</main>
41+
<Footer />
42+
</>
43+
);
44+
}

0 commit comments

Comments
 (0)