diff --git a/README.md b/README.md index f4da3c4..3fd2ec9 100644 --- a/README.md +++ b/README.md @@ -1,34 +1,5 @@ -This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). +# What the FOUT! 🤌 -## Getting Started +A CSS playground for F-mods (font metric overrides). This tool will help you find the right fallback for your font and tweak it in order to get the best possible results. -First, run the development server: - -```bash -npm run dev -# or -yarn dev -# or -pnpm dev -``` - -Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. - -You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file. - -This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font. - -## Learn More - -To learn more about Next.js, take a look at the following resources: - -- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. -- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. - -You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome! - -## Deploy on Vercel - -The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. - -Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. +![WTF demo](/public/demo.gif) diff --git a/public/demo.gif b/public/demo.gif new file mode 100644 index 0000000..1b2dbb5 Binary files /dev/null and b/public/demo.gif differ diff --git a/public/github.svg b/public/github.svg new file mode 100644 index 0000000..40e8178 --- /dev/null +++ b/public/github.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/app/components/Interface.tsx b/src/app/components/Interface.tsx index 86ef16c..ef4e9d5 100644 --- a/src/app/components/Interface.tsx +++ b/src/app/components/Interface.tsx @@ -433,20 +433,28 @@ export const Interface = (props: InterfaceProps) => {
++-+++ FONT FACE DECLARATION +
+font-family: "fallback for ${fontName}";
src: local(${fallbackFontName});
size-adjust: ${sizeAdjust}%;
ascent-override: ${ascentOverride}%;
descent-override: ${descentOverride}%;
line-gap-override: ${lineGapOverride}%;
}`, + __html: `@font-face {
font-family: "fallback for ${fontName}";
src: local(${fallbackFontName});
size-adjust: ${sizeAdjust}%;
ascent-override: ${ascentOverride}%;
descent-override: ${descentOverride}%;
line-gap-override: ${lineGapOverride}%;
}`, }} />-++);++CUSTOM CSS
+font-family: "fallback for ${fontName}";
font-size: ${fontSize}px;
line-height: ${lineHeight}em;
font-weight: ${fontWeight};
letter-spacing: ${ + __html: `body {
font-family: "${fontName}", "fallback for ${fontName}";
font-size: ${fontSize}px;
line-height: ${lineHeight}em;
font-weight: ${fontWeight};
letter-spacing: ${ letterSpacing === 0 ? "0" : `${letterSpacing}px` };
word-spacing: ${ wordSpacing === 0 ? "0" : `${wordSpacing}px` diff --git a/src/app/page.tsx b/src/app/page.tsx index 82cffed..8ac7cab 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -41,6 +41,36 @@ export default async function Home() { googleFonts={googleFontResponse.items} standardFonts={standardFonts} /> ++ Made by + + Antonio Cosentino + {" "} + © 2023 · Built with Next.js & Tailwind CSS · + + {/* eslint-disable-next-line @next/next/no-img-element */} + + + + + Source Code + +