Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
noahlitvin committed Feb 24, 2025
1 parent 19e1a76 commit f15a6dd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
3 changes: 1 addition & 2 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import type { Metadata } from "next";
import { Space_Grotesk, Chakra_Petch } from "next/font/google";
import "./globals.css";
import { ThemeProvider } from "@/components/theme-provider";
import { basePath } from "@/lib/utils";

const spaceGrotesk = Space_Grotesk({
variable: "--font-space-grotesk",
Expand All @@ -22,7 +21,7 @@ export const metadata: Metadata = {
openGraph: {
images: [
{
url: `${basePath}/og.png`,
url: "/og.png",
},
],
},
Expand Down
7 changes: 3 additions & 4 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { Button } from "@/components/ui/button";
import { Github, Package, BookOpen, Copy, Check } from "lucide-react";
import { motion, AnimatePresence, useInView } from "framer-motion";
import Image from "next/image";
import { basePath } from "@/lib/utils";

function HomeContent() {
const [copiedId, setCopiedId] = React.useState<string | null>(null);
Expand Down Expand Up @@ -210,7 +209,7 @@ function HomeContent() {
<td className={`px-3 py-2 ${index !== 3 ? 'border-b border-zinc-800' : ''}`}>
<div className="flex gap-4 justify-end min-w-[88px]">
<Image
src={`${basePath}/cannon.svg`}
src="/cannon.svg"
alt="Cannon"
width={16}
height={16}
Expand All @@ -228,7 +227,7 @@ function HomeContent() {

<motion.h2
ref={examplesHeaderRef}
className="backdrop-blur-sm mt-12 md:pt-24 mb-12 md:mb-24 text-muted-foreground text-mono font-medium tracking-widest uppercase text-lg flex items-center justify-center"
className="backdrop-blur-sm mt-12 pt-12 md:pt-24 mb-12 md:mb-24 text-muted-foreground text-mono font-medium tracking-widest uppercase text-lg flex items-center justify-center"
initial={{ opacity: 0, y: 20 }}
animate={{
opacity: examplesHeaderInView ? 1 : 0,
Expand Down Expand Up @@ -403,7 +402,7 @@ function HomeContent() {
>
built with{" "}
<Image
src={`${basePath}/heart.webp`}
src="/heart.webp"
alt="heart"
width={16}
height={16}
Expand Down
4 changes: 1 addition & 3 deletions lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,4 @@ import { twMerge } from "tailwind-merge"

export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
}

export const basePath = process.env.NODE_ENV === 'production' ? '/erc7412' : '';
}

0 comments on commit f15a6dd

Please sign in to comment.