Openstatus www.openstatus.dev

✏️ fonts(#1346)

* ✏️ font

* ✏️ font

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

authored by

Thibault Le Ouay
autofix-ci[bot]
and committed by
GitHub
e53b530c 3667799a

+56 -6
apps/dashboard/public/fonts/CommitMono-400-Italic.otf

This is a binary file and will not be displayed.

apps/dashboard/public/fonts/CommitMono-400-Regular.otf

This is a binary file and will not be displayed.

apps/dashboard/public/fonts/CommitMono-700-Italic.otf

This is a binary file and will not be displayed.

apps/dashboard/public/fonts/CommitMono-700-Regular.otf

This is a binary file and will not be displayed.

+2
apps/dashboard/src/app/globals.css
··· 12 12 13 13 @theme inline { 14 14 --font-cal: var(--font-cal-sans); 15 + --font-commit-mono: var(--font-commit-mono); 16 + --font-sans: var(--font-inter); 15 17 16 18 --color-background: var(--background); 17 19 --color-foreground: var(--foreground);
+35 -2
apps/dashboard/src/app/layout.tsx
··· 1 1 import type { Metadata } from "next"; 2 - import { Geist, Geist_Mono } from "next/font/google"; 2 + import { Geist, Geist_Mono, Inter } from "next/font/google"; 3 3 import "./globals.css"; 4 4 import { TailwindIndicator } from "@/components/tailwind-indicator"; 5 5 import { ThemeProvider } from "@/components/theme-provider"; ··· 15 15 variable: "--font-cal-sans", 16 16 }); 17 17 18 + const commitMono = LocalFont({ 19 + src: [ 20 + { 21 + path: "../../public/fonts/CommitMono-400-Regular.otf", 22 + weight: "400", 23 + style: "normal", 24 + }, 25 + { 26 + path: "../../public/fonts/CommitMono-400-Italic.otf", 27 + weight: "400", 28 + style: "italic", 29 + }, 30 + { 31 + path: "../../public/fonts/CommitMono-700-Regular.otf", 32 + weight: "700", 33 + style: "normal", 34 + }, 35 + { 36 + path: "../../public/fonts/CommitMono-700-Italic.otf", 37 + weight: "700", 38 + style: "italic", 39 + }, 40 + ], 41 + variable: "--font-commit-mono", 42 + }); 43 + 44 + const inter = Inter({ 45 + subsets: ["latin"], 46 + variable: "--font-inter", 47 + }); 48 + 18 49 const geistSans = Geist({ 19 50 variable: "--font-geist-sans", 20 51 subsets: ["latin"], ··· 49 80 geistSans.variable, 50 81 geistMono.variable, 51 82 cal.variable, 52 - "antialiased", 83 + commitMono.variable, 84 + inter.variable, 85 + "font-sans antialiased ", 53 86 )} 54 87 > 55 88 <NuqsAdapter>
+7 -1
apps/dashboard/src/components/content/section.tsx
··· 48 48 ...props 49 49 }: React.ComponentProps<"p">) { 50 50 return ( 51 - <p className={cn("text-muted-foreground text-sm", className)} {...props}> 51 + <p 52 + className={cn( 53 + "font-commit-mono text-muted-foreground text-sm", 54 + className, 55 + )} 56 + {...props} 57 + > 52 58 {children} 53 59 </p> 54 60 );
+5 -2
apps/dashboard/src/components/metric/metric-card.tsx
··· 49 49 ...props 50 50 }: React.ComponentProps<"p">) { 51 51 return ( 52 - <p className={cn("font-medium text-sm", className)} {...props}> 52 + <p 53 + className={cn("font-commit-mono font-medium text-sm ", className)} 54 + {...props} 55 + > 53 56 {children} 54 57 </p> 55 58 ); ··· 82 85 ...props 83 86 }: React.ComponentProps<"p">) { 84 87 return ( 85 - <p className={cn("font-semibold text-foreground", className)} {...props}> 88 + <p className={cn("font-medium text-foreground", className)} {...props}> 86 89 {children} 87 90 </p> 88 91 );
+1
apps/dashboard/src/components/nav/nav-monitors.tsx
··· 162 162 <Link 163 163 href={`/monitors/${item.id}/overview`} 164 164 onClick={() => setOpenMobile(false)} 165 + className="font-commit-mono" 165 166 > 166 167 <span>{item.name}</span> 167 168 </Link>
+5 -1
apps/dashboard/src/components/nav/nav-overview.tsx
··· 36 36 asChild 37 37 tooltip={item.name} 38 38 > 39 - <Link href={item.url} onClick={() => setOpenMobile(false)}> 39 + <Link 40 + href={item.url} 41 + onClick={() => setOpenMobile(false)} 42 + className="font-commit-mono" 43 + > 40 44 <item.icon /> 41 45 <span>{item.name}</span> 42 46 </Link>
+1
apps/dashboard/src/components/nav/nav-status-pages.tsx
··· 134 134 <Link 135 135 href={`/status-pages/${item.id}/status-reports`} 136 136 onClick={() => setOpenMobile(false)} 137 + className="font-commit-mono" 137 138 > 138 139 <span>{item.title}</span> 139 140 </Link>