diff --git a/next.config.js b/next.config.js
index 6a11e04..663a78f 100644
--- a/next.config.js
+++ b/next.config.js
@@ -26,23 +26,25 @@ const coreConfig = {
},
};
+export default coreConfig;
+
// Injected content via Sentry wizard below
-import { withSentryConfig } from "@sentry/nextjs";
+// import { withSentryConfig } from "@sentry/nextjs";
-export default withSentryConfig(
- coreConfig,
- {
- silent: true,
- org: "ricardo-castro",
- project: "penim",
- },
- {
- widenClientFileUpload: true,
- transpileClientSDK: true,
- tunnelRoute: "/monitoring",
- hideSourceMaps: true,
- disableLogger: true,
- automaticVercelMonitors: true,
- },
-);
+// export default withSentryConfig(
+// coreConfig,
+// {
+// silent: true,
+// org: "ricardo-castro",
+// project: "penim",
+// },
+// {
+// widenClientFileUpload: true,
+// transpileClientSDK: true,
+// tunnelRoute: "/monitoring",
+// hideSourceMaps: true,
+// disableLogger: true,
+// automaticVercelMonitors: true,
+// },
+// );
diff --git a/src/app/_components/floating-nav.tsx b/src/app/_components/floating-nav.tsx
new file mode 100644
index 0000000..9cce3aa
--- /dev/null
+++ b/src/app/_components/floating-nav.tsx
@@ -0,0 +1,52 @@
+import Link from "next/link";
+import { Brain, Camera, CircleEllipsis, Home } from "lucide-react";
+
+export function FloatingNav() {
+ const items = [
+ {
+ name: "Inicio",
+ icon: Home,
+ href: "/",
+ },
+ {
+ name: "Galeria",
+ icon: Camera,
+ href: "/galeria",
+ },
+ {
+ name: "Mas opciones",
+ icon: CircleEllipsis,
+ href: "/opciones",
+ },
+ ];
+
+ return (
+
+ );
+}
diff --git a/src/app/_components/side-nav.tsx b/src/app/_components/side-nav.tsx
index c304334..d454795 100644
--- a/src/app/_components/side-nav.tsx
+++ b/src/app/_components/side-nav.tsx
@@ -1,147 +1,139 @@
"use client";
-import { SignedIn, SignedOut, UserButton, useAuth } from "@clerk/nextjs";
+import { SignInButton, SignedIn, SignedOut, UserButton } from "@clerk/nextjs";
import React from "react";
import Link from "next/link";
import {
- Brain,
- Camera,
- CircleEllipsis,
- Home,
- Pencil,
- User,
+ Brain,
+ Camera,
+ CircleEllipsis,
+ Home,
} from "lucide-react";
+import { Button } from "~/components/ui/button";
function SideUserActions() {
- return (
-
- );
+ return (
+
+
+
+
+
+
+
+
+
+
+ );
}
export function SideNav() {
- const items = [
- {
- name: "Inicio",
- icon: Home,
- href: "/",
- },
- {
- name: "Pensamientos",
- icon: Pencil,
- href: "/penin",
- },
- {
- name: "Galeria",
- icon: Camera,
- href: "/galeria",
- },
- {
- name: "Perfil",
- icon: User,
- href: "/perfil",
- },
- {
- name: "Mas opciones",
- icon: CircleEllipsis,
- href: "/opciones",
- },
- ];
+ const items = [
+ {
+ name: "Inicio",
+ icon: Home,
+ href: "/",
+ },
+ {
+ name: "Galeria",
+ icon: Camera,
+ href: "/galeria",
+ },
+ {
+ name: "Mas opciones",
+ icon: CircleEllipsis,
+ href: "/opciones",
+ },
+ ];
- return (
-
-
-
-
-
- {/* Logo */}
-
-
-
-
-
-
-
- {/* Navigation */}
-
-
-
- {/* Escribir btn */}
-
-
-
-
-
- Escribir
-
-
-
-
-
- {/* User Menu */}
-
-
-
-
-
-
-
- );
+ return (
+
+
+
+
+
+ {/* Logo */}
+
+
+
+
+
+
+
+ {/* Navigation */}
+
+
+
+ {/* Escribir btn */}
+
+
+
+
+
+ Escribir
+
+
+
+
+
+ {/* User Menu */}
+
+
+
+
+
+
+
+ );
}
diff --git a/src/app/manifest.ts b/src/app/manifest.ts
new file mode 100644
index 0000000..13613fe
--- /dev/null
+++ b/src/app/manifest.ts
@@ -0,0 +1,21 @@
+import type { MetadataRoute } from "next";
+
+export default function manifest(): MetadataRoute.Manifest {
+ return {
+ name: "Next.js App",
+ short_name: "Next.js App",
+ description: "Next.js App",
+ start_url: "/",
+ display: "standalone",
+ background_color: "#fff",
+ theme_color: "#fff",
+ scope: "/",
+ icons: [
+ {
+ src: "/favicon.ico",
+ sizes: "any",
+ type: "image/x-icon",
+ },
+ ],
+ };
+}
diff --git a/src/app/page.tsx b/src/app/page.tsx
index a67fdeb..ccf3384 100644
--- a/src/app/page.tsx
+++ b/src/app/page.tsx
@@ -1,6 +1,7 @@
"use client";
-import { useEffect, useState } from "react";
+import { useUser } from "@clerk/nextjs";
+import React, { useCallback, useEffect, useState } from "react";
import { Button } from "~/components/ui/button";
import { Card, CardContent } from "~/components/ui/card";
import {
@@ -9,12 +10,55 @@ import {
CarouselContent,
CarouselItem,
CarouselNext,
- CarouselPrevious,
+ useCarousel,
} from "~/components/ui/carousel";
import { Label } from "~/components/ui/label";
import { Textarea } from "~/components/ui/textarea";
+import { cn } from "~/lib/utils";
+import { ArrowLeft } from "lucide-react";
+
+const ButtonPrevious = React.forwardRef<
+ HTMLButtonElement,
+ React.ComponentProps
+>(({ className, ...props }, ref) => {
+ const { scrollPrev, canScrollPrev } = useCarousel();
+
+ return (
+
+ );
+});
+
+const ButtonNext = React.forwardRef<
+ HTMLButtonElement,
+ React.ComponentProps
+>(({ className, ...props }, ref) => {
+ const { scrollNext, canScrollNext } = useCarousel();
+
+ return (
+
+ );
+});
export default function HomePage() {
+ const { user } = useUser();
const [api, setApi] = useState();
const [current, setCurrent] = useState(0);
const [count, setCount] = useState(0);
@@ -31,101 +75,94 @@ export default function HomePage() {
}, [api]);
return (
-
-
-
- {/* Main Form Content */}
-
-
- {/* Sidebar Main */}
-
-
-
-
-
-
-
-
- {/* Premium Aside */}
-
-
-
-
-
-
-
+
-
-
-
-
-
Hola, Natalia.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
+function TopHeader({
+ name,
+ picUrl,
+}: { name: string | null | undefined; picUrl: string | undefined }) {
+ return (
+
+
-
-
+
+

+
+
Hola {name}!
+
+ Vamos a explorar lo que esta pasando por tu mente.
+
+
+
);
}
diff --git a/src/app/robots.ts b/src/app/robots.ts
new file mode 100644
index 0000000..83682b1
--- /dev/null
+++ b/src/app/robots.ts
@@ -0,0 +1,12 @@
+import type { MetadataRoute } from "next";
+
+export default function robots(): MetadataRoute.Robots {
+ return {
+ rules: {
+ userAgent: "*",
+ allow: "/",
+ disallow: "/private/",
+ },
+ sitemap: "https://acme.com/sitemap.xml",
+ };
+}
diff --git a/src/components/ui/button.tsx b/src/components/ui/button.tsx
index dd92caf..89508a6 100644
--- a/src/components/ui/button.tsx
+++ b/src/components/ui/button.tsx
@@ -9,7 +9,8 @@ const buttonVariants = cva(
{
variants: {
variant: {
- default: "bg-primary text-primary-foreground hover:bg-primary/90",
+ default:
+ "bg-primary text-primary-foreground hover:bg-secondary border-2 border-secondary hover:text-primary",
destructive:
"bg-destructive text-destructive-foreground hover:bg-destructive/90",
outline:
diff --git a/src/components/ui/carousel.tsx b/src/components/ui/carousel.tsx
index f1e042d..bb6ef12 100644
--- a/src/components/ui/carousel.tsx
+++ b/src/components/ui/carousel.tsx
@@ -32,7 +32,7 @@ type CarouselContextProps = {
const CarouselContext = React.createContext
(null);
-function useCarousel() {
+export function useCarousel() {
const context = React.useContext(CarouselContext);
if (!context) {
diff --git a/src/components/ui/textarea.tsx b/src/components/ui/textarea.tsx
index c6056be..4727963 100644
--- a/src/components/ui/textarea.tsx
+++ b/src/components/ui/textarea.tsx
@@ -10,7 +10,7 @@ const Textarea = React.forwardRef(
return (