Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

Replace Levenim MT with Figtree Light #151

Merged
merged 13 commits into from
Jul 14, 2023
Merged
3,917 changes: 3,045 additions & 872 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@
"@lottiefiles/react-lottie-player": "^3.5.3",
"@mdx-js/loader": "^2.3.0",
"@mdx-js/react": "^2.3.0",
"@next/mdx": "^13.3.0",
"@next/mdx": "^13.4.8",
"@tailwindcss/typography": "^0.5.9",
"@tailwindui/react": "^0.1.1",
"@types/node": "18.15.11",
"@types/react": "18.0.33",
"@types/react-dom": "18.0.11",
"autoprefixer": "10.4.14",
"dayjs": "^1.11.7",
"next": "13.3.0",
"next": "13.4.8",
"postcss": "8.4.21",
"prop-types": "^15.8.1",
"react": "18.2.0",
Expand Down
Binary file removed public/assets/lvnm.eot
Binary file not shown.
1 change: 0 additions & 1 deletion public/assets/lvnm.svg

This file was deleted.

Binary file removed public/assets/lvnm.ttf
Binary file not shown.
Binary file removed public/assets/lvnm.woff
Binary file not shown.
Binary file removed public/assets/lvnm.woff2
Binary file not shown.
44 changes: 27 additions & 17 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { useState } from 'react'
import type { AppProps } from 'next/app'
import Header from '@/components/Header'
import Footer from '@/components/Footer'
import localFont from 'next/font/local'
import ContactDrawer from '@/components/ContactDrawer'
import MenuDrawer from '@/components/MenuDrawer'
import { GoogleReCaptchaProvider } from 'react-google-recaptcha-v3'
Expand All @@ -14,14 +13,19 @@ import '@fortawesome/fontawesome-svg-core/styles.css';
// Prevent fontawesome from adding its CSS since we did it manually above:
import { config } from '@fortawesome/fontawesome-svg-core';
config.autoAddCss = false; /* eslint-disable import/first */
import { Roboto_Mono, Figtree } from 'next/font/google'

const font = localFont({
src: [
{path: '../../public/assets/lvnm.woff2'},
{path: '../../public/assets/lvnm.woff'},
{path: '../../public/assets/lvnm.ttf'},
{path: '../../public/assets/lvnm.eot'}
],
const figtree = Figtree({
subsets: ['latin'],
weight: ['300'],
display: 'swap',
variable: '--font-figtree',
})

const robotoMono = Roboto_Mono({
subsets: ['latin'],
display: 'swap',
variable: '--font-roboto-mono',
})

export default function App({ Component, pageProps }: AppProps) {
Expand All @@ -44,6 +48,14 @@ export default function App({ Component, pageProps }: AppProps) {
nonce: undefined,
}}
>
<style jsx global>
{`
:root,:host {
--font-roboto-mono: ${robotoMono.style.fontFamily};
--font-figtree: ${figtree.style.fontFamily};
}
`}
</style>
<Head>
<title>Ocelot Consulting</title>
<meta name='designed by' content='Fluid22' />
Expand All @@ -68,15 +80,13 @@ export default function App({ Component, pageProps }: AppProps) {
gtag('config', 'UA-84294052-1');
`}
</Script>
<div className={font.className}>
<Header setShowMenu={setShowMenu} setShowContact={setShowContact} />
<main>
<Component {...pageProps} setShowContact={setShowContact} />
</main>
<Footer />
<MenuDrawer show={showMenu} setShow={setShowMenu} showContactForm={() => setShowContact(true)}/>
<ContactDrawer show={showContact} setShow={setShowContact} />
</div>
<Header setShowMenu={setShowMenu} setShowContact={setShowContact} />
<main>
<Component {...pageProps} setShowContact={setShowContact} />
</main>
<Footer />
<MenuDrawer show={showMenu} setShow={setShowMenu} showContactForm={() => setShowContact(true)}/>
<ContactDrawer show={showContact} setShow={setShowContact} />
</GoogleReCaptchaProvider>
)
}
2 changes: 1 addition & 1 deletion src/pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default function Document() {
return (
<Html lang="en" className="scroll-smooth">
<Head />
<body>
<body className='font-body tracking-normal'>
<Main />
<NextScript />
</body>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export default function Home({cards, setShowContact}: any) {
<Image className="lg:hidden object-cover md:h-[600px] lg:h-auto" src={empowerMobile} alt="" />
</div>
<FadeIn className="lg:p-12 md:py-4 md:pr-8">
<h2 className="text-3xl lg:text-5xl font-bold text-black mb2">Making technology work for you, not the other way around</h2>
<h2 className="text-3xl lg:text-5xl font-bold text-black mb-2">Making technology work for you, not the other way around</h2>
<p className="mb-10">Technology investments don’t always yield the desired value, and companies are facing major challenges in harnessing technology to fuel innovation. <strong>Ocelot can help you navigate modern platforms to maximize your return on investment.</strong></p>

<Button href="/case-studies">
Expand Down
3 changes: 2 additions & 1 deletion src/styles/prism-coldark-cold.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
code[class*="language-"],
pre[class*="language-"] {
color: #ebdbb2; /* fg1 / fg */
font-family: Consolas, Monaco, "Andale Mono", monospace;
/* Leaving this unset inherits from font-mono from Tailwind */
/* font-family: Consolas, Monaco, "Andale Mono", monospace; */
direction: ltr;
text-align: left;
white-space: pre;
Expand Down
23 changes: 13 additions & 10 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
const defaultTheme = require('tailwindcss/defaultTheme')

/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
Expand Down Expand Up @@ -26,9 +28,10 @@ module.exports = {
}
},
fontFamily: {
heading: ['Levenim', 'sans-serif'],
body: ['Poppins', 'sans-serif'],
sans: ['Poppins', 'sans-serif']
heading: ['var(--font-figtree)', ...defaultTheme.fontFamily.sans],
body: ['var(--font-figtree)', ...defaultTheme.fontFamily.sans],
sans: ['var(--font-figtree)', ...defaultTheme.fontFamily.sans],
mono: ['var(--font-roboto-mono)', ...defaultTheme.fontFamily.mono],
},
fontSize: {
xs: ['0.75rem', '1rem'],
Expand All @@ -46,11 +49,11 @@ module.exports = {
'9xl': ['8rem', '1.1'],
},
letterSpacing: {
tighter: '-0.05em',
tight: '-.025em',
normal: '0',
wide: '.025em',
wider: '.05em',
tighter: '-0.025em',
tight: '0',
normal: '.025em',
wide: '.05em',
wider: '.75em',
widest: '.25em',
},
extend: {
Expand All @@ -66,7 +69,7 @@ module.exports = {
}
},
plugins: [
require('@tailwindcss/forms'),
require("@tailwindcss/typography")
require('@tailwindcss/forms'),
require("@tailwindcss/typography")
],
}