Skip to content

Commit

Permalink
revert font files
Browse files Browse the repository at this point in the history
  • Loading branch information
rebeccahongsf committed Sep 19, 2024
1 parent 4551d5d commit dc53e54
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
9 changes: 8 additions & 1 deletion app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ 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 @@ -43,14 +44,20 @@ 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)}>
<html lang="en" className={clsx(sourceSans3.className, roboto.variable, stanford.variable)}>
<UserAnalytics />
<DrupalWindowSync />
{isDevMode && <Editori11y />}
Expand Down
Binary file added public/fonts/stanford.woff2
Binary file not shown.
9 changes: 0 additions & 9 deletions src/styles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,6 @@
@tailwind components;
@tailwind utilities;

@font-face {
font-family: "Stanford";
src:
url("https://www-media.stanford.edu/assets/fonts/stanford.woff") format("woff"),
url("https://www-media.stanford.edu/assets/fonts/stanford.ttf") format("truetype");
font-weight: 300;
font-display: swap;
}

/* Styles for react-tiny-oembed containers */
.aspect-\[16\/9\] .__embed_column {
width: 100%;
Expand Down

0 comments on commit dc53e54

Please sign in to comment.