- Create your first repository to start building something awesome
-
+
Create your first repository to start building something awesome
@@ -93,19 +88,14 @@ function LandingPage() {
Where the world
-
- builds software
-
+ builds software
- Host and review code, manage projects, and build software alongside
- millions of developers. Your code, your way.
+ Host and review code, manage projects, and build software alongside millions of developers. Your code, your way.
-
- Get started for free
-
+ Get started for free
Sign in
@@ -118,9 +108,7 @@ function LandingPage() {
Everything you need to ship
-
- Powerful features to help you build, test, and deploy your projects faster
-
+
Powerful features to help you build, test, and deploy your projects faster
diff --git a/app/(main)/settings/page.tsx b/app/(main)/settings/page.tsx
index a7d7eef..372f7c4 100644
--- a/app/(main)/settings/page.tsx
+++ b/app/(main)/settings/page.tsx
@@ -4,7 +4,6 @@ import { ProfileForm } from "@/components/settings/profile-form";
import { AvatarUpload } from "@/components/settings/avatar-upload";
import { SocialLinksForm } from "@/components/settings/social-links-form";
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";
-import { Separator } from "@/components/ui/separator";
export default async function SettingsPage() {
const user = await getCurrentUser();
@@ -18,9 +17,7 @@ export default async function SettingsPage() {
Profile Picture
-
- Upload a picture to personalize your profile
-
+ Upload a picture to personalize your profile
@@ -30,9 +27,7 @@ export default async function SettingsPage() {
Profile Information
-
- Update your profile details visible to other users
-
+ Update your profile details visible to other usersSocial Links
-
- Add links to your social profiles
-
+ Add links to your social profiles
@@ -62,4 +55,3 @@ export default async function SettingsPage() {
);
}
-
diff --git a/app/api/auth/[...all]/route.ts b/app/api/auth/[...all]/route.ts
index 2deb8e8..7cbe91b 100644
--- a/app/api/auth/[...all]/route.ts
+++ b/app/api/auth/[...all]/route.ts
@@ -2,4 +2,3 @@ import { auth } from "@/lib/auth";
import { toNextJsHandler } from "better-auth/next-js";
export const { POST, GET } = toNextJsHandler(auth);
-
diff --git a/app/api/avatar/[filename]/route.ts b/app/api/avatar/[filename]/route.ts
index 216bc7a..c63ea2f 100644
--- a/app/api/avatar/[filename]/route.ts
+++ b/app/api/avatar/[filename]/route.ts
@@ -1,22 +1,19 @@
import { NextRequest, NextResponse } from "next/server";
import { r2Get } from "@/lib/r2";
-export async function GET(
- request: NextRequest,
- { params }: { params: Promise<{ filename: string }> }
-) {
+export async function GET(request: NextRequest, { params }: { params: Promise<{ filename: string }> }) {
const { filename } = await params;
-
+
const key = `avatars/${filename}`;
const data = await r2Get(key);
-
+
if (!data) {
return new NextResponse(null, { status: 404 });
}
const ext = filename.split(".").pop()?.toLowerCase();
let contentType = "image/png";
-
+
if (ext === "jpg" || ext === "jpeg") {
contentType = "image/jpeg";
} else if (ext === "gif") {
@@ -32,4 +29,3 @@ export async function GET(
},
});
}
-
diff --git a/app/not-found.tsx b/app/not-found.tsx
index 0ecbfdf..77ade75 100644
--- a/app/not-found.tsx
+++ b/app/not-found.tsx
@@ -5,15 +5,12 @@ import { GitBranch, Home } from "lucide-react";
export default function NotFound() {
return (
-
+
404
Page not found
-
- The page you're looking for doesn't exist or you don't have
- permission to view it.
-
+
The page you're looking for doesn't exist or you don't have permission to view it.
@@ -24,4 +21,3 @@ export default function NotFound() {