tangled
alpha
login
or
join now
backups.bunware.org
/
atbackup
18
fork
atom
One-click backups for AT Protocol
18
fork
atom
overview
issues
2
pulls
pipelines
fix: build issues
Turtlepaw
8 months ago
6cfec02d
a66da2a2
+49
-6
5 changed files
expand all
collapse all
unified
split
docs
app
_meta.tsx
layout.tsx
page.tsx
content
index.mdx
next.config.mjs
+14
docs/app/_meta.tsx
···
1
1
+
export default {
2
2
+
index: {
3
3
+
type: "page",
4
4
+
display: "hidden",
5
5
+
},
6
6
+
auth: {
7
7
+
type: "page",
8
8
+
display: "hidden",
9
9
+
},
10
10
+
docs: {
11
11
+
type: "page",
12
12
+
title: "Documentation",
13
13
+
},
14
14
+
};
+29
-3
docs/app/layout.tsx
···
5
5
import "./app.css";
6
6
import Image from "next/image";
7
7
import Link from "next/link";
8
8
+
import { Metadata } from "next";
8
9
9
9
-
export const metadata = {
10
10
-
// Define your metadata here
11
11
-
// For more information on metadata API, see: https://nextjs.org/docs/app/building-your-application/optimizing/metadata
10
10
+
export const metadata: Metadata = {
11
11
+
description: "One-click backup for Bluesky",
12
12
+
metadataBase: new URL("https://atbackup.pages.dev"),
13
13
+
keywords: ["Bluesky", "AT Backup", "Backup"],
14
14
+
generator: "Next.js",
15
15
+
applicationName: "AT Backup",
16
16
+
appleWebApp: {
17
17
+
title: "AT Backup",
18
18
+
},
19
19
+
title: {
20
20
+
default: "AT Backup – One-click backup for Bluesky",
21
21
+
template: "%s | AT Backup",
22
22
+
},
23
23
+
openGraph: {
24
24
+
// https://github.com/vercel/next.js/discussions/50189#discussioncomment-10826632
25
25
+
url: "./",
26
26
+
siteName: "AT Backup",
27
27
+
locale: "en_US",
28
28
+
type: "website",
29
29
+
},
30
30
+
other: {
31
31
+
"msapplication-TileColor": "#fff",
32
32
+
},
33
33
+
alternates: {
34
34
+
// https://github.com/vercel/next.js/discussions/50189#discussioncomment-10826632
35
35
+
canonical: "./",
36
36
+
},
12
37
};
13
38
14
39
const banner = <Banner storageKey="some-key">Nextra 4.0 is released 🎉</Banner>;
···
20
45
<span>AT Backup</span>
21
46
</div>
22
47
}
48
48
+
projectLink="https://github.com/turtlepaw/atproto-backup"
23
49
// ... Your additional navbar options
24
50
/>
25
51
);
+4
-2
docs/app/page.tsx
···
128
128
};
129
129
}, []);
130
130
131
131
+
const Component = playing ? Pause : Play;
132
132
+
131
133
return (
132
134
<div
133
135
className={`relative flex flex-col items-center ${className}`}
···
142
144
/>
143
145
<button
144
146
onClick={togglePlay}
145
145
-
className="absolute bottom-3 right-3 p-3 bg-black/15 border-[1px] border-white/10 backdrop-blur-sm rounded-[100rem] hover:bg-black/5 transition cursor-pointer"
147
147
+
className="absolute bottom-3 right-3 p-2 bg-black/80 border-[1px] border-white/10 backdrop-blur-sm rounded-[100rem] hover:bg-black/50 transition cursor-pointer"
146
148
aria-label={playing ? "Pause video" : "Play video"}
147
149
style={{ pointerEvents: "auto" }}
148
150
>
149
149
-
{playing ? <Pause /> : <Play />}
151
151
+
<Component className="text-white" width={20} height={20} />
150
152
</button>
151
153
</div>
152
154
);
+1
docs/content/index.mdx
···
1
1
+
# Welcome to the docs
+1
-1
docs/next.config.mjs
···
2
2
3
3
// Set up Nextra with its configuration
4
4
const withNextra = nextra({
5
5
-
// ... Add Nextra-specific options here
5
5
+
contentDirBasePath: "/docs",
6
6
});
7
7
8
8
// Export the final Next.js config with Nextra included