Skip to content

Commit

Permalink
SUM-198 | fix stanford font import
Browse files Browse the repository at this point in the history
  • Loading branch information
rebeccahongsf committed Sep 19, 2024
1 parent 4a375eb commit f888c47
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
9 changes: 1 addition & 8 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import DrupalWindowSync from "@components/elements/drupal-window-sync"
import UserAnalytics from "@components/elements/user-analytics"
import clsx from "clsx"
import Editori11y from "@components/tools/editorially"
import localFont from "next/font/local"

const appleIcons: Icon[] = [60, 72, 76, 114, 120, 144, 152, 180].map(size => ({
url: `https://www-media.stanford.edu/assets/favicon/apple-touch-icon-${size}x${size}.png`,
Expand Down Expand Up @@ -44,20 +43,14 @@ export const metadata = {
},
}

const stanford = localFont({
src: "../public/fonts/stanford.woff2",
weight: "300",
variable: "--font-stanford",
})

// https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config
export const revalidate = false

const RootLayout = ({children, modal}: {children: React.ReactNode; modal: React.ReactNode}) => {
const isDevMode = process.env.NODE_ENV === "development"

return (
<html lang="en" className={clsx(sourceSans3.className, roboto.variable, stanford.variable)}>
<html lang="en" className={clsx(sourceSans3.className, roboto.variable)}>
<UserAnalytics />
<DrupalWindowSync />
{isDevMode && <Editori11y />}
Expand Down
Binary file removed public/fonts/stanford.woff2
Binary file not shown.
1 change: 1 addition & 0 deletions src/styles/index.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@import "decanter/fonts-basic.css";
@tailwind base;
@tailwind components;
@tailwind utilities;
Expand Down

0 comments on commit f888c47

Please sign in to comment.