few changes

This commit is contained in:
Andreas Knuth 2025-08-18 14:50:38 -05:00
parent 447af46fa0
commit 5fbd696ad0
4 changed files with 36 additions and 62 deletions

View File

@ -1,8 +1,12 @@
/** @type {import('next').NextConfig} */
// next.config.js
const path = require('path');
const withFlowbiteReact = require('flowbite-react/plugin/nextjs');
const nextConfig = {
experimental: {
// hier können andere gültige experimentelle Optionen stehen, falls nötig
output: 'export',
images: { unoptimized: true },
webpack: (config) => {
config.resolve.alias['@'] = path.resolve(process.cwd());
return config;
},
};
module.exports = nextConfig;

View File

@ -3,6 +3,8 @@ import path from "path";
import withFlowbiteReact from "flowbite-react/plugin/nextjs";
const nextConfig = {
output: "export",
images: { unoptimized: true },
webpack: (config) => {
config.resolve.alias["@"] = path.resolve(process.cwd());
return config;

View File

@ -1,32 +0,0 @@
// pages/demo.jsx
import React from "react";
import FontCard from "@/components/ui/FontCard"; // DefaultImport
import { fonts } from "@/lib/fonts";
export default function Demo() {
// Absicherung gegen undefined beim SSR
const robotoClass = fonts.roboto?.className || "";
return (
<section className="space-y-8 p-8">
{/* 1. next/font (voll integriert) */}
<h2 className={`${robotoClass} text-4xl`}>
Roboto aus next/font
</h2>
{/* 2. TailwindUtility aus Map */}
<p className="font-montserrat text-xl">
Dieselbe Font via <code>font-montserrat</code>
</p>
{/* 3. Deine PreviewKomponente */}
<FontCard
fontName="Pacifico"
transformedText="Hallo Instagram!"
category="handwriting"
isPopular
index={0}
/>
</section>
);
}