mirror of
https://github.com/walkxcode/dashboard-icons.git
synced 2025-06-28 15:30:22 +08:00
refactor(web): replace with "the nextjs way"
This commit is contained in:
parent
920e98dc66
commit
2f82c53b28
@ -2,7 +2,6 @@ import { BASE_URL, BROWSE_KEYWORDS, DEFAULT_OG_IMAGE, GITHUB_URL, ORGANIZATION_N
|
|||||||
import { getIconsArray } from "@/lib/api"
|
import { getIconsArray } from "@/lib/api"
|
||||||
import type { Metadata } from "next"
|
import type { Metadata } from "next"
|
||||||
import { IconSearch } from "./components/icon-search"
|
import { IconSearch } from "./components/icon-search"
|
||||||
import Script from "next/script"
|
|
||||||
|
|
||||||
export async function generateMetadata(): Promise<Metadata> {
|
export async function generateMetadata(): Promise<Metadata> {
|
||||||
const icons = await getIconsArray()
|
const icons = await getIconsArray()
|
||||||
@ -58,12 +57,16 @@ export default async function IconsPage() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Script id="gallery-schema" type="application/ld+json">
|
<script
|
||||||
{JSON.stringify(gallerySchema)}
|
id="gallery-schema"
|
||||||
</Script>
|
type="application/ld+json"
|
||||||
<Script id="org-schema" type="application/ld+json">
|
dangerouslySetInnerHTML={{ __html: JSON.stringify(gallerySchema) }}
|
||||||
{JSON.stringify(ORGANIZATION_SCHEMA)}
|
/>
|
||||||
</Script>
|
<script
|
||||||
|
id="org-schema"
|
||||||
|
type="application/ld+json"
|
||||||
|
dangerouslySetInnerHTML={{ __html: JSON.stringify(ORGANIZATION_SCHEMA) }}
|
||||||
|
/>
|
||||||
<div className="isolate overflow-hidden">
|
<div className="isolate overflow-hidden">
|
||||||
<div className="py-8">
|
<div className="py-8">
|
||||||
<div className="space-y-4 mb-8 mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
|
<div className="space-y-4 mb-8 mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user