Merge branch 'main' of https://github.com/life-itself/web3 into main
|
Before Width: | Height: | Size: 99 KiB After Width: | Height: | Size: 100 KiB |
|
After Width: | Height: | Size: 1.2 MiB |
|
After Width: | Height: | Size: 104 KiB |
|
After Width: | Height: | Size: 137 KiB |
|
Before Width: | Height: | Size: 92 KiB After Width: | Height: | Size: 92 KiB |
|
|
@ -26,7 +26,7 @@ export default function Features() {
|
||||||
<div className="mt-12 sm:mt-16 lg:mt-0">
|
<div className="mt-12 sm:mt-16 lg:mt-0">
|
||||||
<div className="pl-4 -mr-48 sm:pl-6 md:-mr-16 lg:px-0 lg:m-0 lg:relative lg:h-full">
|
<div className="pl-4 -mr-48 sm:pl-6 md:-mr-16 lg:px-0 lg:m-0 lg:relative lg:h-full">
|
||||||
<img
|
<img
|
||||||
className="w-full rounded-xl shadow-xl ring-1 ring-black ring-opacity-5 lg:absolute lg:left-0 lg:h-full lg:w-auto lg:max-w-none"
|
className="w-full lg:absolute lg:left-0 lg:h-full lg:w-auto lg:max-w-none"
|
||||||
src="https://res.cloudinary.com/ds7qslkd0/image/upload/v1646739494/Web3/undraw_mind_map_re_nlb6_qh0jel.svg"
|
src="https://res.cloudinary.com/ds7qslkd0/image/upload/v1646739494/Web3/undraw_mind_map_re_nlb6_qh0jel.svg"
|
||||||
alt="Discover"
|
alt="Discover"
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
|
|
@ -24,8 +24,9 @@ export function Hero() {
|
||||||
<input
|
<input
|
||||||
name="email"
|
name="email"
|
||||||
type="email"
|
type="email"
|
||||||
|
required="required"
|
||||||
placeholder="Enter your email"
|
placeholder="Enter your email"
|
||||||
className="block w-full px-4 py-3 rounded-md border-0 text-base text-gray-900 placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-300 focus:ring-offset-gray-900"
|
className="block w-full px-4 py-3 rounded-md border-0 text-base dark:text-white dark:placeholder-gray-200 text-gray-900 placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-300 focus:ring-offset-gray-900"
|
||||||
/>
|
/>
|
||||||
<input type="hidden" name="form-name" value="get-updates" />
|
<input type="hidden" name="form-name" value="get-updates" />
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -11,9 +11,9 @@ import MdxPage from '../components/MDX'
|
||||||
import * as gtag from '../lib/gtag'
|
import * as gtag from '../lib/gtag'
|
||||||
|
|
||||||
function MyApp({ Component, pageProps }) {
|
function MyApp({ Component, pageProps }) {
|
||||||
|
const router = useRouter()
|
||||||
// Google Analytics
|
// Google Analytics
|
||||||
if (siteConfig.analytics) {
|
if (siteConfig.analytics) {
|
||||||
const router = useRouter()
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const handleRouteChange = (url) => {
|
const handleRouteChange = (url) => {
|
||||||
gtag.pageview(url)
|
gtag.pageview(url)
|
||||||
|
|
@ -26,22 +26,30 @@ function MyApp({ Component, pageProps }) {
|
||||||
}
|
}
|
||||||
// end Google Analytics
|
// end Google Analytics
|
||||||
|
|
||||||
|
const pageTitle = (
|
||||||
|
router.pathname == "/"
|
||||||
|
? "home"
|
||||||
|
// convert slug to title
|
||||||
|
: router.pathname.split("/").pop().replace(/-/g, " ")
|
||||||
|
) // capitalize first char of each word
|
||||||
|
.replace(/(^\w{1})|(\s{1}\w{1})/g, (str) => str.toUpperCase());
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ThemeProvider attribute="class" defaultTheme="dark">
|
<ThemeProvider attribute="class" defaultTheme="dark">
|
||||||
<DefaultSeo
|
<DefaultSeo
|
||||||
titleTemplate={'%s | ' + siteConfig.title}
|
titleTemplate={"%s | " + siteConfig.title}
|
||||||
defaultTitle={siteConfig.title}
|
defaultTitle={siteConfig.title}
|
||||||
description={siteConfig.description}
|
description={siteConfig.description}
|
||||||
{...siteConfig.nextSeo}
|
{...siteConfig.nextSeo}
|
||||||
/>
|
/>
|
||||||
{/* Global Site Tag (gtag.js) - Google Analytics */}
|
{/* Global Site Tag (gtag.js) - Google Analytics */}
|
||||||
{siteConfig.analytics &&
|
{siteConfig.analytics && (
|
||||||
<Script
|
<Script
|
||||||
strategy="afterInteractive"
|
strategy="afterInteractive"
|
||||||
src={`https://www.googletagmanager.com/gtag/js?id=${siteConfig.analytics}`}
|
src={`https://www.googletagmanager.com/gtag/js?id=${siteConfig.analytics}`}
|
||||||
/>
|
/>
|
||||||
}
|
)}
|
||||||
{siteConfig.analytics &&
|
{siteConfig.analytics && (
|
||||||
<Script
|
<Script
|
||||||
id="gtag-init"
|
id="gtag-init"
|
||||||
strategy="afterInteractive"
|
strategy="afterInteractive"
|
||||||
|
|
@ -56,16 +64,16 @@ function MyApp({ Component, pageProps }) {
|
||||||
`,
|
`,
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
}
|
)}
|
||||||
<Layout title={pageProps.title ?? siteConfig.title}>
|
<Layout title={pageTitle}>
|
||||||
{
|
{Component.layout == "js" ? (
|
||||||
Component.layout == 'js'
|
<Component {...pageProps} />
|
||||||
? <Component {...pageProps} />
|
) : (
|
||||||
: <MdxPage children={{ Component, pageProps }} />
|
<MdxPage children={{ Component, pageProps }} />
|
||||||
}
|
)}
|
||||||
</Layout>
|
</Layout>
|
||||||
</ThemeProvider>
|
</ThemeProvider>
|
||||||
)
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// if this is a markdown page use this layout by default ...
|
// if this is a markdown page use this layout by default ...
|
||||||
|
|
|
||||||