Skip to content

Commit

Permalink
chore(one-to-one): remove local fonts as they are not being used (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeisonline authored Jan 6, 2025
1 parent 7c0c041 commit ff8cb61
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 46 deletions.
6 changes: 6 additions & 0 deletions .changeset/gentle-islands-prove.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"next-auth-template-one-to-one": minor
"next-auth-template": patch
---

chore(one-to-one): remove local fonts as they are not being used
19 changes: 3 additions & 16 deletions templates/one-to-one/src/app/(app)/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
import localFont from "next/font/local"
import "../../globals.css"

const geistSans = localFont({
src: "../../fonts/GeistVF.woff",
variable: "--font-geist-sans",
weight: "100 900",
})
const geistMono = localFont({
src: "../../fonts/GeistMonoVF.woff",
variable: "--font-geist-mono",
weight: "100 900",
})
import { fetchCurrentUser } from "@/actions/user/fetch-current-user"
import { AppSidebar } from "@/components/layout/app-sidebar"
import {
Expand Down Expand Up @@ -45,17 +34,15 @@ export default async function AppLayout({

return (
<html lang="en">
<body
className={`${geistSans.variable} ${geistMono.variable} min-h-dvh bg-background overflow-y-scroll overflow-x-clip flex flex-col items-center`}
>
<body className="bg-background flex min-h-dvh flex-col items-center overflow-x-clip overflow-y-scroll">
<SidebarProvider defaultOpen={sidebarDefaultOpen}>
<AppSidebar
collapsible="icon"
variant="inset"
currentUser={currentUser}
/>
<SidebarInset className="peer-data-[variant=inset]:max-h-[calc(100svh-theme(spacing.4))]">
<header className="flex h-16 shrink-0 items-center gap-2 sticky top-0 bg-background">
<header className="bg-background sticky top-0 flex h-16 shrink-0 items-center gap-2">
<div className="flex items-center gap-2 px-4">
<SidebarTrigger className="-ml-1" />
<Separator orientation="vertical" className="mr-2 h-4" />
Expand All @@ -68,7 +55,7 @@ export default async function AppLayout({
</Breadcrumb>
</div>
</header>
<div className="flex flex-1 flex-col gap-4 p-4 pt-0 overflow-y-scroll [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-track]:rounded-full [&::-webkit-scrollbar-track]:bg-transparent [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-primary/20 hover:[&::-webkit-scrollbar-thumb]:bg-primary/40 hover:[&::-webkit-scrollbar-track]:bg-primary/10 hover:[&::-webkit-scrollbar-thumb]:cursor-pointer">
<div className="[&::-webkit-scrollbar-thumb]:bg-primary/20 hover:[&::-webkit-scrollbar-thumb]:bg-primary/40 hover:[&::-webkit-scrollbar-track]:bg-primary/10 flex flex-1 flex-col gap-4 overflow-y-scroll p-4 pt-0 [&::-webkit-scrollbar-thumb]:rounded-full hover:[&::-webkit-scrollbar-thumb]:cursor-pointer [&::-webkit-scrollbar-track]:rounded-full [&::-webkit-scrollbar-track]:bg-transparent [&::-webkit-scrollbar]:w-2">
{children}
</div>
</SidebarInset>
Expand Down
16 changes: 1 addition & 15 deletions templates/one-to-one/src/app/(auth)/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
import type { Metadata } from "next"
import localFont from "next/font/local"
import "../globals.css"

const geistSans = localFont({
src: "../fonts/GeistVF.woff",
variable: "--font-geist-sans",
weight: "100 900",
})
const geistMono = localFont({
src: "../fonts/GeistMonoVF.woff",
variable: "--font-geist-mono",
weight: "100 900",
})

export const metadata: Metadata = {
title: "Next.js + Auth.js Template",
description:
Expand All @@ -26,9 +14,7 @@ export default function RootLayout({
}>) {
return (
<html lang="en">
<body
className={`${geistSans.variable} ${geistMono.variable} min-h-dvh bg-background overflow-y-scroll overflow-x-clip flex flex-col items-center`}
>
<body className="bg-background flex min-h-dvh flex-col items-center overflow-x-clip overflow-y-scroll">
<div className="mt-20">{children}</div>
</body>
</html>
Expand Down
16 changes: 1 addition & 15 deletions templates/one-to-one/src/app/(site)/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
import type { Metadata } from "next"
import localFont from "next/font/local"
import "../globals.css"

const geistSans = localFont({
src: "../fonts/GeistVF.woff",
variable: "--font-geist-sans",
weight: "100 900",
})
const geistMono = localFont({
src: "../fonts/GeistMonoVF.woff",
variable: "--font-geist-mono",
weight: "100 900",
})

export const metadata: Metadata = {
title: "Next.js + Auth.js Template",
description:
Expand All @@ -26,9 +14,7 @@ export default function RootLayout({
}>) {
return (
<html lang="en">
<body
className={`${geistSans.variable} ${geistMono.variable} min-h-dvh bg-background overflow-y-scroll overflow-x-clip flex flex-col items-center`}
>
<body className="bg-background flex min-h-dvh flex-col items-center overflow-x-clip overflow-y-scroll">
{children}
</body>
</html>
Expand Down
Binary file removed templates/one-to-one/src/app/fonts/GeistMonoVF.woff
Binary file not shown.
Binary file removed templates/one-to-one/src/app/fonts/GeistVF.woff
Binary file not shown.

0 comments on commit ff8cb61

Please sign in to comment.