fix(blog): optimize component share logic, typography, and modal layouts
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 5s
Build & Deploy / 🏗️ Build (push) Failing after 14s
Build & Deploy / 🧪 QA (push) Failing after 1m48s
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / 🩺 Health Check (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 2s
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 5s
Build & Deploy / 🏗️ Build (push) Failing after 14s
Build & Deploy / 🧪 QA (push) Failing after 1m48s
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / 🩺 Health Check (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 2s
This commit is contained in:
29
apps/web/src/components/FAQSection.tsx
Normal file
29
apps/web/src/components/FAQSection.tsx
Normal file
@@ -0,0 +1,29 @@
|
||||
"use client";
|
||||
|
||||
import React from "react";
|
||||
import { H3 } from "./ArticleHeading";
|
||||
import { Paragraph } from "./ArticleParagraph";
|
||||
|
||||
interface FAQItem {
|
||||
question: string;
|
||||
answer: string;
|
||||
}
|
||||
|
||||
interface FAQSectionProps {
|
||||
children?: React.ReactNode;
|
||||
}
|
||||
|
||||
/**
|
||||
* FAQSection: A simple semantic wrapper for FAQs in blog posts.
|
||||
* It can be used by the AI to wrap a list of questions and answers.
|
||||
*/
|
||||
export const FAQSection: React.FC<FAQSectionProps> = ({ children }) => {
|
||||
return (
|
||||
<div className="my-16 border-t border-slate-100 pt-12">
|
||||
<H3 id="faq">Häufig gestellte Fragen (FAQ)</H3>
|
||||
<div className="mt-8 space-y-8">
|
||||
{children}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user