generated from Fascinated/nextjs-13-template-with-tailwindcss
temp remove analytics until I can find a good soloution
All checks were successful
Publish Docker Image / docker (push) Successful in 1m44s
All checks were successful
Publish Docker Image / docker (push) Successful in 1m44s
This commit is contained in:
parent
98c61f787e
commit
a23cb56990
@ -28,13 +28,6 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"analytics": {
|
|
||||||
"plausable": {
|
|
||||||
"enabled": true,
|
|
||||||
"siteDomain": "example.com",
|
|
||||||
"domain": "analyics.example.com"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"links": [
|
"links": [
|
||||||
{
|
{
|
||||||
"title": "Git",
|
"title": "Git",
|
||||||
|
@ -3,33 +3,17 @@ import { fab } from "@fortawesome/free-brands-svg-icons";
|
|||||||
import { far } from "@fortawesome/free-regular-svg-icons";
|
import { far } from "@fortawesome/free-regular-svg-icons";
|
||||||
import { fas } from "@fortawesome/free-solid-svg-icons";
|
import { fas } from "@fortawesome/free-solid-svg-icons";
|
||||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
||||||
import PlausibleProvider from "next-plausible";
|
|
||||||
import Image from "next/image";
|
import Image from "next/image";
|
||||||
import Config from "../../config.json";
|
import Config from "../../config.json";
|
||||||
|
|
||||||
library.add(fab, far, fas);
|
library.add(fab, far, fas);
|
||||||
|
|
||||||
export default function Home() {
|
export default function Home() {
|
||||||
const {
|
const { background, infoCard, avatar, name, links, options, description } =
|
||||||
background,
|
Config;
|
||||||
infoCard,
|
|
||||||
avatar,
|
|
||||||
name,
|
|
||||||
links,
|
|
||||||
options,
|
|
||||||
description,
|
|
||||||
analytics,
|
|
||||||
} = Config;
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{analytics.plausable.enabled && (
|
|
||||||
<PlausibleProvider
|
|
||||||
domain={analytics.plausable.domain}
|
|
||||||
customDomain={analytics.plausable.siteDomain}
|
|
||||||
selfHosted={true}
|
|
||||||
/>
|
|
||||||
)}
|
|
||||||
<main className="flex flex-col items-center justify-center w-screen h-screen bg-neutral-900 text-white">
|
<main className="flex flex-col items-center justify-center w-screen h-screen bg-neutral-900 text-white">
|
||||||
<div
|
<div
|
||||||
className={`absolute inset-0 filter ${
|
className={`absolute inset-0 filter ${
|
||||||
|
Loading…
Reference in New Issue
Block a user