feat: add block number in home

This commit is contained in:
DIYgod
2023-07-27 23:03:33 +01:00
parent e9c80277ad
commit e15ea3f9fa
9 changed files with 231 additions and 11 deletions
+4 -2
View File
@@ -2,6 +2,7 @@ import Link from "next/link"
import { memo } from "react"
import { Logo } from "~/components/common/Logo"
import { BlockNumber } from "~/components/home/BlockNumber"
import { default as OriginEntranceButton } from "~/components/home/EntranceButton"
import { Integration } from "~/components/home/Integrations"
import { ShowCase } from "~/components/home/Showcase"
@@ -110,11 +111,11 @@ async function Home() {
return (
<div>
<div className="h-[calc(100vh-6rem)] w-full flex justify-center flex-col relative text-center">
<h2 className="text-6xl sm:text-8xl font-bold mb-5">
<h2 className="text-4xl sm:text-8xl font-bold mb-5">
{features.map((feature) => (
<span
key={feature.title}
className={`text-feature text-feature-${feature.title.toLocaleLowerCase()} block sm:inline-block sm:mr-1 mb-2`}
className={`text-feature text-feature-${feature.title.toLocaleLowerCase()} inline-block sm:mr-1`}
>
{t(feature.title)}
{t(".")}
@@ -283,6 +284,7 @@ async function Home() {
</span>
</div>
<div>{t(`features.${feature.title}.extra.description`)}</div>
<BlockNumber />
<a
target="_blank"
href={getSiteLink({ subdomain: "xlog" })}