mirror of
https://github.com/jambonz/next-static-site.git
synced 2026-07-04 19:21:55 +00:00
preload the early fonts, fix one issue on homepage
This commit is contained in:
+3
-3
@@ -3,7 +3,7 @@ import classNames from 'classnames';
|
||||
import { useState, useEffect, useRef } from 'react';
|
||||
|
||||
import Layout from '../src/components/layout';
|
||||
import { Latest, Hero, Icon, Button, H6, H4, H3, H2, P, MS, normalizeSubtext, normalizeSlug, useMobileMedia } from '../src/components/jambonz-ui';
|
||||
import { Latest, Hero, Icon, Button, H4, H3, H2, P, MS, normalizeSubtext, normalizeSlug, useMobileMedia } from '../src/components/jambonz-ui';
|
||||
import { getData } from '../src/lib/data';
|
||||
|
||||
function Tech({data}) {
|
||||
@@ -16,9 +16,9 @@ function Tech({data}) {
|
||||
{data.notes.map((note) => {
|
||||
return (
|
||||
<li key={nanoid()} className="tech__note">
|
||||
<H6>
|
||||
<P className="h6">
|
||||
<strong>{note.title}</strong>
|
||||
</H6>
|
||||
</P>
|
||||
<MS>{note.text}</MS>
|
||||
</li>
|
||||
);
|
||||
|
||||
@@ -24,16 +24,14 @@ export default function Layout({ children, siteData, title = 'jambonz' }) {
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="theme-color" content="#000000" />
|
||||
<meta name="image" property="og:image" content="https://www.jambonz.org/jambonz.png" />
|
||||
<meta
|
||||
name="description"
|
||||
content="The “bring your own everything” CPaaS"
|
||||
/>
|
||||
<meta name="description" content="The “bring your own everything” CPaaS" />
|
||||
<link rel="apple-touch-icon" href="/logo192.png" />
|
||||
{/*
|
||||
manifest.json provides metadata used when your web app is installed on a
|
||||
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
|
||||
*/}
|
||||
<link rel="manifest" href="/manifest.json" />
|
||||
<link rel="preload" href="/fonts/objectivity-medium-webfont.woff2" crossOrigin="anonymous" as="font" type="font/woff" />
|
||||
<link rel="preload" href="/fonts/objectivity-bold-webfont.woff2" crossOrigin="anonymous" as="font" type="font/woff" />
|
||||
<link rel="preload" href="/fonts/objectivity-regular-webfont.woff2" crossOrigin="anonymous" as="font" type="font/woff" />
|
||||
<link rel="preload" href="/fonts/objectivity-boldslanted-webfont.woff2" crossOrigin="anonymous" as="font" type="font/woff" />
|
||||
<link rel="preload" href="/fonts/objectivity-regularslanted-webfont.woff2" crossOrigin="anonymous" as="font" type="font/woff" />
|
||||
</Head>
|
||||
{siteData.banner && siteData.banner.active && <Banner data={siteData.banner} />}
|
||||
<Navi siteData={siteData} />
|
||||
|
||||
Reference in New Issue
Block a user