-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e837137
commit 490d880
Showing
3 changed files
with
40 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,66 +1,58 @@ | ||
import './global.css' | ||
import type { Metadata } from 'next' | ||
import { GeistSans } from 'geist/font/sans' | ||
import { GeistMono } from 'geist/font/mono' | ||
import { Navbar } from './components/nav' | ||
import { Analytics } from '@vercel/analytics/react' | ||
import { SpeedInsights } from '@vercel/speed-insights/next' | ||
import Footer from './components/footer' | ||
import { baseUrl } from './sitemap' | ||
import "./global.css"; | ||
import type { Metadata } from "next"; | ||
import { GeistSans } from "geist/font/sans"; | ||
import { GeistMono } from "geist/font/mono"; | ||
import { Navbar } from "./components/nav"; | ||
import { Analytics } from "@vercel/analytics/react"; | ||
import { SpeedInsights } from "@vercel/speed-insights/next"; | ||
import Footer from "./components/footer"; | ||
import { baseUrl } from "./sitemap"; | ||
|
||
export const metadata: Metadata = { | ||
metadataBase: new URL(baseUrl), | ||
title: { | ||
default: 'cyberpunga', | ||
template: '%s | cyberpunga', | ||
default: "cyberpunga", | ||
template: "%s | cyberpunga", | ||
}, | ||
description: 'si estás leyendo esto, significa que sigues con vida y nos alegra muchísimo.', | ||
description: "si estás leyendo esto, significa que sigues con vida y nos alegra muchísimo.", | ||
openGraph: { | ||
title: 'cyberpunga', | ||
description: 'si estás leyendo esto, significa que sigues con vida y nos alegra muchísimo.', | ||
title: "cyberpunga", | ||
description: "si estás leyendo esto, significa que sigues con vida y nos alegra muchísimo.", | ||
url: baseUrl, | ||
siteName: 'cyberpunga', | ||
locale: 'es_CL', | ||
type: 'website', | ||
siteName: "cyberpunga", | ||
locale: "es_CL", | ||
type: "website", | ||
}, | ||
robots: { | ||
index: true, | ||
follow: true, | ||
googleBot: { | ||
index: true, | ||
follow: true, | ||
'max-video-preview': -1, | ||
'max-image-preview': 'large', | ||
'max-snippet': -1, | ||
"max-video-preview": -1, | ||
"max-image-preview": "large", | ||
"max-snippet": -1, | ||
}, | ||
}, | ||
} | ||
}; | ||
|
||
const cx = (...classes) => classes.filter(Boolean).join(' ') | ||
const cx = (...classes) => classes.filter(Boolean).join(" "); | ||
|
||
export default function RootLayout({ | ||
children, | ||
}: { | ||
children: React.ReactNode | ||
}) { | ||
export default function RootLayout({ children }: { children: React.ReactNode }) { | ||
return ( | ||
<html | ||
lang="en" | ||
className={cx( | ||
'text-black bg-white dark:text-white dark:bg-black h-full', | ||
GeistSans.variable, | ||
GeistMono.variable | ||
)} | ||
className={cx("text-black bg-white dark:text-white dark:bg-black h-full", GeistSans.variable, GeistMono.variable)} | ||
> | ||
<body className="antialiased max-w-xl mx-4 mt-8 lg:mx-auto h-full"> | ||
<main className="flex-auto min-w-0 mt-6 flex flex-col px-2 md:px-0 h-full"> | ||
<Navbar /> | ||
<body className="antialiased mx-4 lg:mx-auto h-full"> | ||
<main className="flex-auto flex flex-col px-2 md:px-0 h-full"> | ||
{/* <Navbar /> */} | ||
{children} | ||
<Footer /> | ||
{/* <Footer /> */} | ||
<Analytics /> | ||
<SpeedInsights /> | ||
</main> | ||
</body> | ||
</html> | ||
) | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,12 @@ | ||
import { BlogPosts } from 'app/components/posts' | ||
|
||
export default function Page() { | ||
return ( | ||
<section> | ||
<h1 className="mb-8 text-2xl font-semibold tracking-tighter"> | ||
My Portfolio | ||
<section className="flex-auto grid place-items-center"> | ||
<h1 | ||
data-text={"si estás leyendo esto, significa que sigues con vida y nos alegra muchísimo."} | ||
className="relative before:absolute before:content-[attr(data-text)] before:top-0 before:left-0 before:blur" | ||
> | ||
si estás leyendo esto, significa que sigues con vida y nos alegra muchísimo. | ||
</h1> | ||
<p className="mb-4"> | ||
{`I'm a Vim enthusiast and tab advocate, finding unmatched efficiency in | ||
Vim's keystroke commands and tabs' flexibility for personal viewing | ||
preferences. This extends to my support for static typing, where its | ||
early error detection ensures cleaner code, and my preference for dark | ||
mode, which eases long coding sessions by reducing eye strain.`} | ||
</p> | ||
<div className="my-8"> | ||
<BlogPosts /> | ||
</div> | ||
</section> | ||
) | ||
); | ||
} |