Skip to content

Commit

Permalink
hello world
Browse files Browse the repository at this point in the history
  • Loading branch information
piducancore committed May 5, 2024
1 parent e837137 commit 490d880
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 61 deletions.
12 changes: 4 additions & 8 deletions app/global.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'tailwindcss';
@import "tailwindcss";

::selection {
background-color: #47a3f3;
Expand Down Expand Up @@ -29,10 +29,6 @@
}
}

html {
min-width: 360px;
}

.prose .anchor {
@apply absolute invisible no-underline;

Expand All @@ -53,7 +49,7 @@ html {

.prose .anchor:after {
@apply text-neutral-300 dark:text-neutral-700;
content: '#';
content: "#";
}

.prose *:hover > .anchor {
Expand Down Expand Up @@ -131,8 +127,8 @@ pre {
}

/* Remove Safari input shadow on mobile */
input[type='text'],
input[type='email'] {
input[type="text"],
input[type="email"] {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
Expand Down
66 changes: 29 additions & 37 deletions app/layout.tsx
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>
)
);
}
23 changes: 7 additions & 16 deletions app/page.tsx
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>
)
);
}

0 comments on commit 490d880

Please sign in to comment.